diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2019-03-14 05:30:40 +0100 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-03-15 00:54:11 +0100 |
commit | 5b7a96220900e3c3f6fb53908eb4602cda959376 (patch) | |
tree | 67c4ae71d822db5f8a988955ee6765e489df1ced /kernel/trace/trace_uprobe.c | |
parent | tracing/probe: Check the size of argument name and body (diff) | |
download | linux-5b7a96220900e3c3f6fb53908eb4602cda959376.tar.xz linux-5b7a96220900e3c3f6fb53908eb4602cda959376.zip |
tracing/probe: Check event/group naming rule at parsing
Check event and group naming rule at parsing it instead
of allocating probes.
Link: http://lkml.kernel.org/r/155253784064.14922.2336893061156236237.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_uprobe.c')
-rw-r--r-- | kernel/trace/trace_uprobe.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c index e335576b9411..52f033489377 100644 --- a/kernel/trace/trace_uprobe.c +++ b/kernel/trace/trace_uprobe.c @@ -266,10 +266,7 @@ alloc_trace_uprobe(const char *group, const char *event, int nargs, bool is_ret) { struct trace_uprobe *tu; - if (!event || !is_good_name(event)) - return ERR_PTR(-EINVAL); - - if (!group || !is_good_name(group)) + if (!event || !group) return ERR_PTR(-EINVAL); tu = kzalloc(SIZEOF_TRACE_UPROBE(nargs), GFP_KERNEL); |