Re: [PATCH] kernfs: fix possibility of NULL pointer dereference.
From: Greg Kroah-Hartman
Date: Mon Apr 27 2020 - 13:31:39 EST
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@xxxxxxxxx>
> ---
> 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