]> git.baikalelectronics.ru Git - kernel.git/commit
stackleak: Disable function tracing and kprobes for stackleak_erase()
authorAlexander Popov <alex.popov@linux.com>
Mon, 12 Nov 2018 21:08:48 +0000 (00:08 +0300)
committerKees Cook <keescook@chromium.org>
Fri, 30 Nov 2018 17:05:07 +0000 (09:05 -0800)
commit167a6c8e1bf3ca26c4efdd02acb0933e2d2db6b6
tree63663fd58fdebb7c93b874af482d38c3c0358a43
parented8ca29a73ac7bcc0e390e8079a447e9ce562b85
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: kernel test robot <lkp@intel.com>
Fixes: 788deaa11e0c ("gcc-plugins: Add STACKLEAK plugin for tracking the kernel stack")
Signed-off-by: Alexander Popov <alex.popov@linux.com>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
kernel/stackleak.c