diff options
author | Girish Pathak <girish.pathak@arm.com> | 2018-02-12 18:44:27 +0000 |
---|---|---|
committer | Leif Lindholm <leif.lindholm@linaro.org> | 2018-04-23 18:04:08 +0100 |
commit | d19740b00426676f6fed47a8d4de8680071f2b5d (patch) | |
tree | 0245ac0261661f74dfa57a9d2653576e7a5c8923 /MdeModulePkg/Universal/FileExplorerDxe/FileExplorerDxe.c | |
parent | 0449acb982dc8f4c7f4573756a909e44c3edfb59 (diff) | |
download | edk2-platforms-d19740b00426676f6fed47a8d4de8680071f2b5d.tar.xz |
ARM/VExpressPkg: Set EFI_MEMORY_XP flag on GOP framebuffer
The framebuffer memory is set with flag
EFI_MEMORY_WC (uncached, unbuffered) which causes framebuffer memory
with eXecute bit set. Framebuffer memory having executable bit
set is a security hazard. This fix adds EFI_MEMORY_XP flag to avoid this.
Unfortunately function gDS->SetMemorySpaceAttributes() causes assertion due
to unsupported EFI_MEMORY_XP type. Therefore this fix replaces
gDS->SetMemorySpaceAttributes() with Cpu->SetMemoryAttributes().
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Girish Pathak <girish.pathak@arm.com>
Signed-off-by: Evan Lloyd <evan.lloyd@arm.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'MdeModulePkg/Universal/FileExplorerDxe/FileExplorerDxe.c')
0 files changed, 0 insertions, 0 deletions