From: William Chuang <founder@logarcheon.com>
To: Theodore Ts'o <tytso@mit.edu>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>,
Jan Kara <jack@suse.cz>, Ojaswin Mujoo <ojaswin@linux.ibm.com>,
Ritesh Harjani <ritesh.list@gmail.com>,
linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org,
syzbot+e8180f5590685cbc9037@syzkaller.appspotmail.com,
syzkaller-bugs@googlegroups.com
Subject: [PATCH 0/2] ext4: fix two journal credit shortfalls behind one syzbot report
Date: Tue, 17 Nov 2026 05:27:57 +0000 [thread overview]
Message-ID: <20261117052750.2955-1-founder@logarcheon.com> (raw)
syzbot report e8180f5590685cbc9037 ("WARNING in jbd2_journal_dirty_metadata
(4)") collects crashes from two separate paths. Both hit the same WARN:
a handle dirties a new metadata block after its credits are used up.
1. EXT4_IOC_SWAP_BOOT: swap_inode_boot_loader() reserves 2 credits, then
updates quota under the same handle (crashes of 15 and 16 Nov).
2. Inline data buffered write with a short user copy:
ext4_generic_write_inline_data() reserves 1 credit, and
ext4_write_inline_data_end() then calls ext4_orphan_add() (crashes of
12-14 Nov, x86_64 and arm64, including data=journal).
Both were reproduced on UML at 666539eec ("Merge tag
'assoc-array-fixes-v2'") with small standalone reproducers, before and
after each fix; details are in each changelog. One patch per path, so
each can be reviewed alone. Both patches carry the same Reported-by
tag, and the report closes only when both are applied.
William Chuang (2):
ext4: reserve quota credits in swap_inode_boot_loader()
ext4: reserve an orphan credit for inline data writes
fs/ext4/inline.c | 7 ++++++-
fs/ext4/ioctl.c | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
--
2.43.0
next reply other threads:[~2026-11-17 5:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 5:27 William Chuang [this message]
2026-11-17 5:28 ` [PATCH 1/2] ext4: reserve quota credits in swap_inode_boot_loader() William Chuang
2026-11-17 6:00 ` sashiko-bot
2026-11-17 5:28 ` [PATCH 2/2] ext4: reserve an orphan credit for inline data writes William Chuang
2026-11-17 5:36 ` sashiko-bot
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=20261117052750.2955-1-founder@logarcheon.com \
--to=founder@logarcheon.com \
--cc=adilger.kernel@dilger.ca \
--cc=jack@suse.cz \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ojaswin@linux.ibm.com \
--cc=ritesh.list@gmail.com \
--cc=syzbot+e8180f5590685cbc9037@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=tytso@mit.edu \
/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.