VirtualBox

Changeset 100126 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jun 8, 2023 3:38:21 PM (18 months ago)
Author:
vboxsync
Message:

Devices/EFI/Firmware: Don't apply NX protection to EfiLoaderData regions as older aarch64 grub images assume being able to execute code from there, fixes the OpenSuse and fedora bootloaders, bugref:10400

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/ArmVirtPkg/ArmVirt.dsc.inc

    r99464 r100126  
    362362  # (i.e., GRUB) may assume that its contents are executable.
    363363  #
     364!ifdef $(VBOX)
     365  #
     366  # The default protection includes EfiLoaderData which older grub bootloaders
     367  # fail to boot with because they assume being able to execute code from such memory
     368  # regions. So don't apply the NX protection there.
     369  #
     370  gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD1
     371!else
    364372  gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD5
     373!endif
    365374
    366375[Components.common]
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette