summaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
authorRoland Hieber <rhi@pengutronix.de>2019-03-11 00:40:41 +0100
committerRobert Schwebel <r.schwebel@pengutronix.de>2019-03-11 06:47:41 +0100
commit47f497cfdd9de61bcb42d80a392ff91e0556f83e (patch)
treedbee6a6020356030b03f19ae819fb0017e3917f6 /configs
parenta60b8e2c94b7f7e4a8f31885259a3cdd6047d934 (diff)
downloadDistroKit-47f497cfdd9de61bcb42d80a392ff91e0556f83e.tar.gz
DistroKit-47f497cfdd9de61bcb42d80a392ff91e0556f83e.tar.xz
v7a: enable gcc stack clash protection
This setting was introduced in PTXdist 2019.03.0: Generate code to prevent stack clash style attacks. When this option is enabled, the compiler will only allocate one page of stack space at a time and each page is accessed immediately after allocation. Thus, it prevents allocations from jumping over any stack guard page provided by the operating system. Make use of it to get more secure binaries with gcc-8's new -fstack-clash-protection option. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Diffstat (limited to 'configs')
-rw-r--r--configs/platform-v7a/platformconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
index a2a5c8b..ed852e4 100644
--- a/configs/platform-v7a/platformconfig
+++ b/configs/platform-v7a/platformconfig
@@ -80,7 +80,7 @@ PTXCONF_COMPILER_PREFIX_BOOTLOADER="${PTXCONF_COMPILER_PREFIX}"
PTXCONF_TARGET_HARDEN_STACK=y
# PTXCONF_TARGET_HARDEN_STACK_STRONG is not set
# PTXCONF_TARGET_HARDEN_STACK_ALL is not set
-# PTXCONF_TARGET_HARDEN_STACKCLASH is not set
+PTXCONF_TARGET_HARDEN_STACKCLASH=y
PTXCONF_TARGET_HARDEN_FORTIFY=y
PTXCONF_TARGET_HARDEN_RELRO=y
PTXCONF_TARGET_HARDEN_BINDNOW=y