From: "Theodore Tso" <tytso@mit.edu>
To: Zhao Gongyi <zhaogongyi@bytedance.com>
Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org,
adilger.kernel@dilger.ca, libaokun@linux.alibaba.com,
jack@suse.cz, ojaswin@linux.ibm.com, ritesh.list@gmail.com,
yi.zhang@huawei.com
Subject: Re: [PATCH v4 0/2] ext4: reject impossible group free cluster counts
Date: Tue, 24 Nov 2026 09:55:30 -0500 [thread overview]
Message-ID: <awWhtXvIgTk1QzuY@mit.edu> (raw)
In-Reply-To: <20261124033900.76700-1-zhaogongyi@bytedance.com>
On Tue, Nov 24, 2026 at 11:38:58AM -0500, Zhao Gongyi wrote:
> ext4 initializes its free-space counters from the group descriptors. A
> corrupt descriptor can advertise more free clusters than its group can
> hold. Journal block replay can also replace the superblock and group
> descriptors that were examined when mounting.
>
> This series adds an optional JBD2 recovery callback and uses it in ext4
> to validate the recovered geometry and group descriptors. It checks the
> metadata before fast commit replay and checks the descriptors again
> after fast commit replay. Both halves of the group free-cluster count
> are read under the group lock.
Note: in the future, could you send your patches so that each of the
patches are sent as a reply to the cover letter, so becomes easy to
find all of the patches associated with the patch series? This makes
life much easier for patch reviews, and it also allows me to use the
"b4" command to gether up and apply all of the patches once the patch
review is complete.
The way I do that is to put in my ~/.gitconfig:
[sendemail]
chainreplyto = no
thread = yes
See the discussion of the --thread and --[no-]chain-reply-to options
in the man pages for git-send-mail and git-format-patch for more details.
Many thanks!
- Ted
prev parent reply other threads:[~2026-11-24 14:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 3:38 Zhao Gongyi
2026-11-24 14:55 ` Theodore Tso [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=awWhtXvIgTk1QzuY@mit.edu \
--to=tytso@mit.edu \
--cc=adilger.kernel@dilger.ca \
--cc=jack@suse.cz \
--cc=libaokun@linux.alibaba.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ojaswin@linux.ibm.com \
--cc=ritesh.list@gmail.com \
--cc=yi.zhang@huawei.com \
--cc=zhaogongyi@bytedance.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 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®