Thread (18 messages) 18 messages, 3 authors, 2019-05-30

Re: [PATCH 1/7] keys: sparse: Fix key_fs[ug]id_changed()

From: James Morris <jmorris@namei.org>
Date: 2019-05-24 19:38:42
Also in: keyrings, lkml

On Wed, 22 May 2019, David Howells wrote:
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 <redacted>


-- 
James Morris
[off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help