[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LRH.2.21.1905251356520.32154@namei.org>
Date: Sat, 25 May 2019 13:57:02 +1000 (AEST)
From: James Morris <jmorris@...ei.org>
To: David Howells <dhowells@...hat.com>
cc: keyrings@...r.kernel.org, linux-security-module@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/7] keys: sparse: Fix incorrect RCU accesses
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@...hat.com>
Reviewed-by: James Morris <jamorris@...ux.microsoft.com>
--
James Morris
<jmorris@...ei.org>
Powered by blists - more mailing lists