random: get rid of secondary crngs
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 6 Feb 2022 22:51:41 +0000 (23:51 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 13 Feb 2022 23:46:08 +0000 (00:46 +0100)
commit9b9a0c25a8d13d7794bc50fc7f4a6804b2a354b9
treed7751f6efadb493f758fd6861e6c56d644723403
parent418d04cc876d9e63796c7fccf1f72d696aaf27a6
random: get rid of secondary crngs

As the comment said, this is indeed a "hack". Since it was introduced,
it's been a constant state machine nightmare, with lots of subtle early
boot issues and a wildly complex set of machinery to keep everything in
sync. Rather than continuing to play whack-a-mole with this approach,
this commit simply removes it entirely. This commit is preparation for
"random: use simpler fast key erasure flow on per-cpu keys" in this
series, which introduces a simpler (and faster) mechanism to accomplish
the same thing.

Cc: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/char/random.c