Re: [PATCH 2/7] keys: sparse: Fix incorrect RCU accesses

From: James Morris
Date: Sat May 25 2019 - 00:00:18 EST


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@xxxxxxxxxx>


Reviewed-by: James Morris <jamorris@xxxxxxxxxxxxxxxxxxx>


--
James Morris
<jmorris@xxxxxxxxx>