efi/libstub: zboot: Mark zboot EFI application as NX compatible
authorArd Biesheuvel <ardb@kernel.org>
Fri, 10 Mar 2023 11:15:24 +0000 (12:15 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 10 Mar 2023 13:11:39 +0000 (14:11 +0100)
commitc7d9e628b8ff4d52a365a441bdacb3209ee83c81
tree99549ee6401b3e1e68f1ba3fa06b155821cc75d5
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6
efi/libstub: zboot: Mark zboot EFI application as NX compatible

Now that the zboot loader will invoke the EFI memory attributes protocol
to remap the decompressed code and rodata as read-only/executable, we
can set the PE/COFF header flag that indicates to the firmware that the
application does not rely on writable memory being executable at the
same time.

Cc: <stable@vger.kernel.org> # v6.2+
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/zboot-header.S