From: Eric Biggers <ebiggers@kernel.org>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>
Cc: Qu Wenruo <wqu@suse.com>,
linux-btrfs@vger.kernel.org, fstests@vger.kernel.org
Subject: Re: [PATCH v3] fstests: generic: add a test case to check fsverity reads
Date: Fri, 16 Oct 2026 21:05:50 -0700 [thread overview]
Message-ID: <20261017040550.GB29318@sol> (raw)
In-Reply-To: <4cafa46b-2bdc-4a91-9f33-85d4cb5f9357@gmx.com>
On Fri, Oct 16, 2026 at 07:24:32PM +1030, Qu Wenruo wrote:
>
>
> 在 2026/10/16 18:54, Eric Biggers 写道:
> > On Fri, Oct 16, 2026 at 06:35:05PM +1030, Qu Wenruo wrote:
> > >
> > >
> > > 在 2026/10/16 18:17, Eric Biggers 写道:
> > > > On Mon, Oct 12, 2026 at 08:56:13AM +1030, Qu Wenruo wrote:
> > > > > +_fixed_by_fs_commit btrfs xxxxxxxxxxxx \
> > > > > + "btrfs: fix the fsverity callback where unexpected range is verified"
> > > >
> > > > Even without that commit, 'kvm-xfstests -c btrfs generic/807' still
> > > > passes. Under what circumstances will this test fail?
> > >
> > > It need as least 7.2 upstream, which enables large data folios for btrfs by
> > > default.
> > >
> > > And I can always reproduce it here, mind to provide more info about the
> > > passed run?
> >
> > This is on the latest mainline (2f2f7eeef8b0). Not sure what else
> > you're looking for.
>
> It can be racy, since the fsverity call is at endio time, if all the endio
> of the same large folio is called after all the reads of the folio finished,
> it can also pass the verification.
>
> But I don't think it's that possible, unless you have blazing fast storage.
> As the first hole read should trigger the verification for the whole folio
> and trigger an fsverity error immediately.
>
> I can enlarge the file size, or even git it a loop to run multiple times,
> but I just can't figure out why...
>
> Or is it possible that the kernel config doesn't have
> CONFIG_TRANSPARENT_HUGEPAGE?
Indeed, I didn't have CONFIG_TRANSPARENT_HUGEPAGE enabled. Enabling it
makes the test fail as expected. Maybe would be helpful to mention that
prerequisite in a comment in the test.
- Eric
next prev parent reply other threads:[~2026-10-17 4:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-11 22:26 [PATCH v3] fstests: generic: add a test case to check fsverity reads Qu Wenruo
2026-10-12 12:33 ` Christoph Hellwig
2026-10-12 16:32 ` Dhruva G
2026-10-16 7:47 ` Eric Biggers
2026-10-16 8:05 ` Qu Wenruo
2026-10-16 8:24 ` Eric Biggers
2026-10-16 8:54 ` Qu Wenruo
2026-10-17 4:05 ` Eric Biggers [this message]
2026-10-17 8:04 ` Qu Wenruo
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=20261017040550.GB29318@sol \
--to=ebiggers@kernel.org \
--cc=fstests@vger.kernel.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=quwenruo.btrfs@gmx.com \
--cc=wqu@suse.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