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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:36:36 +0000 (09:36 +0200)
commitd152fcc173149a99d6f707a5b8a80d83d906755b
tree8eecc797438d0d8150ab0051d9385d8668e65b3b
parent7b6b1f3a192372937164d1293b432c640ffc7c8f
random: crng_reseed() should lock the crng instance that it is modifying

commit 0bb29a849a6433b72e249eea7695477b02056e94 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/random.c