On 11/17, Oleg Nesterov wrote: > > This is nasty because we need some changes outside of utrace/tracehook > files. Perhaps we should send something like the patch below to Andrew > right now? > > ... > > +static inline void ptrace_init_task(struct task_struct *child) > +{ > + INIT_LIST_HEAD(&child->ptrace_entry); > + INIT_LIST_HEAD(&child->ptraced); > + child->parent = child->real_parent; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
this line belongs to ptrace_finish_clone(), of course. Oleg.