summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2025-01-07 09:38:57 +0100
committerKees Cook <kees@kernel.org>2025-01-08 14:17:33 -0800
commita9a5e0bdc5a77a7c662ad4be0ad661f0b0d5e99d (patch)
tree018225d4cffc1574cca65a0d9380c16e3937f413 /security
parent62e9c1e8ecee87a86052ffeeca382f1252f7aef6 (diff)
downloadlinux-a9a5e0bdc5a77a7c662ad4be0ad661f0b0d5e99d.tar.gz
linux-a9a5e0bdc5a77a7c662ad4be0ad661f0b0d5e99d.tar.bz2
linux-a9a5e0bdc5a77a7c662ad4be0ad661f0b0d5e99d.zip
hardening: Document INIT_STACK_ALL_PATTERN behavior with GCC
The help text for INIT_STACK_ALL_PATTERN documents the patterns used by Clang, but lacks documentation for GCC. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/293d29d6a0d1823165be97285c1bc73e90ee9db8.1736239070.git.geert+renesas@glider.be Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'security')
-rw-r--r--security/Kconfig.hardening1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/Kconfig.hardening b/security/Kconfig.hardening
index c9d5ca3d8d08..b56e001e0c6a 100644
--- a/security/Kconfig.hardening
+++ b/security/Kconfig.hardening
@@ -127,6 +127,7 @@ choice
repeating for all types and padding except float and double
which use 0xFF repeating (-NaN). Clang on 32-bit uses 0xFF
repeating for all types and padding.
+ GCC uses 0xFE repeating for all types, and zero for padding.
config INIT_STACK_ALL_ZERO
bool "zero-init everything (strongest and safest)"