Re: [edk2] [PATCH 1/2] MdeModulePkg/Core: Refine handling NULL detection in NX setting

2018-03-06 Thread Yao, Jiewen
reviewed-by: jiewen@intel.com > -Original Message- > From: Wu, Hao A > Sent: Tuesday, March 6, 2018 8:11 PM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A ; Wang, Jian J ; > Zeng, Star ; Dong, Eric ; Yao, > Jiewen ; Ni, Ruiyu > Subject: [PATCH 1/2] MdeModulePkg/Core: Refine handling NU

[edk2] [PATCH 1/2] MdeModulePkg/Core: Refine handling NULL detection in NX setting

2018-03-06 Thread Hao Wu
The commit rewrites the logic in function InitializeDxeNxMemoryProtectionPolicy() for handling the first page (page 0) when NULL pointer detection feature is enabled. Instead of skip setting the page 0, the codes will now override the attribute setting of page 0 by adding the 'EFI_MEMORY_RP' attri