kernel/sys.c: fix missing rcu protection for sys_getpriority()
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Mon, 22 Feb 2010 20:44:16 +0000 (12:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 23 Feb 2010 03:50:34 +0000 (19:50 -0800)
commit701188374b6f1ef9cf7e4dce4a2e69ef4c0012ac
treef716e33bde324c74553a8d0b2acfb70d8ca3f1cc
parent5a2d41961dd6815b874b5c0afec0ac96cd90eea4
kernel/sys.c: fix missing rcu protection for sys_getpriority()

find_task_by_vpid() is not safe without rcu_read_lock().  2.6.33-rc7 got
RCU protection for sys_setpriority() but missed it for sys_getpriority().

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: "Paul E. McKenney" <paulmck@us.ibm.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sys.c