linux-stable/arch/openrisc
Jason A. Donenfeld 2f14062bb1 random: handle latent entropy and command line from random_init()
Currently, start_kernel() adds latent entropy and the command line to
the entropy bool *after* the RNG has been initialized, deferring when
it's actually used by things like stack canaries until the next time
the pool is seeded. This surely is not intended.

Rather than splitting up which entropy gets added where and when between
start_kernel() and random_init(), just do everything in random_init(),
which should eliminate these kinds of bugs in the future.

While we're at it, rename the awkwardly titled "rand_initialize()" to
the more standard "random_init()" nomenclature.

Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-05-18 15:53:53 +02:00
..
boot kbuild: do not quote string values in include/config/auto.conf 2022-01-08 18:03:57 +09:00
configs openrisc/litex: Update defconfig 2021-08-31 22:41:46 +09:00
include openrisc: start CPU timer early in boot 2022-05-13 23:59:23 +02:00
kernel random: handle latent entropy and command line from random_init() 2022-05-18 15:53:53 +02:00
lib openrisc/boot: Remove unnecessary initialisation in memcpy(). 2022-01-30 17:44:34 +09:00
mm mm: remove mmu_gathers storage from remaining architectures 2022-03-22 15:57:04 -07:00
Kbuild kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00
Kconfig uaccess: remove CONFIG_SET_FS 2022-02-25 09:36:06 +01:00
Kconfig.debug treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00