[PATCH] Uprobes: Fix kernel oops with delayed_uprobe_remove()

From
Oleg Nesterov <oleg@redhat.com>
Date
2018-11-14 16:06:08
Also in
linux-mips, lkml
Reply to
Ravi Bangoria, 2018-11-14
On 11/14, Ravi Bangoria wrote:
syzbot reported a kernel crash with delayed_uprobe_remove():
  https://lkml.org/lkml/2018/11/1/1244

Backtrace mentioned in the link points to a race between process
exit and uprobe_unregister(). Fix it by locking delayed_uprobe_lock
before calling delayed_uprobe_remove() from put_uprobe().
The patch looks good to me, but could you update the changelog?

Please explain that the exiting task calls uprobe_clear_state() which
can race with delayed_uprobe_remove(). IIUC this is the only problem
solved by this patch, right?

Oleg.
Thread (9 messages) 9 messages, 4 authors, last reply 2018-12-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help