tracing/kprobes: Reject new event if loc is NULL
authorMasami Hiramatsu <mhiramat@kernel.org>
Sat, 25 Apr 2020 05:49:26 +0000 (14:49 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 6 May 2020 13:04:11 +0000 (09:04 -0400)
commit5b4dcd2d201a395ad4054067bfae4a07554fbd65
tree16296e48bb9730866ab354078efdcc478ef5eb61
parentda0f1f4167e3af69e1d8b32d6d65195ddd2bfb64
tracing/kprobes: Reject new event if loc is NULL

Reject the new event which has NULL location for kprobes.
For kprobes, user must specify at least the location.

Link: http://lkml.kernel.org/r/158779376597.6082.1411212055469099461.stgit@devnote2
Cc: Tom Zanussi <zanussi@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: stable@vger.kernel.org
Fixes: 2a588dd1d5d6 ("tracing: Add kprobe event command generation functions")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_kprobe.c