From: Oleg Nesterov Date: Mon, 2 Mar 2009 21:58:45 +0000 (+0100) Subject: copy_process: fix CLONE_PARENT && parent_exec_id interaction X-Git-Tag: v2.6.27.20~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6437d6f99da2b1bdd6105f6f6467102bb937bc23;p=pandora-kernel.git copy_process: fix CLONE_PARENT && parent_exec_id interaction commit 2d5516cbb9daf7d0e342a2e3b0fc6f8c39a81205 upstream. CLONE_PARENT can fool the ->self_exec_id/parent_exec_id logic. If we re-use the old parent, we must also re-use ->parent_exec_id to make sure exit_notify() sees the right ->xxx_exec_id's when the CLONE_PARENT'ed task exits. Also, move down the "p->parent_exec_id = p->self_exec_id" thing, to place two different cases together. Signed-off-by: Oleg Nesterov Cc: Roland McGrath Cc: Andrew Morton Cc: David Howells Cc: Serge E. Hallyn Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed