summaryrefslogtreecommitdiff
path: root/RedfishPkg/Redfish.dsc.inc
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2023-12-04 10:41:08 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-12-12 10:53:16 +0000
commitcee7ba349c0c1ce489001a338a4e28555728b573 (patch)
treec63a0bf1c22962b4c1cdccfb1ff52f9efe42fa04 /RedfishPkg/Redfish.dsc.inc
parent725acd0b9cc047b20a1b9379e46f05d3ebcf485e (diff)
downloadedk2-cee7ba349c0c1ce489001a338a4e28555728b573.zip
edk2-cee7ba349c0c1ce489001a338a4e28555728b573.tar.gz
edk2-cee7ba349c0c1ce489001a338a4e28555728b573.tar.bz2
ArmVirtQemu: Allow EFI memory attributes protocol to be disabled
Shim's PE loader uses the EFI memory attributes protocol in a way that results in an immediate crash when invoking the loaded image, unless the base and size of its executable segment are both aligned to 4k. If this is not the case, it will strip the memory allocation of its executable permissions, but fail to add them back for the executable region, resulting in non-executable code. Unfortunately, the PE loader does not even bother invoking the protocol in this case (as it notices the misalignment), making it very hard for system firmware to work around this by attempting to infer the intent of the caller. So let's introduce a QEMU command line option to indicate that the protocol should not be exposed at all, and a PCD to set the default for this option when it is omitted. Reviewed-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Link: https://gitlab.com/qemu-project/qemu/-/issues/1990 Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'RedfishPkg/Redfish.dsc.inc')
0 files changed, 0 insertions, 0 deletions