]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
random: fix soft lockup when trying to read from an uninitialized blocking pool
authorTheodore Ts'o <tytso@mit.edu>
Wed, 22 May 2019 16:02:16 +0000 (12:02 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2022 09:46:26 +0000 (11:46 +0200)
commiteaabe771c1aa52872fed8540d342a99fbe053f2f
tree4c1119436fca34fd4785e762ffcf5a5bebafa7c3
parent138b6da69f9919da672191d2754d997b401c8163
random: fix soft lockup when trying to read from an uninitialized blocking pool

commit 58be0106c5306b939b07b4b8bf00669a20593f4b upstream.

Fixes: eb9d1bf079bb: "random: only read from /dev/random after its pool has received 128 bits"
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/random.c