summaryrefslogtreecommitdiffstats
path: root/arch/m32r/kernel
diff options
context:
space:
mode:
authorSerge E. Hallyn2011-05-26 22:25:05 +0200
committerLinus Torvalds2011-05-26 22:49:19 +0200
commitf7285b5d631fd6096b11c6af0058ed3a2b30ef4e (patch)
tree956fff16b2327818eae72cfe47cf2260986e2fd2 /arch/m32r/kernel
parentMerge branch 'trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/mmare... (diff)
downloadkernel-qcow2-linux-f7285b5d631fd6096b11c6af0058ed3a2b30ef4e.tar.gz
kernel-qcow2-linux-f7285b5d631fd6096b11c6af0058ed3a2b30ef4e.tar.xz
kernel-qcow2-linux-f7285b5d631fd6096b11c6af0058ed3a2b30ef4e.zip
Set cred->user_ns in key_replace_session_keyring
Since this cred was not created with copy_creds(), it needs to get initialized. Otherwise use of syscall(__NR_keyctl, KEYCTL_SESSION_TO_PARENT); can lead to a NULL deref. Thanks to Robert for finding this. But introduced by commit 47a150edc2a ("Cache user_ns in struct cred"). Signed-off-by: Serge E. Hallyn <serge.hallyn@canonical.com> Reported-by: Robert Święcki <robert@swiecki.net> Cc: David Howells <dhowells@redhat.com> Cc: stable@kernel.org (2.6.39) Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/m32r/kernel')
0 files changed, 0 insertions, 0 deletions