diff options
author | Hao Wu <hao.a.wu@intel.com> | 2018-03-06 19:34:38 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2018-03-07 20:56:42 +0800 |
commit | 7db1458f759c2e22ebb4c66bc61aa5dbae1e5fa1 (patch) | |
tree | db246075f83c6185f533b126eff4a0b407ba9fee /BaseTools/Source/Python/Table/TableFunction.py | |
parent | a10acf0e207ed49cb3bcce14f3de172605df6ce7 (diff) | |
download | edk2-7db1458f759c2e22ebb4c66bc61aa5dbae1e5fa1.tar.gz edk2-7db1458f759c2e22ebb4c66bc61aa5dbae1e5fa1.tar.bz2 edk2-7db1458f759c2e22ebb4c66bc61aa5dbae1e5fa1.zip |
MdeModulePkg/Core: Fix feature conflict between NX and Stack guard
If enabled, NX memory protection feature will mark some types of active
memory as NX (non-executable), which includes the first page of the stack.
This will overwrite the attributes of the first page of the stack if the
stack guard feature is also enabled.
The solution is to override the attributes setting to the first page of
the stack by adding back the 'EFI_MEMORY_RP' attribute when the stack
guard feature is enabled.
Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Table/TableFunction.py')
0 files changed, 0 insertions, 0 deletions