efi/libstub: arm64: Remap relocated image with strict permissions
authorArd Biesheuvel <ardb@kernel.org>
Fri, 10 Mar 2023 11:55:41 +0000 (12:55 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 10 Mar 2023 13:11:39 +0000 (14:11 +0100)
commit3c60f67b4bd1bc01fa9194e9dc925ac6cb56156c
tree377a57993b5f637faf3819fd24411ec5d78d42fb
parentc7d9e628b8ff4d52a365a441bdacb3209ee83c81
efi/libstub: arm64: Remap relocated image with strict permissions

After relocating the executable image, use the EFI memory attributes
protocol to remap the code and data regions with the appropriate
permissions.

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