aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorKamal Agrawal <[email protected]>2021-07-30 13:23:06 +0000
committerSteven Rostedt (VMware) <[email protected]>2021-07-30 22:45:11 +0000
commitff41c28c4b54052942180d8b3f49e75f1445135a (patch)
treede57fd79d18c741483ed2d60d31048d3f0ed082b /lib/debugobjects.c
parenttracepoints: Update static_call before tp_funcs when adding a tracepoint (diff)
downloadkernel-ff41c28c4b54052942180d8b3f49e75f1445135a.tar.gz
kernel-ff41c28c4b54052942180d8b3f49e75f1445135a.zip
tracing: Fix NULL pointer dereference in start_creating
The event_trace_add_tracer() can fail. In this case, it leads to a crash in start_creating with below call stack. Handle the error scenario properly in trace_array_create_dir. Call trace: down_write+0x7c/0x204 start_creating.25017+0x6c/0x194 tracefs_create_file+0xc4/0x2b4 init_tracer_tracefs+0x5c/0x940 trace_array_create_dir+0x58/0xb4 trace_array_create+0x1bc/0x2b8 trace_array_get_by_name+0xdc/0x18c Link: https://lkml.kernel.org/r/[email protected] Cc: [email protected] Fixes: 4114fbfd02f1 ("tracing: Enable creating new instance early boot") Signed-off-by: Kamal Agrawal <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions