]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kstack_erase: Support Clang stack depth tracking
authorKees Cook <kees@kernel.org>
Thu, 24 Jul 2025 05:50:28 +0000 (22:50 -0700)
committerKees Cook <kees@kernel.org>
Sat, 26 Jul 2025 21:28:35 +0000 (14:28 -0700)
commita8f0b1f8ef628bd1003eed650862836e97b89fdd
treef3c9973b97d3076e8c73d0b1db53236b1518b088
parent6676fd3c99b016b9102c584e8b6dfcfad4fa059e
kstack_erase: Support Clang stack depth tracking

Wire up CONFIG_KSTACK_ERASE to Clang 21's new stack depth tracking
callback[1] option.

Link: https://clang.llvm.org/docs/SanitizerCoverage.html#tracing-stack-depth
Acked-by: Nicolas Schier <n.schier@avm.de>
Link: https://lore.kernel.org/r/20250724055029.3623499-4-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
scripts/Makefile.kstack_erase
security/Kconfig.hardening