Oleg Nesterov 962b564cf1 [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 <oleg@tv-sign.ru>
Cc: george anzinger <george@mvista.com>
Cc: Roland Dreier <rolandd@cisco.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-23 16:08:39 -08:00
..
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-11-08 16:54:53 +01:00
2005-11-07 07:54:06 -08:00
2005-11-08 16:47:45 +01:00
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-11-08 16:48:36 +01:00
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-11-09 07:55:59 -08:00
2005-11-07 07:54:06 -08:00
2005-10-30 17:37:27 -08:00
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-10-28 08:16:47 -07:00
2005-10-29 21:40:39 -07:00
2005-11-23 16:08:39 -08:00
2005-10-30 17:37:32 -08:00
2005-11-09 07:55:58 -08:00
2005-10-30 17:37:10 -08:00
2005-11-07 07:54:06 -08:00
2005-11-09 07:55:59 -08:00
2005-11-07 18:18:11 -08:00
2005-11-07 18:18:11 -08:00
2005-11-07 07:53:39 -08:00
2005-11-07 07:54:06 -08:00