[PATCH 2/7] keys: sparse: Fix incorrect RCU accesses
James Morris
jmorris at namei.org
Sat May 25 03:57:02 UTC 2019
On Wed, 22 May 2019, David Howells wrote:
> 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 at redhat.com>
Reviewed-by: James Morris <jamorris at linux.microsoft.com>
--
James Morris
<jmorris at namei.org>
More information about the Linux-security-module-archive
mailing list