public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/6] Fix issues caused by NX memory protection
@ 2018-01-15  8:54 Jian J Wang
  2018-01-15  8:54 ` [PATCH 1/6] UefiCpuPkg/MpInitLib: split wake up buffer into two parts Jian J Wang
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: Jian J Wang @ 2018-01-15  8:54 UTC (permalink / raw)
  To: edk2-devel

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



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2018-02-01  1:02 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-15  8:54 [PATCH 0/6] Fix issues caused by NX memory protection Jian J Wang
2018-01-15  8:54 ` [PATCH 1/6] UefiCpuPkg/MpInitLib: split wake up buffer into two parts Jian J Wang
2018-01-18  6:53   ` Dong, Eric
2018-01-27 16:17   ` Laszlo Ersek
2018-01-28 21:43     ` Laszlo Ersek
2018-01-29  1:06       ` Wang, Jian J
2018-01-29 15:50         ` Laszlo Ersek
2018-01-15  8:54 ` [PATCH 2/6] UefiCpuPkg/CpuExceptionHandlerLib: alloc code memory for exception handlers Jian J Wang
2018-01-16 14:02   ` Dong, Eric
2018-01-15  8:54 ` [PATCH 3/6] UefiCpuPkg/CpuDxe: clear NX attr for page directory Jian J Wang
2018-01-16 14:02   ` Dong, Eric
2018-01-15  8:54 ` [PATCH 4/6] UefiCpuPkg/PiSmmCpuDxeSmm: Enable NXE if it's supported Jian J Wang
2018-01-16 14:02   ` Dong, Eric
2018-01-28 22:46   ` Laszlo Ersek
2018-01-29  9:02     ` Wang, Jian J
2018-01-29 19:48       ` Laszlo Ersek
2018-01-30 13:09         ` Laszlo Ersek
2018-02-01  1:08         ` Wang, Jian J
2018-01-15  8:54 ` [PATCH 5/6] MdeModulePkg/PiSmmCore: remove NX attr for SMM RAM Jian J Wang
2018-01-15 10:18   ` Zeng, Star
2018-01-15  8:54 ` [PATCH 6/6] MdeModulePkg/BootScriptExecutorDxe: remove NX attr for FfsBuffer Jian J Wang
2018-01-15 10:18   ` Zeng, Star

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox