stackleak: Disable function tracing and kprobes for stackleak_erase()

The stackleak_erase() function is called on the trampoline stack at the
end of syscall. This stack is not big enough for ftrace and kprobes
operations, e.g. it can be exhausted if we use kprobe_events for

So let's disable function tracing and kprobes of stackleak_erase().

Reported-by: kernel test robot <>
Fixes: 10e9ae9fabaf ("gcc-plugins: Add STACKLEAK plugin for tracking the kernel stack")
Signed-off-by: Alexander Popov <>
Reviewed-by: Steven Rostedt (VMware) <>
Reviewed-by: Masami Hiramatsu <>
Signed-off-by: Kees Cook <>
1 file changed