[PATCH v8 3/6] Uprobes: Support SDT markers having reference count (semaphore)

From
Oleg Nesterov <oleg@redhat.com>
Date
2018-08-13 13:17:32
Also in
linux-mips, lkml
Reply to
Ravi Bangoria, 2018-08-13
On 08/13, Ravi Bangoria wrote:
quoted
But damn, process creation (exec) is trivial. We could add a new uprobe_exec()
hook and avoid delayed_uprobe_install() in uprobe_mmap().
I'm sorry. I didn't get this.
Sorry for confusion...

I meant, if only exec*( could race with _register(), we could add another uprobe
hook which updates all (delayed) counters before return to user-mode.
quoted
Afaics, the really problematic case is dlopen() which can race with _register()
too, right?
dlopen() should internally use mmap() right? So what is the problem here? Can
you please elaborate.
What I tried to say is that we can't avoid uprobe_mmap()->delayed_uprobe_install()
because dlopen() can race with _register() too, just like exec.

Oleg.
Thread (42 messages) 42 messages, 5 authors, last reply 2018-08-14
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