[RFC 2/3] random: do not include utsname in early random
Johannes Berg
johannes at sipsolutions.net
Thu Nov 19 05:19:13 PST 2026
From: Benjamin Berg <benjamin.berg at intel.com>
The uts name includes information about the compile time and such and
changes. Exclude it, so that different kernel compilations will see
the same random numbers.
Signed-off-by: Benjamin Berg <benjamin.berg at intel.com>
Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
drivers/char/random.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/random.c b/drivers/char/random.c
index b4da1fb976c1..64d0cfc99ac4 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -877,7 +877,7 @@ void __init random_init_early(const char *command_line)
++i;
}
- _mix_pool_bytes(init_utsname(), sizeof(*(init_utsname())));
+ /* _mix_pool_bytes(init_utsname(), sizeof(*(init_utsname()))); */
_mix_pool_bytes(command_line, strlen(command_line));
/* Reseed if already seeded by earlier phases. */
--
2.56.1
More information about the linux-um
mailing list