]> asedeno.scripts.mit.edu Git - linux.git/commit
x86: efi/random: Invoke EFI_RNG_PROTOCOL to seed the UEFI RNG table
authorDominik Brodowski <linux@dominikbrodowski.net>
Wed, 6 Nov 2019 07:06:13 +0000 (08:06 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 7 Nov 2019 09:18:45 +0000 (10:18 +0100)
commit0d95981438c3bdb53cc99b0fb656d24d7a80e1f3
tree7c3dd2d573b2d2210eb4c87b5a62d705bf2da312
parent41e8a7c249bf50f2f719c2ff21ab92be70651f06
x86: efi/random: Invoke EFI_RNG_PROTOCOL to seed the UEFI RNG table

Invoke the EFI_RNG_PROTOCOL protocol in the context of the x86 EFI stub,
same as is done on arm/arm64 since commit 568bc4e87033 ("efi/arm*/libstub:
Invoke EFI_RNG_PROTOCOL to seed the UEFI RNG table"). Within the stub,
a Linux-specific RNG seed UEFI config table will be seeded. The EFI routines
in the core kernel will pick that up later, yet still early during boot,
to seed the kernel entropy pool. If CONFIG_RANDOM_TRUST_BOOTLOADER, entropy
is credited for this seed.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/boot/compressed/eboot.c
drivers/firmware/efi/libstub/Makefile
drivers/firmware/efi/libstub/efistub.h
include/linux/efi.h