diff options
| author | Kees Cook <kees@kernel.org> | 2025-07-17 16:25:07 -0700 |
|---|---|---|
| committer | Kees Cook <kees@kernel.org> | 2025-07-21 21:40:39 -0700 |
| commit | 9ea1e8d28add49ab3c1ecfa43f08d92ee23f3e33 (patch) | |
| tree | ca0250a1d5333c933b753e78a1bb77f04f0baeb8 /security | |
| parent | stackleak: Rename STACKLEAK to KSTACK_ERASE (diff) | |
| download | linux-9ea1e8d28add49ab3c1ecfa43f08d92ee23f3e33.tar.gz linux-9ea1e8d28add49ab3c1ecfa43f08d92ee23f3e33.zip | |
stackleak: Rename stackleak_track_stack to __sanitizer_cov_stack_depth
The Clang stack depth tracking implementation has a fixed name for
the stack depth tracking callback, "__sanitizer_cov_stack_depth", so
rename the GCC plugin function to match since the plugin has no external
dependencies on naming.
Link: https://lore.kernel.org/r/20250717232519.2984886-2-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'security')
| -rw-r--r-- | security/Kconfig.hardening | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/Kconfig.hardening b/security/Kconfig.hardening index 125b35e2ef0f..f7aa2024ab25 100644 --- a/security/Kconfig.hardening +++ b/security/Kconfig.hardening @@ -129,8 +129,8 @@ config KSTACK_ERASE_TRACK_MIN_SIZE help The KSTACK_ERASE option instruments the kernel code for tracking the lowest border of the kernel stack (and for some other purposes). - It inserts the stackleak_track_stack() call for the functions with - a stack frame size greater than or equal to this parameter. + It inserts the __sanitizer_cov_stack_depth() call for the functions + with a stack frame size greater than or equal to this parameter. If unsure, leave the default value 100. config KSTACK_ERASE_METRICS |
