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

2022-09-29 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

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

2022-09-30 Thread Bin Meng
On Fri, Sep 30, 2022 at 7:24 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

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

2022-10-09 Thread Alistair Francis
On Fri, Sep 30, 2022 at 9:24 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