commit | 3295514841c2112d94451ba5deaf54f5afb78ea9 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@ZenIV.linux.org.uk> | Sun Aug 07 18:55:11 2011 +0100 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Sun Aug 07 13:42:35 2011 -0700 |
tree | 6df351cb1febbcd011d24fcf99d1b08167c68d5e | |
parent | 7813b94a54987571082ff19e9d87eabbfec23b4e [diff] |
fix rcu annotations noise in cred.h task->cred is declared as __rcu, and access to other tasks' ->cred is, indeed, protected. Access to current->cred does not need rcu_dereference() at all, since only the task itself can change its ->cred. sparse, of course, has no way of knowing that... Add force-cast in current_cred(), make current_fsuid() et.al. use it. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>