summaryrefslogtreecommitdiff
path: root/drivers/firmware/efi/reboot.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-08-25 18:50:16 +0300
committerIngo Molnar <mingo@kernel.org>2017-08-26 10:20:33 +0300
commitc2ceb5fd4e921506e86208b82fca716a2c3aad59 (patch)
tree960b9e5412ea59b8326b83939104f1c1ada0cab1 /drivers/firmware/efi/reboot.c
parentccc829ba3624beb9a703fc995d016b836d9eead8 (diff)
downloadlinux-c2ceb5fd4e921506e86208b82fca716a2c3aad59.tar.xz
efi/random: Increase size of firmware supplied randomness
The crng code requires at least 64 bytes (2 * CHACHA20_BLOCK_SIZE) to complete the fast boot-time init, so provide that many bytes when invoking UEFI protocols to seed the entropy pool. Also, add a notice so we can tell from the boot log when the seeding actually took place. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Matt Fleming <matt@codeblueprint.co.uk> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/20170825155019.6740-3-ard.biesheuvel@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/reboot.c')
0 files changed, 0 insertions, 0 deletions