mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thorsten Leemhuis <regressions@leemhuis.info>
To: Christian Brauner <brauner@kernel.org>
Cc: Joseph Qi <joseph.qi@linux.alibaba.com>,
	Yalagada Pavan Kumar <pavankumaryalagada@gmail.com>,
	linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,
	ocfs2-devel@lists.linux.dev, linux-kernel@vger.kernel.org,
	Srikanth Aithal <Srikanth.Aithal@amd.com>,
	Luca Weiss <luca.weiss@fairphone.com>, Jan Kara <jack@suse.cz>,
	Linux kernel regressions list <regressions@lists.linux.dev>
Subject: Re: [PATCH] buffer: fix NULL dereference of bh->b_folio in __bh_submit()
Date: Fri, 18 Sep 2026 08:53:38 +0200	[thread overview]
Message-ID: <12e93e0d-0fb8-4ac8-9be2-3d9b5f7c6d4e@leemhuis.info> (raw)
In-Reply-To: <20260904-unkraut-preis-pendel-a57f694a54c5@brauner>

On 9/4/26 12:35, Christian Brauner wrote:
> On Thu, Sep 03, 2026 at 09:42:27AM +0800, Joseph Qi wrote:
>> On 9/3/26 4:52 AM, Yalagada Pavan Kumar wrote:
>>> On Wed, Sep 02, 2026 at 09:33:57AM +0800, Joseph Qi wrote:
>>>> Commit a2c924c240e7 ("buffer: set BIO_COMPLETE_IN_TASK for dropbehind
>>>> writeback") added an unconditional folio_test_dropbehind(bh->b_folio) in
>>>> __bh_submit().  But jbd2 shadow buffers have a NULL b_folio since commit
>>>> 5febcba29792 ("jbd2: point the shadow buffer at the frozen data
>>>> directly") made them point b_data at the kmalloced frozen data rather
>>>> than a folio.  Submitting such a buffer during journal commit oopses:
>>>>
>>>>   BUG: kernel NULL pointer dereference, address: 0000000000000000
>>> [...]
>>> I was working on a fix for this syzbot report [1] and didn't realize that you were
>>> already working on it. I noticed your patch on the mailing list, so i won't
>>> send a duplicate patch.
>>>  
>>>> Fixes: 5febcba29792 ("jbd2: point the shadow buffer at the frozen data directly")
>>>
>>> Could you please add the Reported-by: and Closes: tags from the syzbot report
>>> to your patch? This will help syzbot associate the patch with the reported
>>> issue and track the fix.
>>>
>>> [1]: https://syzkaller.appspot.com/bug?extid=41453ea05ab61c075f1f
>>>
>> Could you please address the above when apply the patch? Or should I
>> resend the patch with them?
> 
> I'll do it. Thanks!
Christian, just wondering, did this fix maybe fall through the cracks?
This got on my radar because there were a few other reports about this
regression since then -- and I can't see this or some other fix like
this in -next.

At the same time it feels a lot like I'm missing something -- or like
some deeper problem with all of this turned up meanwhile, which required
more changes that people are still working on. If it's something like
that and everything is on track, feel free to just ignore this message.

Ciao, Thorsten

  reply	other threads:[~2026-09-18  6:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-02  1:33 Joseph Qi
2026-09-02 20:52 ` Yalagada Pavan Kumar
2026-09-03  1:42   ` Joseph Qi
2026-09-04 10:35     ` Christian Brauner
2026-09-18  6:53       ` Thorsten Leemhuis [this message]
2026-09-22 10:12         ` Jan Kara
2026-09-04  5:28 ` Greg Ociepka
2026-09-06  5:50 ` Gong Shuai
2026-09-08  5:32 ` Dang Huynh
2026-09-08 10:10 ` Chris Paterson
2026-09-10  8:08 ` Konrad Dybcio
2026-09-10 11:14   ` Jan Kara
2026-09-14 14:32 ` André Draszik

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=12e93e0d-0fb8-4ac8-9be2-3d9b5f7c6d4e@leemhuis.info \
    --to=regressions@leemhuis.info \
    --cc=Srikanth.Aithal@amd.com \
    --cc=brauner@kernel.org \
    --cc=jack@suse.cz \
    --cc=joseph.qi@linux.alibaba.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luca.weiss@fairphone.com \
    --cc=ocfs2-devel@lists.linux.dev \
    --cc=pavankumaryalagada@gmail.com \
    --cc=regressions@lists.linux.dev \
    /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®