diff options
| author | Oleg Nesterov <[email protected]> | 2005-11-23 13:37:43 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2005-11-23 16:08:39 -0800 |
| commit | 962b564cf1ec8041e8890a3c3847e3a630a08f42 (patch) | |
| tree | a238616355c02496177e486d78f9a75911e943b6 /scripts/basic | |
| parent | 8bf1101bd52573e0573e374d56d2feecdbb5e444 (diff) | |
[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 <[email protected]>
Cc: george anzinger <[email protected]>
Cc: Roland Dreier <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Linus Torvalds <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions