From: Oleg Nesterov Date: Wed, 10 Dec 2014 23:45:10 +0000 (-0800) Subject: proc: task_state: read cred->group_info outside of task_lock() X-Git-Tag: omap-for-v3.19/fixes-rc1~142^2~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4af1036df4dd4f0d59fad9d82ed456bfa2e73fa6;p=pandora-kernel.git proc: task_state: read cred->group_info outside of task_lock() task_state() reads cred->group_info under task_lock() because a long ago it was task_struct->group_info and it was actually protected by task->alloc_lock. Today this task_unlock() after rcu_read_unlock() just adds the confusion, move task_unlock() up. Signed-off-by: Oleg Nesterov Cc: Aaron Tomlin Cc: Alexey Dobriyan Cc: "Eric W. Biederman" , Cc: Sterling Alexander Cc: Peter Zijlstra Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed