Skip to content

Commit a9a5e0b

Browse files
geertukees
authored andcommitted
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>
1 parent 62e9c1e commit a9a5e0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

security/Kconfig.hardening

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ choice
127127
repeating for all types and padding except float and double
128128
which use 0xFF repeating (-NaN). Clang on 32-bit uses 0xFF
129129
repeating for all types and padding.
130+
GCC uses 0xFE repeating for all types, and zero for padding.
130131

131132
config INIT_STACK_ALL_ZERO
132133
bool "zero-init everything (strongest and safest)"

0 commit comments

Comments
 (0)