From: Oleg Nesterov Date: Wed, 17 Jun 2009 23:27:35 +0000 (-0700) Subject: ptrace: do_notify_parent_cldstop: fix the wrong ->nsproxy usage X-Git-Tag: v2.6.31-rc1~215 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d92656633b8352c6d4b14afcb7beb154d76e7aa6;p=pandora-kernel.git ptrace: do_notify_parent_cldstop: fix the wrong ->nsproxy usage If the non-traced sub-thread calls do_notify_parent_cldstop(), we send the notification to group_leader->real_parent and we report group_leader's pid. But, if group_leader is traced we use the wrong ->parent->nsproxy->pid_ns, the tracer and parent can live in different namespaces. Change the code to use "parent" instead of tsk->parent. Signed-off-by: Oleg Nesterov Acked-by: Roland McGrath Acked-by: Sukadev Bhattiprolu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed