Skip to content

Commit

Permalink
hardening: Document INIT_STACK_ALL_PATTERN behavior with GCC
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and Kees Cook committed Jan 8, 2025
1 parent 62e9c1e commit a9a5e0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions security/Kconfig.hardening
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit a9a5e0b

Please sign in to comment.