From: Kent Overstreet <kent.overstreet@linux.dev>
To: Jeongjun Park <aha310510@gmail.com>
Cc: linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org,
syzbot+b468b9fef56949c3b528@syzkaller.appspotmail.com
Subject: Re: [PATCH] bcachefs: fix null-ptr-deref in have_stripes()
Date: Wed, 23 Oct 2024 22:37:47 -0400 [thread overview]
Message-ID: <mu3tb4xb466rbfvnqkd7dwitbxqdkpf26oitf6lvn4j2kubpgf@evsyze7an3xd> (raw)
In-Reply-To: <20241023161345.80029-1-aha310510@gmail.com>
On Thu, Oct 24, 2024 at 01:13:45AM +0900, Jeongjun Park wrote:
> c->btree_roots_known[i].b can be NULL. In this case, a NULL pointer dereference
> occurs, so you need to add code to check the variable.
>
> Reported-by: syzbot+b468b9fef56949c3b528@syzkaller.appspotmail.com
> Fixes: ("bcachefs: metadata version bucket_stripe_sectors")
> Signed-off-by: Jeongjun Park <aha310510@gmail.com>
Thanks, applied
prev parent reply other threads:[~2024-10-24 2:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-23 16:13 Jeongjun Park
2024-10-24 2:37 ` Kent Overstreet [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=mu3tb4xb466rbfvnqkd7dwitbxqdkpf26oitf6lvn4j2kubpgf@evsyze7an3xd \
--to=kent.overstreet@linux.dev \
--cc=aha310510@gmail.com \
--cc=linux-bcachefs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+b468b9fef56949c3b528@syzkaller.appspotmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®