Module Name: src Committed By: riastradh Date: Sun Mar 20 13:18:30 UTC 2022
Modified Files: src/sys/dev/usb: ualea.c Log Message: ualea(4): Enter the data under the softc lock. This avoids a race with a concurrent ualea_get updating sc_needed, which could lead to hang when requesting more entropy. ualea(4) now survives sysctl -w kern.entropy.depletion=1 cat </dev/random >/dev/null & cat </dev/random >/dev/null & without hanging for longer (even if yanked and reinserted in the middle, although the detach path is not relevant to the bug this change fixes). To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/dev/usb/ualea.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.