Source-Changes archive

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

CVS commit: src



Module Name:    src
Committed By:   riastradh
Date:           Mon Jul  1 15:22:00 UTC 2013

Modified Files:
        src/sys/dev: rndpseudo.c
        src/sys/kern: subr_cprng.c
        src/sys/sys: cprng.h rnd.h
        src/usr.bin/fstat: misc.c

Log Message:
Fix races in /dev/u?random initialization and accounting.

- Push /dev/random `information-theoretic' accounting into cprng(9).
- Use percpu(9) for the per-CPU CPRNGs.
- Use atomics with correct memory barriers for lazy CPRNG creation.
- Remove /dev/random file kmem grovelling from fstat(1).


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/rndpseudo.c
cvs rdiff -u -r1.20 -r1.21 src/sys/kern/subr_cprng.c
cvs rdiff -u -r1.7 -r1.8 src/sys/sys/cprng.h
cvs rdiff -u -r1.38 -r1.39 src/sys/sys/rnd.h
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/fstat/misc.c

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