Re: [PATCH qemu] mips/malta: pass RNG seed to to kernel via env var

2022-10-01 Thread Jason A. Donenfeld
On Sat, Oct 1, 2022 at 9:32 PM Bernhard Reutner-Fischer wrote: > > On Sat, 1 Oct 2022 21:06:48 +0200 > "Jason A. Donenfeld" wrote: > > > On Fri, Sep 30, 2022 at 04:05:20PM +0200, Jason A. Donenfeld wrote: > > > With the kernel patch linked below, Linux ingests a RNG seed > > > passed from the hyp

Re: [PATCH qemu] mips/malta: pass RNG seed to to kernel via env var

2022-10-01 Thread Bernhard Reutner-Fischer
On Sat, 1 Oct 2022 21:06:48 +0200 "Jason A. Donenfeld" wrote: > On Fri, Sep 30, 2022 at 04:05:20PM +0200, Jason A. Donenfeld wrote: > > With the kernel patch linked below, Linux ingests a RNG seed > > passed from the hypervisor. So, pass this for the Malta platform, and > > reinitialize it on reb

Re: [PATCH qemu] mips/malta: pass RNG seed to to kernel via env var

2022-10-01 Thread Jason A. Donenfeld
On Fri, Sep 30, 2022 at 04:05:20PM +0200, Jason A. Donenfeld wrote: > With the kernel patch linked below, Linux ingests a RNG seed > passed from the hypervisor. So, pass this for the Malta platform, and > reinitialize it on reboot too, so that it's always fresh. > > Link: > https://lore.kernel.or

Re: [PATCH qemu] mips/malta: pass RNG seed to to kernel via env var

2022-09-30 Thread Jason A. Donenfeld
On Fri, Sep 30, 2022 at 5:05 PM Daniel P. Berrangé wrote: > The +1 suggests you're intending to NUL terminate, but nothing > in this patch ever initializes this last byte. Incorrect. sprintf("%02x") writes 3 bytes, the last of which is 0.

Re: [PATCH qemu] mips/malta: pass RNG seed to to kernel via env var

2022-09-30 Thread Daniel P . Berrangé
On Fri, Sep 30, 2022 at 04:05:20PM +0200, Jason A. Donenfeld wrote: > With the kernel patch linked below, Linux ingests a RNG seed > passed from the hypervisor. So, pass this for the Malta platform, and > reinitialize it on reboot too, so that it's always fresh. > > Link: > https://lore.kernel.or

[PATCH qemu] mips/malta: pass RNG seed to to kernel via env var

2022-09-30 Thread Jason A. Donenfeld
With the kernel patch linked below, Linux ingests a RNG seed passed from the hypervisor. So, pass this for the Malta platform, and reinitialize it on reboot too, so that it's always fresh. Link: https://lore.kernel.org/linux-mips/20220930140138.575751-1-ja...@zx2c4.com/ Signed-off-by: Jason A. Do