diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2018-07-30 12:20:14 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-07-31 00:28:52 +0200 |
commit | 45408c4f92506dbdfef1721f2613e1426de00894 (patch) | |
tree | 0deca678bf0954a7224acd62f4a805d8d6eb1788 /net/802 | |
parent | tracing: preemptirq_delay_run() can be static (diff) | |
download | linux-45408c4f92506dbdfef1721f2613e1426de00894.tar.xz linux-45408c4f92506dbdfef1721f2613e1426de00894.zip |
tracing: kprobes: Prohibit probing on notrace function
Prohibit kprobe-events probing on notrace functions. Since probing on a
notrace function can cause a recursive event call. In most cases those are just
skipped, but in some cases it falls into an infinite recursive call.
This protection can be disabled by the kconfig
CONFIG_KPROBE_EVENTS_ON_NOTRACE=y, but it is highly recommended to keep it
"n" for normal kernel builds. Note that this is only available if "kprobes on
ftrace" has been implemented on the target arch and CONFIG_KPROBES_ON_FTRACE=y.
Link: http://lkml.kernel.org/r/153294601436.32740.10557881188933661239.stgit@devbox
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Tested-by: Francis Deslauriers <francis.deslauriers@efficios.com>
[ Slight grammar and spelling fixes ]
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'net/802')
0 files changed, 0 insertions, 0 deletions