NX memory protection feature enabled by PcdDxeNxMemoryProtectionPolicy
was not fully tested, especially if it's enabled for memory with type
of EfiBootServicesCode, EfiConventionalMemory and EfiReservedMemoryType.
This series will fix all issues caused by it.
Jian J Wang (6):
UefiCpuPkg/MpInitLib: split wake up buffer into two parts
UefiCpuPkg/CpuExceptionHandlerLib: alloc code memory for exception
handlers
UefiCpuPkg/CpuDxe: clear NX attr for page directory
UefiCpuPkg/PiSmmCpuDxeSmm: Enable NXE if it's available
MdeModulePkg/PiSmmCore: remove NX attr from SMM RAM
MdeModulePkg/BootScriptExecutorDxe: remove NX attr for FfsBuffer
MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c | 18 ++++-
.../BootScriptExecutorDxe.inf | 1 +
.../Acpi/BootScriptExecutorDxe/ScriptExecute.c | 14 ++++
.../Acpi/BootScriptExecutorDxe/ScriptExecute.h | 1 +
UefiCpuPkg/CpuDxe/CpuPageTable.c | 6 +-
.../Library/CpuExceptionHandlerLib/DxeException.c | 18 ++++-
UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 34 +++++++++
UefiCpuPkg/Library/MpInitLib/Ia32/MpEqu.inc | 5 ++
UefiCpuPkg/Library/MpInitLib/Ia32/MpFuncs.nasm | 32 ++++----
UefiCpuPkg/Library/MpInitLib/MpLib.c | 45 +++++++++++
UefiCpuPkg/Library/MpInitLib/MpLib.h | 22 ++++++
UefiCpuPkg/Library/MpInitLib/PeiMpLib.c | 23 ++++++
UefiCpuPkg/Library/MpInitLib/X64/MpEqu.inc | 5 +-
UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm | 87 ++++++++++++++--------
UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmmInit.nasm | 14 ++++
UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmmInit.nasm | 12 ++-
16 files changed, 278 insertions(+), 59 deletions(-)
--
2.15.1.windows.2
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel