Oleg Nesterov f8986c241d [PATCH] revert "Drop tasklist lock in do_sched_setscheduler"
sched_setscheduler() looks at ->signal->rlim[].  It is unsafe do
dereference ->signal unless tasklist_lock or ->siglock is held (or p ==
current).  We pin the task structure, but this can't prevent from
release_task()->__exit_signal() which sets ->signal = NULL.

Restore tasklist_lock across the setscheduler call.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-08-27 11:01:29 -07:00
..
2006-07-01 05:43:06 -04:00
2006-03-26 08:57:03 -08:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:04 -07:00
2006-08-14 12:54:28 -07:00
2006-04-19 16:27:18 -07:00
2006-07-10 13:24:25 -07:00