Skip to content
Commit ef1a8409 authored by Alexander Popov's avatar Alexander Popov Committed by Kees Cook
Browse files

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
stackleak_erase().

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

Reported-by: default avatarkernel test robot <lkp@intel.com>
Fixes: 10e9ae9f

 ("gcc-plugins: Add STACKLEAK plugin for tracking the kernel stack")
Signed-off-by: default avatarAlexander Popov <alex.popov@linux.com>
Reviewed-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Reviewed-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent ccda4af0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment