summaryrefslogtreecommitdiffstats
path: root/drivers/counter
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-11-22 03:04:01 +0100
committerArd Biesheuvel <ardb@kernel.org>2022-12-01 09:51:21 +0100
commita89474aaf7cf27f2299e0a00fb64c94b6ad338a9 (patch)
tree6852ddaaee9eb15a62fe208eec86f1489d21182e /drivers/counter
parent63ffb573df66aea034d07fd00483d0a3cd4fed66 (diff)
downloadlinux-a89474aaf7cf27f2299e0a00fb64c94b6ad338a9.tar.bz2
efi: stub: use random seed from EFI variable
EFI has a rather unique benefit that it has access to some limited non-volatile storage, where the kernel can store a random seed. Read that seed in EFISTUB and concatenate it with other seeds we wind up passing onward to the kernel in the configuration table. This is complementary to the current other two sources - previous bootloaders, and the EFI RNG protocol. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> [ardb: check for non-NULL RNG protocol pointer, call GetVariable() without buffer first to obtain the size] Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/counter')
0 files changed, 0 insertions, 0 deletions