[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200427173134.GC3936841@kroah.com>
Date: Mon, 27 Apr 2020 19:31:34 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: youngjun <her0gyugyu@...il.com>
Cc: Tejun Heo <tj@...nel.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] kernfs: fix possibility of NULL pointer dereference.
On Mon, Apr 27, 2020 at 09:48:36AM -0700, youngjun wrote:
> When dentry is negative, "kernfs_dentry_node" returns NULL.
> In this case, "kernfs_root" dereferences NULL pointer.
>
> Signed-off-by: youngjun <her0gyugyu@...il.com>
> ---
> fs/kernfs/dir.c | 18 ++++++++++--------
> 1 file changed, 10 insertions(+), 8 deletions(-)
And how can this be triggered on a kernfs filesystem?
thanks,
greg k-h
Powered by blists - more mailing lists