audk/MdeModulePkg/Core/PiSmmCore
Dun Tan 8c99839776 MdeModulePkg: Remove other attribute protection in UnsetGuardPage
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>
2023-06-30 11:07:40 +05:30
..
Dependency.c
Dispatcher.c MdeModulePkg/SmmCore: Add perf-logging for SmmDriverDispatchHandler 2023-06-21 04:37:17 +00:00
Handle.c
HeapGuard.c MdeModulePkg: Remove other attribute protection in UnsetGuardPage 2023-06-30 11:07:40 +05:30
HeapGuard.h
InstallConfigurationTable.c
Locate.c
MemoryAttributesTable.c
Notify.c
Page.c
PiSmmCore.c MdeModulePkg/SmmCore: Perf-log PlatformHookBefore/AfterSmmDispatch 2023-06-21 04:37:17 +00:00
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