diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2008-02-08 13:19:19 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 18:22:28 +0100 |
commit | 46f382d2b69d2221086b823f0dbc8f32c027cac2 (patch) | |
tree | bc71bbdd7f158aea817ef08f9cf13ac515d3776f /kernel/itimer.c | |
parent | uglify kill_pid_info() to fix kill() vs exec() race (diff) | |
download | linux-46f382d2b69d2221086b823f0dbc8f32c027cac2.tar.xz linux-46f382d2b69d2221086b823f0dbc8f32c027cac2.zip |
uglify while_each_pid_task() to make sure we don't count the execing pricess twice
There is a window when de_thread() switches the leader and drops
tasklist_lock. In that window do_each_pid_task(PIDTYPE_PID) finds both new
and old leaders.
The problem is pretty much theoretical and probably can be ignored. Currently
the only users of do_each_pid_task(PIDTYPE_PID) are send_sigio/send_sigurg, so
they can send the signal to the same process twice.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Davide Libenzi <davidel@xmailserver.org>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/itimer.c')
0 files changed, 0 insertions, 0 deletions