Skip to content

Commit c7d9e62

Browse files
committed
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: <[email protected]> # v6.2+ Signed-off-by: Ard Biesheuvel <[email protected]>
1 parent fe15c26 commit c7d9e62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/efi/libstub/zboot-header.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ __efistub_efi_zboot_header:
6363
.long .Lefi_header_end - .Ldoshdr
6464
.long 0
6565
.short IMAGE_SUBSYSTEM_EFI_APPLICATION
66-
.short 0
66+
.short IMAGE_DLL_CHARACTERISTICS_NX_COMPAT
6767
#ifdef CONFIG_64BIT
6868
.quad 0, 0, 0, 0
6969
#else

0 commit comments

Comments
 (0)