arc4random weakness
Dag-Erling Smørgrav
des at des.no
Sun Mar 19 15:12:41 UTC 2017
Konstantin Belousov <kostikbel at gmail.com> writes:
> Dag-Erling Smørgrav <des at des.no> writes:
> > Wouldn't it be possible to just set up the page entry but leave it
> > unmapped, so that it is paged in (and zeroed if necessary) on first
> > access? Thus, a process that uses arc4random() and fork()s would not
> > incur a penalty until (and unless) the child uses arc4random() too.
> This is how the forking code works, without any additional coding,
> for the INHERIT_ZERO regions as well.
Well then I don't see the problem... I just assumed from ache@'s
objection that it wasn't the case.
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-hackers
mailing list