aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorSerge E. Hallyn <[email protected]>2011-05-26 15:25:05 -0500
committerLinus Torvalds <[email protected]>2011-05-26 13:49:19 -0700
commitf7285b5d631fd6096b11c6af0058ed3a2b30ef4e (patch)
tree956fff16b2327818eae72cfe47cf2260986e2fd2 /include/linux/debugobjects.h
parentb7c2f036284452627d793af981877817b37d4351 (diff)
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 <[email protected]> Reported-by: Robert Święcki <[email protected]> Cc: David Howells <[email protected]> Cc: [email protected] (2.6.39) Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions