diff options
author | Jian J Wang <jian.j.wang@intel.com> | 2018-01-29 19:07:29 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2018-02-02 09:50:16 +0800 |
commit | 9b17c6511d50db493c49324aaf81c50c3676a111 (patch) | |
tree | 477124e32d1842a64b472c5e7acc09b3b6b5db3a /ArmPkg/Filesystem | |
parent | 1263ecf2ffc9302663a304e7a6467c6e00cebf4a (diff) | |
download | edk2-9b17c6511d50db493c49324aaf81c50c3676a111.tar.gz edk2-9b17c6511d50db493c49324aaf81c50c3676a111.tar.bz2 edk2-9b17c6511d50db493c49324aaf81c50c3676a111.zip |
MdeModulePkg/Core: fix feature conflict between NX and NULL detection
If enabled, NX memory protection feature will mark all free memory as
NX (non-executable), including page 0. This will overwrite the attributes
of page 0 if NULL pointer detection feature is also enabled and then
compromise the functionality of it. The solution is skipping the NX
attributes setting to page 0 if NULL pointer detection feature is enabled.
Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'ArmPkg/Filesystem')
0 files changed, 0 insertions, 0 deletions