Re: [PATCH v3 1/2] random: add mechanism for VM forks to reinitialize crng

2022-02-25 Thread Ard Biesheuvel
On Fri, 25 Feb 2022 at 12:44, Jason A. Donenfeld wrote: > > On Fri, Feb 25, 2022 at 12:26 PM Ard Biesheuvel wrote: > > > > On Thu, 24 Feb 2022 at 14:39, Jason A. Donenfeld wrote: > > > > > > When a VM forks, we must immediately mix in additional information to > > > the stream of random output

Re: [PATCH v3 1/2] random: add mechanism for VM forks to reinitialize crng

2022-02-25 Thread Jason A. Donenfeld
On Fri, Feb 25, 2022 at 12:26 PM Ard Biesheuvel wrote: > > On Thu, 24 Feb 2022 at 14:39, Jason A. Donenfeld wrote: > > > > When a VM forks, we must immediately mix in additional information to > > the stream of random output so that two forks or a rollback don't > > produce the same stream of

Re: [PATCH v3 1/2] random: add mechanism for VM forks to reinitialize crng

2022-02-25 Thread Ard Biesheuvel
On Thu, 24 Feb 2022 at 14:39, Jason A. Donenfeld wrote: > > When a VM forks, we must immediately mix in additional information to > the stream of random output so that two forks or a rollback don't > produce the same stream of random numbers, which could have catastrophic > cryptographic

[PATCH v3 1/2] random: add mechanism for VM forks to reinitialize crng

2022-02-24 Thread Jason A. Donenfeld
When a VM forks, we must immediately mix in additional information to the stream of random output so that two forks or a rollback don't produce the same stream of random numbers, which could have catastrophic cryptographic consequences. This commit adds a simple API, add_vmfork_ randomness(), for