Oleg Nesterov 329f7dba5f [PATCH] fix de_thread() vs send_group_sigqueue() race
When non-leader thread does exec, de_thread calls release_task(leader) before
calling exit_itimers(). If local timer interrupt happens in between, it can
oops in send_group_sigqueue() while taking ->sighand->siglock == NULL.

However, we can't change send_group_sigqueue() to check p->signal != NULL,
because sys_timer_create() does get_task_struct() only in SIGEV_THREAD_ID
case. So it is possible that this task_struct was already freed and we can't
trust p->signal.

This patch changes de_thread() so that leader released after exit_itimers()
call.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-08 12:58:38 -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-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-10-04 13:22:01 -07:00
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-11-07 07:54:06 -08:00
2005-10-28 08:16:47 -07:00
2005-10-28 08:16:47 -07: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-07 07:54:06 -08:00
2005-10-29 21:40:42 -07: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-05-05 16:36:47 -07:00
2005-11-07 07:54:06 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-10-30 17:37:27 -08:00
2005-05-05 16:36:47 -07:00
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-10-28 08:16:47 -07:00
2005-07-12 16:01:02 -07:00
2005-11-07 07:54:06 -08:00
2005-10-29 21:40:39 -07:00
2005-04-16 15:20:36 -07:00
2005-09-09 13:57:55 -07:00
2005-04-16 15:20:36 -07:00
2005-10-30 17:37:32 -08:00
2005-10-23 16:38:39 -07:00
2005-04-16 15:20:36 -07:00
2005-10-30 17:37:10 -08:00
2005-10-18 14:20:21 -07:00
2005-11-07 07:54:06 -08:00
2005-10-08 15:00:57 -07:00
2005-11-07 18:18:11 -08:00
2005-04-16 15:20:36 -07:00
2005-09-10 10:06:22 -07:00
2005-11-07 18:18:11 -08:00
2005-11-07 18:18:11 -08:00
2005-04-16 15:20:36 -07:00
2005-11-07 07:53:39 -08:00
2005-04-16 15:20:36 -07:00
2005-09-09 13:57:55 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-11-07 07:54:06 -08:00