diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-12-11 00:45:10 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-11 02:41:09 +0100 |
commit | 4af1036df4dd4f0d59fad9d82ed456bfa2e73fa6 (patch) | |
tree | db1e1ccc62ddffb35e429d9d306752a27ac4d9de /fs/mount.h | |
parent | fs/proc.c: use rb_entry_safe() instead of rb_entry() (diff) | |
download | linux-4af1036df4dd4f0d59fad9d82ed456bfa2e73fa6.tar.xz linux-4af1036df4dd4f0d59fad9d82ed456bfa2e73fa6.zip |
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 <oleg@redhat.com>
Cc: Aaron Tomlin <atomlin@redhat.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>,
Cc: Sterling Alexander <stalexan@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Roland McGrath <roland@hack.frob.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/mount.h')
0 files changed, 0 insertions, 0 deletions