From c62e671073cfe990fd2200c81defae98b1e9258b Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Wed, 22 Mar 2023 17:56:37 +0100 Subject: [PATCH 3/3] random: do not include utsname in early random 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 --- 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 db2c5a296c05..dd4aa42a4404 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -865,7 +865,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.41.0