Home
last modified time | relevance | path

Searched hist:"7936 d16d" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/security/keys/
H A Drequest_key_auth.c7936d16d Wed May 22 08:09:29 CDT 2019 David Howells <dhowells@redhat.com> keys: sparse: Fix incorrect RCU accesses

Fix a pair of accesses that should be using RCU protection.

rcu_dereference_protected() is needed to access task_struct::real_parent.

current_cred() should be used to access current->cred.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: James Morris <jamorris@linux.microsoft.com>
7936d16d Wed May 22 08:09:29 CDT 2019 David Howells <dhowells@redhat.com> keys: sparse: Fix incorrect RCU accesses

Fix a pair of accesses that should be using RCU protection.

rcu_dereference_protected() is needed to access task_struct::real_parent.

current_cred() should be used to access current->cred.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: James Morris <jamorris@linux.microsoft.com>
H A Dkeyctl.c7936d16d Wed May 22 08:09:29 CDT 2019 David Howells <dhowells@redhat.com> keys: sparse: Fix incorrect RCU accesses

Fix a pair of accesses that should be using RCU protection.

rcu_dereference_protected() is needed to access task_struct::real_parent.

current_cred() should be used to access current->cred.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: James Morris <jamorris@linux.microsoft.com>