summaryrefslogtreecommitdiffstats
path: root/security/keys/keyctl.c
diff options
context:
space:
mode:
authorDavid Howells2019-05-22 15:06:51 +0200
committerDavid Howells2019-05-22 15:06:51 +0200
commit2e21865faf4fd7ca99eb2ace072c6d618059e342 (patch)
treecb05e816e95bc4785b7c601b2f33d3ad6396e1fc /security/keys/keyctl.c
parentLinux 5.2-rc1 (diff)
downloadkernel-qcow2-linux-2e21865faf4fd7ca99eb2ace072c6d618059e342.tar.gz
kernel-qcow2-linux-2e21865faf4fd7ca99eb2ace072c6d618059e342.tar.xz
kernel-qcow2-linux-2e21865faf4fd7ca99eb2ace072c6d618059e342.zip
keys: sparse: Fix key_fs[ug]id_changed()
Sparse warnings are incurred by key_fs[ug]id_changed() due to unprotected accesses of tsk->cred, which is marked __rcu. Fix this by passing the new cred struct to these functions from commit_creds() rather than the task pointer. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: James Morris <jamorris@linux.microsoft.com>
Diffstat (limited to 'security/keys/keyctl.c')
0 files changed, 0 insertions, 0 deletions