From: sashiko-bot@kernel.org
To: "Hsiu-Hsien Lee" <swinds24@gmail.com>
Cc: linux-ext4@vger.kernel.org, tytso@mit.edu
Subject: Re: [PATCH] ext4: use unsigned int for inode numbers in fast commit
Date: Mon, 23 Nov 2026 02:28:44 +0000 [thread overview]
Message-ID: <sashiko-outbox-228550@kernel.org> (raw)
In-Reply-To: <20261123022309.990044-1-swinds24@gmail.com>
> The fast commit code keeps inode numbers in signed int: fcd_parent and
> fcd_ino in struct ext4_fc_dentry_update, the fc_modified_inodes array,
> struct dentry_info_args, the inode number in ext4_fc_replay_inode() and
> the argument of ext4_fc_record_modified_inode() and
> ext4_mark_inode_used(). On a file system with more than 2^31 inodes,
> inode numbers of 2^31 and above become negative.
>
> In the commit path, fcd_ino is sign-extended when compared with i_ino,
> so the WARN_ON() in ext4_fc_commit_dentry_updates() fires on every
> fsync() of a newly created file with such an inode number.
>
> In the replay path, the sign-extended value passed to ext4_iget() is
> larger than s_inodes_count, so ext4_iget() reports "iget: illegal
> inode #" and the dentry and inode tags of these inodes are not replayed
> after a crash.
> [ ... ]
>
> Fixes: aa75f4d3daae ("ext4: main fast-commit commit path")
> Fixes: 8016e29f4362 ("ext4: fast commit recovery path")
> Assisted-by: Claude Opus 5.5
> Signed-off-by: Hsiu-Hsien Lee <swinds24@gmail.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123022309.990044-1-swinds24@gmail.com?part=1
prev parent reply other threads:[~2026-11-23 2:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 2:23 [PATCH] ext4: use unsigned int for inode numbers in fast commit Hsiu-Hsien Lee
2026-11-23 2:28 ` sashiko-bot [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=sashiko-outbox-228550@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-ext4@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=swinds24@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox