public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: ZhengYuan Huang <gality369@gmail.com>
To: Qu Wenruo <wqu@suse.com>
Cc: dsterba@suse.com, clm@fb.com, bo.li.liu@oracle.com,
	 linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org,
	 baijiaju1990@gmail.com, r33s3n6@gmail.com, zzzccc427@gmail.com,
	 stable@vger.kernel.org
Subject: Re: [PATCH] btrfs: balance: fix null-ptr-deref in btrfs_may_alloc_data_chunk
Date: Tue, 17 Mar 2026 08:09:19 +0800	[thread overview]
Message-ID: <CAOmEq9VVwimgxYxhUaRUv+7es4xd6u7-ttYGCeHC-+_Z1V6jhg@mail.gmail.com> (raw)
In-Reply-To: <f3497ad9-8ee6-4185-b935-013e596e764d@suse.com>

On Tue, Mar 17, 2026 at 4:46 AM Qu Wenruo <wqu@suse.com> wrote:
> I'd say adding a proper chunk/bg mapping check is the root fix.
>
> Or you'll need to adhoc a lot of null pointer checks.

Thank you for the reminder. A patch addressing the root cause of this
issue has already been submitted, but I am unsure if the solution is
fully appropriate and would appreciate further guidance. The relevant
patch series can be found here:
https://lore.kernel.org/all/20260314123741.1439792-1-gality369@gmail.com/.
Please take a look at the series.

Since you are not directly responsible for this, I didn't CC you on
the email to avoid causing any disruption. Apologies for any
inconvenience this may have caused.

Looking forward to your feedback,
ZhengYuan Huang

      reply	other threads:[~2026-03-17  0:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-16 13:46 [PATCH] btrfs: balance: fix null-ptr-deref in btrfs_may_alloc_data_chunk ZhengYuan Huang
2026-03-16 20:46 ` Qu Wenruo
2026-03-17  0:09   ` ZhengYuan Huang [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=CAOmEq9VVwimgxYxhUaRUv+7es4xd6u7-ttYGCeHC-+_Z1V6jhg@mail.gmail.com \
    --to=gality369@gmail.com \
    --cc=baijiaju1990@gmail.com \
    --cc=bo.li.liu@oracle.com \
    --cc=clm@fb.com \
    --cc=dsterba@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=r33s3n6@gmail.com \
    --cc=stable@vger.kernel.org \
    --cc=wqu@suse.com \
    --cc=zzzccc427@gmail.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