Files
linux-legacy-genesi/include/linux
Oleg Nesterov ed5d2cac11 exec: rework the group exit and fix the race with kill
As Roland pointed out, we have the very old problem with exec.  de_thread()
sets SIGNAL_GROUP_EXIT, kills other threads, changes ->group_leader and then
clears signal->flags.  All signals (even fatal ones) sent in this window
(which is not too small) will be lost.

With this patch exec doesn't abuse SIGNAL_GROUP_EXIT.  signal_group_exit(),
the new helper, should be used to detect exit_group() or exec() in progress.
It can have more users, but this patch does only strictly necessary changes.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Davide Libenzi <davidel@xmailserver.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Robin Holt <holt@sgi.com>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-05 09:44:07 -08:00
..
…
2008-01-28 14:54:13 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-01-28 15:00:14 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-01 11:34:49 +01:00
…
2008-01-29 21:55:15 +01:00
…
…
…
…
…
2008-01-28 14:54:10 -08:00
…
…
…
…
…
2008-02-03 17:45:46 +02:00
…
…
…
…
2008-01-30 13:31:48 +01:00
2008-01-28 23:21:18 +01:00
2008-01-28 23:21:18 +01:00
2008-01-28 23:21:18 +01:00
…
…
…
…
…
2008-01-30 13:31:10 +01:00
…
…
…
…
…
…
…
…
2008-02-03 17:45:46 +02:00
…
2008-02-03 15:42:53 +02:00
…
…
…
…
2008-02-02 15:14:48 -08:00
…
…
…
…
2008-02-03 17:45:46 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-01-30 13:31:56 +01:00
…
2008-01-28 23:21:18 +01:00
…
…
2008-02-03 17:45:46 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-03 15:42:53 +02:00
2008-01-28 14:51:22 +01:00
…
…
…
…
…
…
…
2008-01-30 13:30:27 +01:00
…
…
…
…
2008-01-27 18:14:50 +01:00
…
…
2008-01-27 18:14:52 +01:00
…
…
…
…
…
…
…
2008-02-02 19:56:47 +01:00
…
2008-02-01 16:13:16 -05:00
…
…
…
2008-01-28 15:08:27 -08:00
…
…
2008-01-28 15:07:58 -08:00
…
…
…
…
2008-01-28 15:07:57 -08:00
2008-01-28 14:55:09 -08:00
2008-01-28 14:55:09 -08:00
…
…
…
…
…
2008-01-31 19:26:46 -08:00
…
…
…
…
…
…
…
…
2008-01-31 19:28:20 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
2008-01-28 23:58:27 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-01-30 13:33:13 +01:00
…
2008-02-03 17:45:46 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-01-28 23:21:18 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-01-28 14:56:29 -08:00
2008-01-28 14:54:18 -08:00
…
…
…
…
2008-01-30 02:06:08 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-02 11:32:01 -08:00
2008-02-02 11:32:01 -08:00
2008-02-02 02:44:34 +03:00
2008-01-30 23:27:58 +01:00
…
…
…
…
2008-01-31 19:28:36 -08:00
…
…
2008-02-03 17:45:46 +02:00
…
2008-02-03 17:45:46 +02:00
…
…
…
…
…
…
2008-01-28 15:01:36 -08:00
…
…
2008-01-30 13:30:53 +01:00
…
…
…
…
…
…
…
2008-01-30 13:31:47 +01:00
…
2008-01-31 19:26:46 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-04 10:56:03 -08:00
2008-02-03 17:45:46 +02:00
…
…
…
…
2008-01-31 19:28:30 -08:00
…
…
…
…
…
…
2008-01-30 13:31:20 +01:00
2008-01-30 13:31:20 +01:00
2008-01-30 13:31:20 +01:00
…
…
…
…
…
…
2008-01-31 22:05:48 +01:00
…
…
…
…
…
…
…
…
…
…
2008-02-01 17:45:14 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-04 23:50:13 +11:00
2008-02-04 23:50:03 +11:00
2008-02-04 23:50:02 +11:00
2008-02-04 23:50:03 +11:00
…
…
…
…
2008-02-05 09:44:07 -08:00
2008-02-03 15:42:53 +02:00
…
…
…
…
…
…
…