random: crng_reseed() should lock the crng instance that it is modifying
authorTheodore Ts'o <tytso@mit.edu>
Thu, 12 Apr 2018 04:50:45 +0000 (00:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 14 Apr 2018 15:59:31 +0000 (11:59 -0400)
commit0bb29a849a6433b72e249eea7695477b02056e94
tree8fe433e610984789e2ffe10d0ba68fc3694afeef
parent8ef35c866f8862df074a49a93b0309725812dea8
random: crng_reseed() should lock the crng instance that it is modifying

Reported-by: Jann Horn <jannh@google.com>
Fixes: 1e7f583af67b ("random: make /dev/urandom scalable for silly...")
Cc: stable@kernel.org # 4.8+
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jann Horn <jannh@google.com>
drivers/char/random.c