[PATCH] use smp_mb/wmb/rmb where possible
[linux-3.10.git] / kernel / ptrace.c
index 88b306c4e8414b7bc2de2103f8ec74a0c3de7741..f5cc1cec0fb4ab33cf62028c7cf9200c08343a81 100644 (file)
@@ -135,7 +135,7 @@ int ptrace_attach(struct task_struct *task)
            (current->gid != task->sgid) ||
            (current->gid != task->gid)) && !capable(CAP_SYS_PTRACE))
                goto bad;
-       rmb();
+       smp_rmb();
        if (!task->mm->dumpable && !capable(CAP_SYS_PTRACE))
                goto bad;
        /* the same process cannot be attached many times */