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 MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Dispatcher.c MdeModulePkg/SmmCore: Add perf-logging for SmmDriverDispatchHandler 2023-06-21 04:37:17 +00:00
Handle.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
HeapGuard.c MdeModulePkg: Remove other attribute protection in UnsetGuardPage 2023-06-30 11:07:40 +05:30
HeapGuard.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
InstallConfigurationTable.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Locate.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MemoryAttributesTable.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Notify.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Page.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PiSmmCore.c MdeModulePkg/SmmCore: Perf-log PlatformHookBefore/AfterSmmDispatch 2023-06-21 04:37:17 +00:00
PiSmmCore.h MdeModulePkg/PiSmmCore: SmmEntryPoint underflow (CVE-2021-38578) 2022-11-04 01:58:20 +00:00
PiSmmCore.inf MdeModulePkg/PiSmmCore: SmmEntryPoint underflow (CVE-2021-38578) 2022-11-04 01:58:20 +00:00
PiSmmCore.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
PiSmmCoreExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
PiSmmCorePrivateData.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PiSmmIpl.c MdeModulePkg/PiSmmCore: SmmEntryPoint underflow (CVE-2021-38578) 2022-11-04 01:58:20 +00:00
PiSmmIpl.inf MdeModulePkg/PiSmmCore: SmmEntryPoint underflow (CVE-2021-38578) 2022-11-04 01:58:20 +00:00
PiSmmIpl.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
PiSmmIplExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
Pool.c MdeModulePkg: PiSmmCore: Inspect memory guarded with pool headers 2022-05-13 00:51:41 +00:00
Smi.c MdeModulePkg/SmmCore: Add perf-logging for time-consuming procedures 2023-06-21 04:37:17 +00:00
SmiHandlerProfile.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SmramProfileRecord.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00