From: Oleg Nesterov Date: Sun, 27 Aug 2006 08:23:34 +0000 (-0700) Subject: [PATCH] revert "Drop tasklist lock in do_sched_setscheduler" X-Git-Tag: v2.6.18-rc5~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8986c241dfd54d51c9eff967129a550ae230144;p=pandora-kernel.git [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 Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed