summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi/libstub/x86-stub.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2023-08-07 18:27:18 +0200
committerBorislav Petkov (AMD) <bp@alien8.de>2023-08-07 21:01:46 +0200
commitbc5ddceff4c14494d83449ad45c985e6cd353fce (patch)
tree4867cffc891dad0cbf9215160e17abdb6ed650b1 /drivers/firmware/efi/libstub/x86-stub.c
parentx86/decompressor: Factor out kernel decompression and relocation (diff)
downloadlinux-bc5ddceff4c14494d83449ad45c985e6cd353fce.tar.xz
linux-bc5ddceff4c14494d83449ad45c985e6cd353fce.zip
efi/libstub: Add limit argument to efi_random_alloc()
x86 will need to limit the kernel memory allocation to the lowest 512 MiB of memory, to match the behavior of the existing bare metal KASLR physical randomization logic. So in preparation for that, add a limit parameter to efi_random_alloc() and wire it up. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20230807162720.545787-22-ardb@kernel.org
Diffstat (limited to 'drivers/firmware/efi/libstub/x86-stub.c')
0 files changed, 0 insertions, 0 deletions