]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Mon, 21 Feb 2022 15:48:06 +0000 (16:48 +0100)
commit998baf3717750b05ceda46b317b85a613bbbcc07
treef3d3d7f87b1c646f16180345d993cc094941c39a
parent317ec6b7fc39781b5f7b45b1ce27ac8fcc85ef3a
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: Eric Biggers <ebiggers@google.com>
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/char/random.c