audk/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe
Jian J Wang 6a3094c996 MdeModulePkg/BootScriptExecutorDxe: remove NX attr for FfsBuffer
If PcdDxeNxMemoryProtectionPolicy is set to enable protection for memory
of EfiReservedMemoryType, the BIOS will hang at a page fault exception
triggered by BootScriptExecutorDxe.

The root cause is that this driver will allocate memory of
EfiReservedMemoryType and relocate itself into this new memory. Since
EfiReservedMemoryType of memory is marked non-executable, re-start this
driver after relocation will cause exception. The fix is removing the NX
attribute after memory allocation.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
2018-01-18 17:03:25 +08:00
..
IA32 MdeModulePkg BootScriptExecutorDxe: Convert IA32/S3Asm.asm to NASM 2016-06-28 09:52:00 +08:00
X64 MdeModulePkg: Error Level is not used correctly 2017-04-12 08:56:12 +08:00
BootScriptExecutorDxe.inf MdeModulePkg/BootScriptExecutorDxe: remove NX attr for FfsBuffer 2018-01-18 17:03:25 +08:00
BootScriptExecutorDxe.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
BootScriptExecutorDxeExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
ScriptExecute.c MdeModulePkg/BootScriptExecutorDxe: remove NX attr for FfsBuffer 2018-01-18 17:03:25 +08:00
ScriptExecute.h MdeModulePkg/BootScriptExecutorDxe: remove NX attr for FfsBuffer 2018-01-18 17:03:25 +08:00