From: "yebin (H)" <yebin10@huawei.com>
To: Xianying Wang <wangxianying546@gmail.com>, <tytso@mit.edu>
Cc: <adilger.kernel@dilger.ca>, <linux-ext4@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [BUG] kernel BUG in ext4_do_writepages
Date: Sat, 7 Mar 2026 08:16:45 +0800 [thread overview]
Message-ID: <69AB6E6D.4080007@huawei.com> (raw)
In-Reply-To: <CAOU40uDHsLY6KOor1A-uuozEn8yJgF+gmQx_MLnkU6oSnyAERw@mail.gmail.com>
On 2026/3/6 13:42, Xianying Wang wrote:
> Hi,
>
> I would like to report a kernel BUG triggered by a syzkaller
> reproducer in the ext4 filesystem writeback path.
>
There was a period when I also noticed block allocation failures during
write-back, but after the configuration was changed, it didn't seem to
happen again.
> The issue was originally observed on Linux 6.19.0-rc8 and can also be
> reproduced on Linux 7.0-rc2. The crash occurs in the ext4 writeback
Can you identify which patch or which patchset introduced the issue?
> routine while the background writeback worker is flushing dirty pages
> to disk.
>
> During the crash, the filesystem reports that no free blocks are
> available while dirty pages and reserved blocks still exist. Under
> this condition, the writeback worker continues processing pending
> writeback operations and eventually reaches an internal consistency
> check inside the ext4 writeback routine, which triggers a kernel BUG.
>
> Based on the execution context, the issue appears to be related to the
> interaction between delayed allocation and the writeback mechanism
> when the filesystem runs out of available blocks. When the writeback
> thread attempts to flush dirty pages in this state, ext4 enters an
> unexpected internal state that causes the BUG to be triggered.
>
> This can be reproduced on:
>
> HEAD commit:
>
> 11439c4635edd669ae435eec308f4ab8a0804808
>
> report: https://pastebin.com/raw/dNFvCatE
>
> console output : https://pastebin.com/raw/LAPYKL5P
>
> kernel config : https://pastebin.com/7hk2cU0G
>
> C reproducer :https://pastebin.com/raw/v07yFCWP
>
Can you add these to the email as attachments?
> Let me know if you need more details or testing.
>
> Best regards,
>
> Xianying
>
>
> .
>
next prev parent reply other threads:[~2026-03-07 0:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-06 5:42 [BUG] kernel BUG in ext4_do_writepages Xianying Wang
2026-03-07 0:16 ` yebin (H) [this message]
2026-03-09 8:02 ` Xianying Wang
-- strict thread matches above, loose matches on Subject: below --
2026-01-14 7:49 Xianying Wang
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=69AB6E6D.4080007@huawei.com \
--to=yebin10@huawei.com \
--cc=adilger.kernel@dilger.ca \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
--cc=wangxianying546@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 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.