Re: svn commit: r339492 - head/sys/dev/random

2018-10-21 Thread Mark R V Murray
> On 20 Oct 2018, at 22:09, Conrad Meyer wrote: > > Author: cem > Date: Sat Oct 20 21:09:12 2018 > New Revision: 339492 > URL: https://svnweb.freebsd.org/changeset/base/339492 > > Log: > Fortuna: ... ... and a few others. Thanks, Conrad, for picking these up! Having code reviewed well is

svn commit: r339492 - head/sys/dev/random

2018-10-20 Thread Conrad Meyer
Author: cem Date: Sat Oct 20 21:09:12 2018 New Revision: 339492 URL: https://svnweb.freebsd.org/changeset/base/339492 Log: Fortuna: Fix a race to prevent reseed spamming If multiple threads enter fortuna_pre_read contemporaneously, such as via read(2) or getrandom(2), they could race to c