aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorRavi Bangoria <[email protected]>2018-12-05 09:04:23 +0530
committerSteven Rostedt (VMware) <[email protected]>2018-12-05 23:05:13 -0500
commit1aed58e67a6ec1e7a18bfabe8ba6ec2d27c15636 (patch)
treecf082224136d02e3f332934e6ee9cc97f146b600 /tools/perf/scripts/python/export-to-postgresql.py
parent5cf99a0f3161bc3ae2391269d134d6bf7e26f00e (diff)
Uprobes: Fix kernel oops with delayed_uprobe_remove()
There could be a race between task exit and probe unregister: exit_mm() mmput() __mmput() uprobe_unregister() uprobe_clear_state() put_uprobe() delayed_uprobe_remove() delayed_uprobe_remove() put_uprobe() is calling delayed_uprobe_remove() without taking delayed_uprobe_lock and thus the race sometimes results in a kernel crash. Fix this by taking delayed_uprobe_lock before calling delayed_uprobe_remove() from put_uprobe(). Detailed crash log can be found at: Link: http://lkml.kernel.org/r/[email protected] Link: http://lkml.kernel.org/r/[email protected] Acked-by: Oleg Nesterov <[email protected]> Reviewed-by: Srikar Dronamraju <[email protected]> Reported-by: [email protected] Fixes: 1cc33161a83d ("uprobes: Support SDT markers having reference count (semaphore)") Signed-off-by: Ravi Bangoria <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions