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)
commit07768c55f9c2ad64ccae3ed82447a87d8af8a687
tree4677361def98960c003906ecb45ec84947e757b0
parent416a9f84a77cf826fed1bf9a1908b2d066c17430
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