From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: youngjun <her0gyugyu@gmail.com>
Cc: Tejun Heo <tj@kernel.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kernfs: fix possibility of NULL pointer dereference.
Date: Mon, 27 Apr 2020 19:31:34 +0200 [thread overview]
Message-ID: <20200427173134.GC3936841@kroah.com> (raw)
In-Reply-To: <20200427164836.48765-1-her0gyugyu@gmail.com>
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@gmail.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
prev parent reply other threads:[~2020-04-27 17:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-27 16:48 [PATCH] kernfs: fix possibility of NULL pointer dereference youngjun
2020-04-27 17:31 ` Greg Kroah-Hartman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200427173134.GC3936841@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=her0gyugyu@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.