From: Eric Sandeen <sandeen@redhat.com>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: linux-xfs <linux-xfs@vger.kernel.org>
Subject: Re: [PATCH] xfs: properly handle free inodes in extent hint validators
Date: Tue, 24 Jul 2018 11:14:59 -0700 [thread overview]
Message-ID: <fc1a459a-dc00-8236-898f-5277d37eecd9@redhat.com> (raw)
In-Reply-To: <20180724181052.GV4813@magnolia>
On 7/24/18 11:10 AM, Darrick J. Wong wrote:
> On Tue, Jul 24, 2018 at 11:00:39AM -0700, Eric Sandeen wrote:
>> When inodes are freed in xfs_ifree(), di_flags is cleared (so extent size
>> hints are removed) but the actual extent size fields are left intact.
>> This causes the extent hint validators to fail on freed inodes which once
>> had extent size hints.
>>
>> This can be observed (for example) by running xfs/229 twice on a
>> non-crc xfs filesystem, or presumably on V5 with ikeep.
>
> I couldn't get it to reproduce by running x/229 twice, but I did see
> x/242 blow up on the same problem overnight. Which is funny since it
> hadn't blown up until now.
Huh. Can you try it on a 16G fs? Not sure what else might be unique
about my setup.
>> Fixes: 7d71a67 ("xfs: verify extent size hint is valid in inode verifier")
>> Fixes: 02a0fda ("xfs: verify COW extent size hint is valid in inode verifier")
>> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
>
> Separate patch, but can you also modify xfs_ifree to zero the
> extsize/cowextsize fields so that 4.16-4.17 kernels without this patch
> are less likely to trip over this?
I'm confused - 7d71a67 & 02a0fda (above) went into 4.18, so 4.1[67]
shouldn't have the validator problem, right?
Are you talking about scrub here?
Sorry for waxing philosophical but my fear is that explicitly zeroing the
fields /now/ will muddy the waters w.r.t. what we should expect to see on
disk. We had wrong verifiers, not wrong freeing routines - we need to
just fix the verifiers IMHO. Scrub is experimental for a reason, right?
Thanks,
-Eric
next prev parent reply other threads:[~2018-07-24 19:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-24 18:00 [PATCH] xfs: properly handle free inodes in extent hint validators Eric Sandeen
2018-07-24 18:10 ` Darrick J. Wong
2018-07-24 18:14 ` Eric Sandeen [this message]
2018-07-24 18:31 ` Darrick J. Wong
2018-07-25 11:26 ` Brian Foster
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=fc1a459a-dc00-8236-898f-5277d37eecd9@redhat.com \
--to=sandeen@redhat.com \
--cc=darrick.wong@oracle.com \
--cc=linux-xfs@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).