summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2011-11-15 05:49:24 +0000
committerdas <das@FreeBSD.org>2011-11-15 05:49:24 +0000
commit81be7970658c5dedb97dc160f013e884b8ebda1e (patch)
treea883d2be9877e9aae49b9c48b45d4215da494cf2 /tools/regression/lib
parent811ac31232079011eb075d71c050b66c4f39f3bc (diff)
downloadFreeBSD-src-81be7970658c5dedb97dc160f013e884b8ebda1e.zip
FreeBSD-src-81be7970658c5dedb97dc160f013e884b8ebda1e.tar.gz
Further reduce diffs with OpenBSD's arc4random. The main functional
change here is to ensure that when a process forks after arc4random is seeded, the parent and child don't observe the same random sequence. OpenBSD's fix introduces some additional overhead in the form of a getpid() call. This could be improved upon, e.g., by setting a flag in fork(), if it proves to be a problem. This was discussed with secteam (simon, csjp, rwatson) in 2008, shortly prior to my going out of town and forgetting all about it. The conclusion was that the problem with forks is worrisome, but it doesn't appear to have introduced an actual vulnerability for any known programs. The only significant remaining difference between our arc4random and OpenBSD's is in how we seed the generator in arc4_stir().
Diffstat (limited to 'tools/regression/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud