lkml.org 
[lkml]   [2019]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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@redhat.com>


Reviewed-by: James Morris <jamorris@linux.microsoft.com>


--
James Morris
<jmorris@namei.org>

\
 
 \ /
  Last update: 2019-05-25 05:59    [W:0.068 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site