Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys

Module Name:    src
Committed By:   tls
Date:           Tue Apr 10 14:02:28 UTC 2012

Modified Files:
        src/sys/kern: kern_rndq.c subr_cprng.c
        src/sys/lib/libkern: arc4random.c
        src/sys/sys: rnd.h

Log Message:
Add a spin mutex to the rndsink structure; it is used to avoid lock
ordering and sleep-holding-locks problems when rekeying, and thus
to avoid a nasty race between cprng destruction and reseeding.

To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/kern/kern_rndq.c
cvs rdiff -u -r1.5 -r1.6 src/sys/kern/subr_cprng.c
cvs rdiff -u -r1.31 -r1.32 src/sys/lib/libkern/arc4random.c
cvs rdiff -u -r1.29 -r1.30 src/sys/sys/rnd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index