CRED: Use RCU to access another task's creds and to release a task's own creds
authorDavid Howells <dhowells@redhat.com>
Thu, 13 Nov 2008 23:39:19 +0000 (10:39 +1100)
committerJames Morris <jmorris@namei.org>
Thu, 13 Nov 2008 23:39:19 +0000 (10:39 +1100)
commitc69e8d9c01db2adc503464993c358901c9af9de4
treebed94aaa9aeb7a7834d1c880f72b62a11a752c78
parent86a264abe542cfececb4df129bc45a0338d8cdb9
CRED: Use RCU to access another task's creds and to release a task's own creds

Use RCU to access another task's creds and to release a task's own creds.
This means that it will be possible for the credentials of a task to be
replaced without another task (a) requiring a full lock to read them, and (b)
seeing deallocated memory.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: James Morris <jmorris@namei.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
28 files changed:
arch/ia64/kernel/perfmon.c
drivers/connector/cn_proc.c
fs/binfmt_elf.c
fs/binfmt_elf_fdpic.c
fs/fcntl.c
fs/fuse/dir.c
fs/ioprio.c
fs/proc/array.c
fs/proc/base.c
include/linux/cred.h
kernel/auditsc.c
kernel/cgroup.c
kernel/exit.c
kernel/futex.c
kernel/futex_compat.c
kernel/ptrace.c
kernel/sched.c
kernel/signal.c
kernel/sys.c
kernel/tsacct.c
mm/mempolicy.c
mm/migrate.c
mm/oom_kill.c
security/commoncap.c
security/keys/permission.c
security/keys/process_keys.c
security/selinux/selinuxfs.c
security/smack/smack_lsm.c