mirror of https://github.com/acidanthera/audk.git
8c99839776
In UnsetGuardPage(), before SmmReadyToLock, remove NX and RO memory attribute protection for guarded page since EfiConventionalMemory in SMRAM is RW and executable before SmmReadyToLock. If UnsetGuardPage() happens after SmmReadyToLock, then apply EFI_MEMORY_XP to the guarded page to make sure EfiConventionalMemory in SMRAM is NX since EfiConventionalMemory in SMRAM is marked as NX in PiSmmCpuDxe driver when SmmReadyToLock. Signed-off-by: Dun Tan <dun.tan@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Ray Ni <ray.ni@intel.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> |
||
---|---|---|
.. | ||
Dependency.c | ||
Dispatcher.c | ||
Handle.c | ||
HeapGuard.c | ||
HeapGuard.h | ||
InstallConfigurationTable.c | ||
Locate.c | ||
MemoryAttributesTable.c | ||
Notify.c | ||
Page.c | ||
PiSmmCore.c | ||
PiSmmCore.h | ||
PiSmmCore.inf | ||
PiSmmCore.uni | ||
PiSmmCoreExtra.uni | ||
PiSmmCorePrivateData.h | ||
PiSmmIpl.c | ||
PiSmmIpl.inf | ||
PiSmmIpl.uni | ||
PiSmmIplExtra.uni | ||
Pool.c | ||
Smi.c | ||
SmiHandlerProfile.c | ||
SmramProfileRecord.c |