From: Oleg Nesterov Date: Wed, 23 Nov 2005 21:37:43 +0000 (-0800) Subject: [PATCH] fix do_wait() vs exec() race X-Git-Tag: v2.6.15-rc3~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=962b564cf1ec8041e8890a3c3847e3a630a08f42;p=pandora-kernel.git [PATCH] fix do_wait() vs exec() race When non-leader thread does exec, de_thread adds old leader to the init's ->children list in EXIT_ZOMBIE state and drops tasklist_lock. This means that release_task(leader) in de_thread() is racy vs do_wait() from init task. I think de_thread() should set old leader's state to EXIT_DEAD instead. Signed-off-by: Oleg Nesterov Cc: george anzinger Cc: Roland Dreier Cc: Ingo Molnar Cc: Linus Torvalds Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed