]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kern: random: drop read_rate and associated functionality
authorKyle Evans <kevans@FreeBSD.org>
Mon, 20 Sep 2021 04:59:09 +0000 (23:59 -0500)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 23 Sep 2021 06:03:01 +0000 (01:03 -0500)
commit6895cade9421238abf541f24fb9327ebd19e94ff
tree3347ccd105c1a9c7af5c79d3105a6e0b05027e8d
parent7bc13692a2d6b33b4e80bb9ad70d5eede6b148af
kern: random: drop read_rate and associated functionality

Refer to discussion in PR 230808 for a less incomplete discussion, but
the gist of this change is that we currently collect orders of magnitude
more entropy than we need.

The excess comes from bytes being read out of /dev/*random.  The default
rate at which we collect entropy without the read_rate increase is
already more than we need to recover from a compromise of an internal
state.

Reviewed by: #csprng (cem, delphij, markm)
Differential Revision: https://reviews.freebsd.org/D32021
sys/dev/random/random_harvestq.c
sys/dev/random/random_harvestq.h
sys/dev/random/randomdev.c