Merge branch 'tracehook' of git://git.kernel.org/pub/scm/linux/kernel/git/frob/linux-2.6-utrace

* 'tracehook' of git://git.kernel.org/pub/scm/linux/kernel/git/frob/linux-2.6-utrace:
tracehook: fix CLONE_PTRACE

+2 -2
+1 -1
include/linux/ptrace.h
··· 172 child->ptrace = 0; 173 if (unlikely(ptrace)) { 174 child->ptrace = current->ptrace; 175 - __ptrace_link(child, current->parent); 176 } 177 } 178
··· 172 child->ptrace = 0; 173 if (unlikely(ptrace)) { 174 child->ptrace = current->ptrace; 175 + ptrace_link(child, current->parent); 176 } 177 } 178
+1 -1
include/linux/tracehook.h
··· 280 unsigned long clone_flags, 281 pid_t pid, struct task_struct *child) 282 { 283 - if (unlikely(trace)) { 284 /* 285 * The child starts up with an immediate SIGSTOP. 286 */
··· 280 unsigned long clone_flags, 281 pid_t pid, struct task_struct *child) 282 { 283 + if (unlikely(trace) || unlikely(clone_flags & CLONE_PTRACE)) { 284 /* 285 * The child starts up with an immediate SIGSTOP. 286 */