Files
twx-linux/fs
Oleg Nesterov 6b85cfab9d [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>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-11-10 21:18:55 -08:00
..
2005-10-04 13:22:01 -07:00
2005-09-21 10:12:18 -07:00
2005-09-30 12:41:18 -07:00
2005-09-07 16:57:50 -07:00
2005-11-10 21:18:54 -08:00
2005-10-08 15:00:57 -07:00
2005-09-14 21:40:00 -07:00
2005-09-09 13:57:55 -07:00
2005-10-23 16:38:39 -07:00
2005-09-17 11:50:02 -07:00
2005-10-08 15:00:57 -07:00
2005-09-10 10:06:22 -07:00
2005-09-09 13:57:55 -07:00