diff options
author | Eric Biggers <ebiggers@google.com> | 2021-01-12 11:28:18 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-02-04 16:59:02 +0100 |
commit | 11a0b5e0ec8c13bef06f7414f9e914506140d5cb (patch) | |
tree | 7a023fe157df59956311db2a0c7cc673ea602c04 /drivers/hid/hid-maltron.c | |
parent | a74ab2ed0def52a993d0cbd9df9d1c4de33c6fbd (diff) |
random: fix the RNDRESEEDCRNG ioctl
The RNDRESEEDCRNG ioctl reseeds the primary_crng from itself, which
doesn't make sense. Reseed it from the input_pool instead.
Fixes: d848e5f8e1eb ("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>
Diffstat (limited to 'drivers/hid/hid-maltron.c')
0 files changed, 0 insertions, 0 deletions