Re: [PATCH] tracing/kprobe: Fix NULL pointer access in trace_porbe_unlink()

2019-09-17 Thread Masami Hiramatsu
On Tue, 17 Sep 2019 08:56:43 -0400 Steven Rostedt wrote: > On Tue, 17 Sep 2019 14:11:37 +0900 > Masami Hiramatsu wrote: > > > Fix NULL pointer access in trace_probe_unlink() by initializing > > trace_probe.list correctly in trace_probe_init(). > > > > In the error case of trace_probe_init(), i

Re: [PATCH] tracing/kprobe: Fix NULL pointer access in trace_porbe_unlink()

2019-09-17 Thread Steven Rostedt
On Tue, 17 Sep 2019 14:11:37 +0900 Masami Hiramatsu wrote: > Fix NULL pointer access in trace_probe_unlink() by initializing > trace_probe.list correctly in trace_probe_init(). > > In the error case of trace_probe_init(), it can call trace_probe_unlink() > before initializing trace_probe.list me

[PATCH] tracing/kprobe: Fix NULL pointer access in trace_porbe_unlink()

2019-09-16 Thread Masami Hiramatsu
Fix NULL pointer access in trace_probe_unlink() by initializing trace_probe.list correctly in trace_probe_init(). In the error case of trace_probe_init(), it can call trace_probe_unlink() before initializing trace_probe.list member. This causes NULL pointer dereference at list_del_init() in trace_