History

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.

Dominik Brodowski committed 7 years ago

Commit 0d959811 parent 41e8a7c4 files · +8 −4Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/efi.h+2−0
@@ -1645,6 +1645,8 @@ static inline void · 1644 unmodified lines
16451645 efi_enable_reset_attack_mitigation(efi_system_table_t *sys_table_arg) { }
16461646 #endif
16471647
1648+efi_status_t efi_random_get_seed(efi_system_table_t *sys_table_arg);
1649+
16481650 void efi_retrieve_tpm2_eventlog(efi_system_table_t *sys_table);
16491651
16501652 /*

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t