--- - branch: netbsd-6 date: Fri Apr 20 23:35:20 UTC 2012 files: - new: 1.18.2.1 old: '1.18' path: src/share/man/man4/rnd.4 pathrev: src/share/man/man4/rnd.4@1.18.2.1 type: modified - new: 1.6.2.2 old: 1.6.2.1 path: src/sys/dev/rndpseudo.c pathrev: src/sys/dev/rndpseudo.c@1.6.2.2 type: modified - new: 1.1.2.1 old: '1.1' path: src/sys/kern/kern_rndpool.c pathrev: src/sys/kern/kern_rndpool.c@1.1.2.1 type: modified - new: 1.1.2.2 old: 1.1.2.1 path: src/sys/kern/kern_rndq.c pathrev: src/sys/kern/kern_rndq.c@1.1.2.2 type: modified - new: 1.5.2.2 old: 1.5.2.1 path: src/sys/kern/subr_cprng.c pathrev: src/sys/kern/subr_cprng.c@1.5.2.2 type: modified - new: 1.4.2.1 old: '1.4' path: src/sys/sys/cprng.h pathrev: src/sys/sys/cprng.h@1.4.2.1 type: modified - new: 1.29.2.2 old: 1.29.2.1 path: src/sys/sys/rnd.h pathrev: src/sys/sys/rnd.h@1.29.2.2 type: modified id: 20120420T233520Z.4f0a8a5f66ba79e0599075c2ede695e1355c8fd1 log: "Pull up following revision(s) (requested by tls in ticket #190):\n\tsys/sys/rnd.h: revision 1.31\n\tsys/sys/rnd.h: revision 1.32\n\tsys/sys/cprng.h: revision 1.5\n\tsys/kern/subr_cprng.c: revision 1.8\n\tshare/man/man4/rnd.4: revision 1.19\n\tsys/kern/kern_rndq.c: revision 1.3\n\tsys/dev/rndpseudo.c: revision 1.8\n\tsys/dev/rndpseudo.c: revision 1.9\n\tsys/kern/kern_rndpool.c: revision 1.2\nAddress multiple problems with rnd(4)/cprng(9):\n1) Add a per-cpu CPRNG to handle short reads from /dev/urandom so that\n programs like perl don't drain the entropy pool dry by repeatedly\n opening, reading 4 bytes, closing.\n2) Really fix the locking around reseeds and destroys.\n3) Fix the opportunistic-reseed strategy so it actually works, reseeding\n existing RNGs once each (as they are used, so idle RNGs don't get\n reseeded) until the pool is half empty or newly full again.\nFix a bug and a compilation problem. Bug: spin mutexes don't have owners,\nso KASSERT(!mutex_owned()) shouldn't be used to assert that the current\nLWP does not have the mutex. Compilation problem: explicitly include\nsys/mutex.h from rnd.h so evbarm builds again.\n" module: src subject: 'CVS commit: [netbsd-6] src' unixtime: '1334964920' user: riz