projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62e9c1e
)
hardening: Document INIT_STACK_ALL_PATTERN behavior with GCC
author
Geert Uytterhoeven
<geert+renesas@glider.be>
Tue, 7 Jan 2025 08:38:57 +0000
(09:38 +0100)
committer
Kees Cook
<kees@kernel.org>
Wed, 8 Jan 2025 22:17:33 +0000
(14:17 -0800)
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>
security/Kconfig.hardening
patch
|
blob
|
blame
|
history
diff --git
a/security/Kconfig.hardening
b/security/Kconfig.hardening
index c9d5ca3d8d08de237102f1ffe3f310636ae0d6ff..b56e001e0c6a95331a845413a945d94bf48f1ebe 100644
(file)
--- 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)"