]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/probe: Fix null pointer dereference
authorXinpeng Liu <danielliu861@gmail.com>
Wed, 7 Aug 2019 23:29:23 +0000 (07:29 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 31 Aug 2019 10:51:55 +0000 (06:51 -0400)
commitcfa48f497e0ccf1efd44ff48177ec4673839d09d
treea36a1cd25575bf6b3307c7dcbbc71fed5019e067
parent60450f79ebf602a14cd1dec00b171abbc457b635
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
trace_probe_cleanup+0x8d/0xd0
free_trace_kprobe.part.14+0x15/0x50
alloc_trace_kprobe+0x23e/0x250

Link: http://lkml.kernel.org/r/1565220563-980-1-git-send-email-danielliu861@gmail.com
Fixes: e5ea6ba76663e ("tracing/probe: Add trace_event_call accesses APIs")
Signed-off-by: Xinpeng Liu <danielliu861@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_probe.c