commit | 4d1f1a0d96869df9df821a5270ba52e05bbeacda | [log] [tgz] |
---|---|---|
author | Jason A. Donenfeld <Jason@zx2c4.com> | Fri Sep 23 02:42:51 2022 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Oct 26 13:15:35 2022 +0200 |
tree | 67dd51bca4075a3cd20ba9673175c5ba757a4a5b | |
parent | 3a223145bd21536f80636d13d1fbfa97562225cc [diff] |
random: clamp credited irq bits to maximum mixed commit e78a802a7b4febf53f2a92842f494b01062d85a8 upstream. Since the most that's mixed into the pool is sizeof(long)*2, don't credit more than that many bytes of entropy. Fixes: e3e33fc2ea7f ("random: do not use input pool from hard IRQs") Cc: stable@vger.kernel.org Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>