From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: Brian Foster <bfoster@redhat.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>, linux-xfs@vger.kernel.org
Subject: Re: XFS kernel BUG during generic/270 with v4.10
Date: Thu, 2 Mar 2017 09:28:29 -0800 [thread overview]
Message-ID: <20170302172829.GK26319@birch.djwong.org> (raw)
In-Reply-To: <20170302171329.GN3213@bfoster.bfoster>
On Thu, Mar 02, 2017 at 12:13:29PM -0500, Brian Foster wrote:
> On Thu, Mar 02, 2017 at 08:47:01AM -0800, Darrick J. Wong wrote:
> > On Thu, Mar 02, 2017 at 11:29:34AM -0500, Brian Foster wrote:
> > > On Wed, Feb 22, 2017 at 12:13:00PM -0700, Ross Zwisler wrote:
> > > > By running generic/270 in a loop on an XFS filesystem mounted with DAX I'm
> > > > able to reliably generate the following kernel bug after a few (~10)
> > > > iterations (output passed through kasan_symbolize.py):
> > > >
> > > > run fstests generic/270 at 2017-02-22 12:01:05
> > > > XFS (pmem0p2): Unmounting Filesystem
> > > > XFS (pmem0p2): DAX enabled. Warning: EXPERIMENTAL, use at your own risk
> > > > XFS (pmem0p2): Mounting V5 Filesystem
> > > > XFS (pmem0p2): Ending clean mount
> > > > XFS (pmem0p2): Quotacheck needed: Please wait.
> > > > XFS (pmem0p2): Quotacheck: Done.
> > > > XFS (pmem0p2): xlog_verify_grant_tail: space > BBTOB(tail_blocks)
> > > > XFS: Assertion failed: XFS_FORCED_SHUTDOWN(ip->i_mount) || ip->i_delayed_blks == 0, file: fs/xfs/xfs_super.c, line: 965
> > >
> > > This means we've reclaimed an inode that still has delayed allocation
> > > blocks, which shouldn't occur. We do have one recent fix in this area:
> > > fa7f138 ("xfs: clear delalloc and cache on buffered write failure"). Do
> > > you still reproduce this? If so, does it reproduce with that patch?
> > >
> > > > ------------[ cut here ]------------
> > > ...
> > > > ---[ end trace 384d06985052f068 ]---
> > > >
> > > > Here's the xfstests run:
> > > >
> > > > FSTYP -- xfs (debug)
> > > > PLATFORM -- Linux/x86_64 alara 4.10.0
> > > > MKFS_OPTIONS -- -f -bsize=4096 /dev/pmem0p2
> > > > MOUNT_OPTIONS -- -o dax -o context=system_u:object_r:nfs_t:s0 /dev/pmem0p2 /mnt/xfstests_scratch
> > > >
> > > > generic/270 24s ..../check: line 596: 15817 Segmentation fault ./$seq > $tmp.rawout 2>&1
> > > > [failed, exit status 139] - output mismatch (see /root/xfstests/results//generic/270.out.bad)
> > > > --- tests/generic/270.out 2016-10-21 15:31:10.568945780 -0600
> > > > +++ /root/xfstests/results//generic/270.out.bad 2017-02-22 12:01:29.272718284 -0700
> > > > @@ -3,6 +3,3 @@
> > > > Run fsstress
> > > >
> > > > Run dd writers in parallel
> > > > -Comparing user usage
> > > > -Comparing group usage
> > > > -Comparing filesystem consistency
> > > > ...
> > > > (Run 'diff -u tests/generic/270.out /root/xfstests/results//generic/270.out.bad' to see the entire diff)
> > > >
> > > > This was done in my normal test setup, which is a pair of PMEM disks that
> > > > enable DAX.
> > > >
> > >
> > > What I'm a little confused about though is that I thought DAX meant we
> > > bypassed buffered I/O and always used direct I/O (which means you should
> > > never perform delayed allocation). :/
> >
> > The block devices are pmem, but I don't think g/270 does anything
> > special to turn on DAX (the inode flag) for the files it's writing.
> >
>
> Doesn't the dax mount force the inode flag?
Oh, heh, I forgot that the mount flag still exists. You're right.
--D
>
> Brian
>
> > --D
> >
> > >
> > > Brian
> > >
> > > > Here are the versions of xfstests and xfsprogs that I'm using:
> > > >
> > > > xfstets: f438604 generic: test mmap io through DAX and non-DAX
> > > >
> > > > xfsprogs: xfs_admin version 4.9.0
> > > > This is just the xfsprogs that comes packaged with Fedora 25.
> > > >
> > > > Thanks,
> > > > - Ross
> > > > --
> > > > To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> > > > the body of a message to majordomo@vger.kernel.org
> > > > More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-03-02 17:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-22 19:13 XFS kernel BUG during generic/270 with v4.10 Ross Zwisler
2017-02-22 19:39 ` Ross Zwisler
2017-03-02 16:29 ` Brian Foster
2017-03-02 16:47 ` Darrick J. Wong
2017-03-02 17:13 ` Brian Foster
2017-03-02 17:28 ` Darrick J. Wong [this message]
2017-03-02 17:25 ` Eric Sandeen
2017-03-06 18:41 ` Ross Zwisler
2017-03-06 18:48 ` Darrick J. Wong
2017-03-07 14:32 ` 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=20170302172829.GK26319@birch.djwong.org \
--to=darrick.wong@oracle.com \
--cc=bfoster@redhat.com \
--cc=linux-xfs@vger.kernel.org \
--cc=ross.zwisler@linux.intel.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;
as well as URLs for NNTP newsgroup(s).