diff options
| author | Jason A. Donenfeld <[email protected]> | 2022-01-28 22:44:03 +0000 |
|---|---|---|
| committer | Jason A. Donenfeld <[email protected]> | 2022-02-04 18:22:32 +0000 |
| commit | 042e293e16e3aa9794ce60c29f5b7b0c8170f933 (patch) | |
| tree | b0f1c07c6222f4aa408dfa7aff26fbefb0bdc2db /lib/string_helpers.c | |
| parent | random: continually use hwgenerator randomness (diff) | |
| download | kernel-042e293e16e3aa9794ce60c29f5b7b0c8170f933.tar.gz kernel-042e293e16e3aa9794ce60c29f5b7b0c8170f933.zip | |
random: wake up /dev/random writers after zap
When account() is called, and the amount of entropy dips below
random_write_wakeup_bits, we wake up the random writers, so that they
can write some more in. However, the RNDZAPENTCNT/RNDCLEARPOOL ioctl
sets the entropy count to zero -- a potential reduction just like
account() -- but does not unblock writers. This commit adds the missing
logic to that ioctl to unblock waiting writers.
Reviewed-by: Dominik Brodowski <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
