Files
linux/drivers/char
Eric Biggers 0c3c94b448 random: fix the RNDRESEEDCRNG ioctl
commit 11a0b5e0ec upstream.

The RNDRESEEDCRNG ioctl reseeds the primary_crng from itself, which
doesn't make sense.  Reseed it from the input_pool instead.

Fixes: d848e5f8e1 ("random: add new ioctl RNDRESEEDCRNG")
Cc: stable@vger.kernel.org
Cc: linux-crypto@vger.kernel.org
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Jann Horn <jannh@google.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jann Horn <jannh@google.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20210112192818.69921-1-ebiggers@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-16 10:36:45 +09:00
..
2017-06-07 12:07:48 +02:00
2013-05-05 00:11:29 -04:00
2016-07-14 16:21:53 +09:00
2013-02-22 23:31:31 -05:00
2011-03-31 11:26:23 -03:00
2023-05-15 14:34:59 +09:00
2013-02-22 23:31:31 -05:00
2023-05-15 16:16:41 +09:00
2016-01-22 18:04:28 -05:00
2023-05-16 10:36:45 +09:00
2011-01-10 08:51:44 -08:00