Blame SOURCES/jitterentropy-fix-ec-check.patch

24d1b4
diff -up src/jitterentropy-noise.c.orig src/jitterentropy-noise.c
24d1b4
--- src/jitterentropy-noise.c	2021-11-23 15:42:47.809329173 +0100
24d1b4
+++ src/jitterentropy-noise.c	2021-11-23 15:44:19.820499338 +0100
24d1b4
@@ -188,7 +188,7 @@ static void jent_memaccess(struct rand_data *ec, uint64_t loop_cnt)
24d1b4
 		uint32_t u[4];
24d1b4
 		uint8_t b[sizeof(uint32_t) * 4];
24d1b4
 	} prngState = { .u = {0x8e93eec0, 0xce65608a, 0xa8d46b46, 0xe83cef69} };
24d1b4
-	uint32_t addressMask = ec->memmask;
24d1b4
+	uint32_t addressMask;
24d1b4
 
24d1b4
 	/* Ensure that macros cannot overflow jent_loop_shuffle() */
24d1b4
 	BUILD_BUG_ON((MAX_ACC_LOOP_BIT + MIN_ACC_LOOP_BIT) > 63);
24d1b4
@@ -197,6 +197,7 @@ static void jent_memaccess(struct rand_data *ec, uint64_t loop_cnt)
24d1b4
 
24d1b4
 	if (NULL == ec || NULL == ec->mem)
24d1b4
 		return;
24d1b4
+	addressMask = ec->memmask;
24d1b4
 
24d1b4
 	/*
24d1b4
 	 * Mix the current data into prngState