summaryrefslogtreecommitdiff
path: root/include/linux/kstack_erase.h
diff options
context:
space:
mode:
authorKees Cook <kees@kernel.org>2025-07-17 16:25:07 -0700
committerKees Cook <kees@kernel.org>2025-07-21 21:40:39 -0700
commit9ea1e8d28add49ab3c1ecfa43f08d92ee23f3e33 (patch)
treeca0250a1d5333c933b753e78a1bb77f04f0baeb8 /include/linux/kstack_erase.h
parent57fbad15c2eee77276a541c616589b32976d2b8e (diff)
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 'include/linux/kstack_erase.h')
-rw-r--r--include/linux/kstack_erase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kstack_erase.h b/include/linux/kstack_erase.h
index 4e432eefa4d0..bf3bf1905557 100644
--- a/include/linux/kstack_erase.h
+++ b/include/linux/kstack_erase.h
@@ -80,7 +80,7 @@ static inline void stackleak_task_init(struct task_struct *t)
asmlinkage void noinstr stackleak_erase(void);
asmlinkage void noinstr stackleak_erase_on_task_stack(void);
asmlinkage void noinstr stackleak_erase_off_task_stack(void);
-void __no_caller_saved_registers noinstr stackleak_track_stack(void);
+void __no_caller_saved_registers noinstr __sanitizer_cov_stack_depth(void);
#else /* !CONFIG_KSTACK_ERASE */
static inline void stackleak_task_init(struct task_struct *t) { }