public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/2] add sanity check for SetMemoryAttributes
@ 2018-04-11  8:38 Jian J Wang
  2018-04-11  8:38 ` [PATCH 1/2] MdeModulePkg/DxeCore: " Jian J Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jian J Wang @ 2018-04-11  8:38 UTC (permalink / raw)
  To: edk2-devel

Heap Guard feature needs enough memory and paging to work. Otherwise
calling SetMemoryAttributes to change page attribute will fail. This
patch add necessary check of result of calling SetMemoryAttributes.
This can help users to debug their problem in enabling this feature.

Jian J Wang (2):
  MdeModulePkg/DxeCore: add sanity check for SetMemoryAttributes
  MdeModulePkg/SmmCore: add sanity check for SetMemoryAttributes

 MdeModulePkg/Core/Dxe/Mem/HeapGuard.c   |  9 +++++++--
 MdeModulePkg/Core/PiSmmCore/HeapGuard.c | 30 ++++++++++++++++++------------
 2 files changed, 25 insertions(+), 14 deletions(-)

-- 
2.16.2.windows.1



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

end of thread, other threads:[~2018-04-12  5:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-11  8:38 [PATCH 0/2] add sanity check for SetMemoryAttributes Jian J Wang
2018-04-11  8:38 ` [PATCH 1/2] MdeModulePkg/DxeCore: " Jian J Wang
2018-04-11  8:38 ` [PATCH 2/2] MdeModulePkg/SmmCore: " Jian J Wang
2018-04-12  5:54 ` [PATCH 0/2] " Zeng, Star

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