Commit 19a58ce1 authored by Xinpeng Liu's avatar Xinpeng Liu Committed by Steven Rostedt (VMware)
Browse files

tracing/probe: Fix null pointer dereference

BUG: KASAN: null-ptr-deref in trace_probe_cleanup+0x8d/0xd0
Read of size 8 at addr 0000000000000000 by task syz-executor.0/9746


Fixes: e3dc9f89

 ("tracing/probe: Add trace_event_call accesses APIs")
Signed-off-by: default avatarXinpeng Liu <>
Signed-off-by: default avatarSteven Rostedt (VMware) <>
parent 595a438c
...@@ -895,7 +895,8 @@ void trace_probe_cleanup(struct trace_probe *tp) ...@@ -895,7 +895,8 @@ void trace_probe_cleanup(struct trace_probe *tp)
for (i = 0; i < tp->nr_args; i++) for (i = 0; i < tp->nr_args; i++)
traceprobe_free_probe_arg(&tp->args[i]); traceprobe_free_probe_arg(&tp->args[i]);
kfree(call->class->system); if (call->class)
kfree(call->name); kfree(call->name);
kfree(call->print_fmt); kfree(call->print_fmt);
} }
Supports Markdown
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