Re: [PATCH v2 3/8] riscv: re-randomize rng-seed on reboot

2022-10-11 Thread Alistair Francis
On Wed, Oct 12, 2022 at 6:55 AM Jason A. Donenfeld wrote: > > When the system reboots, the rng-seed that the FDT has should be > re-randomized, so that the new boot gets a new seed. Since the FDT is in > the ROM region at this point, we add a hook right after the ROM has been > added, so that we h

[PATCH v2 3/8] riscv: re-randomize rng-seed on reboot

2022-10-11 Thread Jason A. Donenfeld
When the system reboots, the rng-seed that the FDT has should be re-randomized, so that the new boot gets a new seed. Since the FDT is in the ROM region at this point, we add a hook right after the ROM has been added, so that we have a pointer to that copy of the FDT. Cc: Palmer Dabbelt Cc: Alist