Skip to content

Commit 2997ae3

Browse files
ardbiesheuvelmergify[bot]
authored andcommitted
ArmVirtPkg: make EFI_LOADER_DATA non-executable
When the memory protections were implemented and enabled on ArmVirtQemu 5+ years ago, we had to work around the fact that GRUB at the time expected EFI_LOADER_DATA to be executable, as that is the memory type it allocates when loading its modules. This has been fixed in GRUB in August 2017, so by now, we should be able to tighten this, and remove execute permissions from EFI_LOADER_DATA allocations. Signed-off-by: Ard Biesheuvel <[email protected]>
1 parent 9e2c88b commit 2997ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ArmVirtPkg/ArmVirt.dsc.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@
368368
# reserved ones, with the exception of LoaderData regions, of which OS loaders
369369
# (i.e., GRUB) may assume that its contents are executable.
370370
#
371-
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD1
371+
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD5
372372

373373
[Components.common]
374374
#

0 commit comments

Comments
 (0)