]> 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)
commit0889bc49b525e72e5e49220bb7cdb62944271ebf
tree4677361def98960c003906ecb45ec84947e757b0
parentd5c743ad6f6de8c734aef05b8f8aff99e72e6f7d
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