linux/arch/openrisc/kernel
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
..
.gitignore
asm-offsets.c
dma.c
entry.S openrisc: Add clone3 ABI wrapper 2021-12-04 11:12:09 +09:00
head.S random: handle latent entropy and command line from random_init() 2022-05-18 15:53:53 +02:00
irq.c
Makefile
module.c
or32_ksyms.c
process.c
prom.c
ptrace.c ptrace: Create ptrace_report_syscall_{entry,exit} in ptrace.h 2022-03-10 13:35:08 -06:00
setup.c
signal.c resume_user_mode: Move to resume_user_mode.h 2022-03-10 16:51:50 -06:00
smp.c
stacktrace.c
sync-timer.c
sys_call_table.c
time.c openrisc: init: Add support for common clk 2022-01-12 06:13:22 +09:00
traps.c exit: Add and use make_task_dead. 2021-12-13 12:04:45 -06:00
unwinder.c
vmlinux.h
vmlinux.lds.S