* [PATCH] hardening: Document INIT_STACK_ALL_PATTERN behavior with GCC
@ 2025-01-07 8:38 Geert Uytterhoeven
2025-01-08 22:18 ` Kees Cook
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2025-01-07 8:38 UTC (permalink / raw)
To: Kees Cook, Gustavo A . R . Silva, Paul Moore, James Morris,
Serge E . Hallyn
Cc: linux-hardening, linux-security-module, linux-kernel, Geert Uytterhoeven
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>
---
security/Kconfig.hardening | 1 +
1 file changed, 1 insertion(+)
diff --git a/security/Kconfig.hardening b/security/Kconfig.hardening
index c9d5ca3d8d08de23..b56e001e0c6a9533 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)"
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] hardening: Document INIT_STACK_ALL_PATTERN behavior with GCC
2025-01-07 8:38 [PATCH] hardening: Document INIT_STACK_ALL_PATTERN behavior with GCC Geert Uytterhoeven
@ 2025-01-08 22:18 ` Kees Cook
0 siblings, 0 replies; 2+ messages in thread
From: Kees Cook @ 2025-01-08 22:18 UTC (permalink / raw)
To: Gustavo A . R . Silva, Paul Moore, James Morris,
Serge E . Hallyn, Geert Uytterhoeven
Cc: Kees Cook, linux-hardening, linux-security-module, linux-kernel
On Tue, 07 Jan 2025 09:38:57 +0100, Geert Uytterhoeven wrote:
> The help text for INIT_STACK_ALL_PATTERN documents the patterns used by
> Clang, but lacks documentation for GCC.
>
>
Applied to for-next/hardening, thanks!
[1/1] hardening: Document INIT_STACK_ALL_PATTERN behavior with GCC
https://git.kernel.org/kees/c/a9a5e0bdc5a7
Take care,
--
Kees Cook
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-08 22:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-07 8:38 [PATCH] hardening: Document INIT_STACK_ALL_PATTERN behavior with GCC Geert Uytterhoeven
2025-01-08 22:18 ` Kees Cook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®