]> sourceware.org Git - systemtap.git/commitdiff
Fixed BZ634242 for older kernels.
authorDavid Smith <dsmith@redhat.com>
Mon, 4 Oct 2010 20:46:38 +0000 (15:46 -0500)
committerDavid Smith <dsmith@redhat.com>
Mon, 4 Oct 2010 20:46:38 +0000 (15:46 -0500)
* runtime/uprobes/uprobes.c (uprobe_report_clone): If two processes are
  are sharing the same memory space (CLONE_VM) don't remove probes, since
  that will remove the probes from both processes.

runtime/uprobes/uprobes.c

index 403de189db776c7c5e9f4a5a655af2554bca236e..3eb8ea90269084380afb3d0ab7cbfb55f908d6c9 100644 (file)
@@ -2280,8 +2280,9 @@ static u32 uprobe_report_clone(struct utrace_attached_engine *engine,
        down_write(&uproc->rwsem);
        get_task_struct(child);
 
-       if (clone_flags & CLONE_THREAD) {
-               /* New thread in the same process */
+       if (clone_flags & (CLONE_THREAD|CLONE_VM)) {
+               /* New thread in the same process (CLONE_THREAD) or
+                * processes sharing the same memory space (CLONE_VM). */
                ctask = uprobe_add_task(child, uproc);
                BUG_ON(!ctask);
                if (IS_ERR(ctask))
This page took 0.031165 seconds and 5 git commands to generate.