Oleg Nesterov
ad133ba3dc
sched, signals: fix the racy usage of ->signal in account_group_xxx/run_posix_cpu_timers
...
Impact: fix potential NULL dereference
Contrary to ad474caca3 changelog, other
acct_group_xxx() helpers can be called after exit_notify() by timer tick.
Thanks to Roland for pointing out this. Somehow I missed this simple fact
when I read the original patch, and I am afraid I confused Frank during
the discussion. Sorry.
Fortunately, these helpers work with current, we can check ->exit_state
to ensure that ->signal can't go away under us.
Also, add the comment and compiler barrier to account_group_exec_runtime(),
to make sure we load ->signal only once.
Signed-off-by: Oleg Nesterov <oleg@redhat.com >
Signed-off-by: Ingo Molnar <mingo@elte.hu >
2008-11-17 16:49:35 +01:00
..
2008-10-22 07:37:17 +02:00
2008-11-01 12:40:38 -07:00
2008-11-10 22:39:27 +01:00
2008-11-11 09:16:20 +01:00
2008-10-13 09:51:42 -07:00
2008-10-23 05:12:53 -04:00
2008-10-13 09:51:42 -07:00
2008-10-20 08:52:38 -07:00
2008-11-12 17:17:16 -08:00
2008-11-06 15:41:19 -08:00
2008-10-20 13:14:06 +02:00
2008-10-20 08:52:34 -07:00
2008-11-06 09:05:33 +01:00
2008-10-20 08:52:39 -07:00
2008-10-16 11:21:30 -07:00
2008-10-23 14:30:41 +04:00
2008-11-11 08:01:43 +01:00
2008-10-22 09:48:06 +02:00
2008-10-30 11:38:45 -07:00
2008-09-11 07:17:00 -07:00
2008-11-12 09:54:40 +01:00
2008-09-14 16:25:35 +02:00
2008-10-16 11:21:32 -07:00
2008-10-20 08:52:34 -07:00
2008-10-20 15:28:50 -07:00
2008-10-06 13:50:59 -05:00
2008-10-16 12:38:34 -07:00
2008-11-12 17:17:17 -08:00
2008-10-16 11:21:31 -07:00
2008-10-20 13:35:07 -07:00
2008-10-28 11:19:07 +01:00
2008-10-22 09:08:14 +02:00
2008-10-14 10:38:45 +02:00
2008-10-23 12:04:37 -07:00
2008-10-14 10:34:22 +02:00
2008-10-22 10:00:25 +11:00
2008-10-23 12:09:00 -07:00
2008-11-17 16:49:35 +01:00
2008-10-22 09:48:06 +02:00
2008-10-23 21:54:29 +02:00
2008-10-30 11:38:46 -07:00
2008-10-20 08:52:39 -07:00
2008-10-03 10:41:00 +02:00
2008-10-21 15:59:53 +02:00
2008-10-20 08:52:40 -07:00
2008-10-20 12:51:53 -07:00
2008-11-01 09:53:58 -07:00
2008-09-05 21:35:13 -07:00
2008-10-10 11:17:04 +02:00
2008-11-16 08:07:15 +01:00
2008-11-11 11:57:22 +01:00
2008-11-05 10:30:14 +01:00
2008-10-22 10:01:52 +02:00
2008-10-24 12:48:46 +02:00
2008-11-17 16:49:35 +01:00
2008-11-12 20:05:50 +01:00
2008-10-30 11:38:46 -07:00
2008-11-06 08:41:56 +01:00
2008-11-10 22:36:39 +01:00
2008-10-16 11:21:31 -07:00
2008-10-25 19:53:38 -07:00
2008-10-16 11:21:51 -07:00
2008-10-22 09:48:06 +02:00
2008-10-27 10:50:54 +01:00
2008-09-05 21:34:57 -07:00
2008-11-06 08:42:48 +01:00
2008-10-27 16:45:46 +01:00
2008-10-16 11:21:47 -07:00
2008-10-16 11:21:31 -07:00
2008-11-06 09:05:33 +01:00