Re: [PATCH] btrfs: balance: fix null-ptr-deref in btrfs_may_alloc_data_chunk
From: ZhengYuan Huang
Date: Mon Mar 16 2026 - 20:11:22 EST
On Tue, Mar 17, 2026 at 4:46 AM Qu Wenruo <wqu@xxxxxxxx> 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@xxxxxxxxx/.
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