diff options
author | Oliver Smith-Denny <osde@microsoft.com> | 2023-04-26 12:04:37 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-08-29 16:11:40 +0000 |
commit | 1169122c6f22d4db3e44b7b720480522b6933a62 (patch) | |
tree | dadafdb0029f2cc1adbc6c405dc4421895f2e63d /MdePkg | |
parent | 01735bbe4a46a6fb7d5d739d0fc5a14897ad18da (diff) | |
download | edk2-1169122c6f22d4db3e44b7b720480522b6933a62.tar.gz edk2-1169122c6f22d4db3e44b7b720480522b6933a62.tar.bz2 edk2-1169122c6f22d4db3e44b7b720480522b6933a62.zip |
MdeModulePkg NonDiscoverablePciDeviceIo: MMIO Memory XP By Default
When allocating memory for a non-discoverable PCI device's IO, the
current core code removes the XP attribute, allowing code to execute
from that region. This is a security vulnerability and unneeded. This
change updates to mark the region as XP when allocating memory for the
non-discoverable PCI device.
These allocations in this function are limited to `EfiBootServicesData`
and `EfiRuntimeServicesData`, which we expect to be XP.
Signed-off-by: Aaron Pop <aaronpop@microsoft.com>
Diffstat (limited to 'MdePkg')
0 files changed, 0 insertions, 0 deletions