]> git.baikalelectronics.ru Git - kernel.git/commit
efi/arm64: libstub: run image in place if randomized by the loader
authorArd Biesheuvel <ardb@kernel.org>
Sat, 19 Mar 2022 18:00:20 +0000 (19:00 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 3 May 2022 13:31:29 +0000 (15:31 +0200)
commit568f8964bf0d0af6c1b4042bb9c2a8baa5b22455
tree4677361def98960c003906ecb45ec84947e757b0
parent93bef5ba7fd2107631fa1d4088a595ae191650dd
efi/arm64: libstub: run image in place if randomized by the loader

If the loader has already placed the EFI kernel image randomly in
physical memory, and indicates having done so by installing the 'fixed
placement' protocol onto the image handle, don't bother randomizing the
placement again in the EFI stub.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/arm64-stub.c
include/linux/efi.h