summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2023-02-07 18:27:15 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-03-16 21:14:49 +0000
commitf07a9df9af60ad0afa9107cb582f4103cdcda1bc (patch)
tree746e6f5c10fce2844999d539886dd5e7d9c72571
parent6b821be1407c46950a2d334e5a240ea5ba47d416 (diff)
downloadedk2-f07a9df9af60ad0afa9107cb582f4103cdcda1bc.tar.gz
edk2-f07a9df9af60ad0afa9107cb582f4103cdcda1bc.tar.bz2
edk2-f07a9df9af60ad0afa9107cb582f4103cdcda1bc.zip
ArmVirtPkg: Enable stack guard
Enable the stack guard in ArmVirtPkg builds, so that stack overflows are caught as they occur, rather than when they happen to hit a read-only memory region. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
-rw-r--r--ArmVirtPkg/ArmVirt.dsc.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ArmVirtPkg/ArmVirt.dsc.inc b/ArmVirtPkg/ArmVirt.dsc.inc
index 74d98e6314..5b18184be2 100644
--- a/ArmVirtPkg/ArmVirt.dsc.inc
+++ b/ArmVirtPkg/ArmVirt.dsc.inc
@@ -363,6 +363,8 @@
#
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD5
+ gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard|TRUE
+
[Components.common]
#
# Ramdisk support