Re: [edk2] [PATCH 1/2] MdeModulePkg/Core: Fix heap guard issues

2017-12-25 Thread Yao, Jiewen
1.org > Cc: Yao, Jiewen ; Dong, Eric ; > Zeng, Star > Subject: [edk2] [PATCH 1/2] MdeModulePkg/Core: Fix heap guard issues > > Two issues addressed here: > > a. Make NX memory protection and heap guard to be compatible > The solution is to check PcdDxeNxMemoryProtectionPo

[edk2] [PATCH 1/2] MdeModulePkg/Core: Fix heap guard issues

2017-12-24 Thread Jian J Wang
Two issues addressed here: a. Make NX memory protection and heap guard to be compatible The solution is to check PcdDxeNxMemoryProtectionPolicy in Heap Guard to see if the free memory should be set to NX, and set the Guard page to NX before it's freed back to memory pool. This can solve the issue