xfs
[Top] [All Lists]

Re: xfstests xfs fuzzers fail with DAX

To: Xiong Zhou <xzhou@xxxxxxxxxx>
Subject: Re: xfstests xfs fuzzers fail with DAX
From: Dan Williams <dan.j.williams@xxxxxxxxx>
Date: Mon, 29 Aug 2016 18:50:05 -0700
Cc: linux-nvdimm <linux-nvdimm@xxxxxxxxxxx>, XFS Developers <xfs@xxxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, "Darrick J. Wong" <darrick.wong@xxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oqMPF5TwI7QpcOu+GzVdGwzTxAbOaGQnMgiumR7tvoc=; b=ByJHdtqkKgGiX1xNDre4ZERYV5bihPFWbpMp1uhKL84a9nsCCQuufzwHadF49B2oFj xCaJ4BOUOcgwHUD1bjF2GD5q9FiqLujTxLXv/txqmZJeOoaq+G3iVubZBw4+yOw71Ar4 Mz9R2ZK60OjUdtjDETRMPVJrNDSkgmxiWVw1T5CUtZMSTVLRdrEvuueiuNm7VIkH2If2 wHw5VtWyRciEsav/prOjmnk64VeZYG2DuV0U3awizn1Y3xWDT56lCKwWRalqZwOUFdhs gBCH8XR2I/YllYB7w8EaGTKkiMtQWcLEUc8JCU9iIae8s7elDP5sxzT3c3tjs/QB9YKJ 0rwQ==
In-reply-to: <20160804024514.GA2906@xxxxxxxxxxxxxxxxxxxxxxxxx>
References: <20160804024514.GA2906@xxxxxxxxxxxxxxxxxxxxxxxxx>
[ Adding Darrick on the off chance that this triggers an "aha, of
course it does!" ]

Darrick these corruption tests you added to xfstests last year all
fail the same way with DAX enabled.  They spew:

    "pwrite64: Structure needs cleaning"

...reports that are cleaned up by running without "-o dax".

Alternatively you could sit back and watch me try to figure it out,
that should be quite entertaining... as a start I'll try to pin down a
stack trace when the error is returned.


On Wed, Aug 3, 2016 at 7:45 PM, Xiong Zhou <xzhou@xxxxxxxxxx> wrote:
> Hi,
>
> A few xfs fuzzers in xfstests fail with dax mount option, pass without dax.
> They are xfs/086 xfs/088 xfs/089 xfs/091.
>
> xfstests to commit 4470ad4c7e  (Jul 26)
> kernel   to commit dd95069545  (Jul 24)
>
> + ./check xfs/091
> FSTYP         -- xfs (non-debug)
> PLATFORM      -- Linux/x86_64 rhel73 4.7.0+
> MKFS_OPTIONS  -- -f -bsize=4096 /dev/pmem1
> MOUNT_OPTIONS -- -o context=system_u:object_r:nfs_t:s0 /dev/pmem1 /daxsch
>
> xfs/091  104s
> Ran: xfs/091
> Passed all 1 tests
>
> + echo 'MOUNT_OPTIONS="-o dax"'
> + ./check xfs/091
> FSTYP         -- xfs (non-debug)
> PLATFORM      -- Linux/x86_64 rhel73 4.7.0+
> MKFS_OPTIONS  -- -f -bsize=4096 /dev/pmem1
> MOUNT_OPTIONS -- -o dax -o context=system_u:object_r:nfs_t:s0 /dev/pmem1 
> /daxsch
>
> xfs/091 104s ...  - output mismatch (see 
> /root/xfstests/results//xfs/091.out.bad)
>     --- tests/xfs/091.out       2016-07-18 02:57:47.670000000 -0400
>     +++ /root/xfstests/results//xfs/091.out.bad 2016-08-03 22:38:14.948000000 
> -0400
>     @@ -6,6 +6,70 @@
>      + corrupt image
>      + mount image
>      + modify files
>     +pwrite64: Structure needs cleaning
>     +pwrite64: Structure needs cleaning
>     +pwrite64: Structure needs cleaning
>     +pwrite64: Structure needs cleaning
>     ...
>     (Run 'diff -u tests/xfs/091.out /root/xfstests/results//xfs/091.out.bad'  
> to see the entire diff)
> Ran: xfs/091
> Failures: xfs/091
> Failed 1 of 1 tests
>
> # diff -u xfstests/tests/xfs/091.out /root/xfstests/results//xfs/091.out.bad
> --- xfstests/tests/xfs/091.out  2016-07-18 02:57:47.670000000 -0400
> +++ /root/xfstests/results//xfs/091.out.bad     2016-08-03 22:38:14.948000000 
> -0400
> @@ -6,6 +6,70 @@
>  + corrupt image
>  + mount image
>  + modify files
> +pwrite64: Structure needs cleaning
> <snip 62 more same lines>
> +pwrite64: Structure needs cleaning
>  + repair fs
>  + mount image
>  + chattr -R -i
>
>
> Thanks,
> Xiong
>
> _______________________________________________
> Linux-nvdimm mailing list
> Linux-nvdimm@xxxxxxxxxxxx
> https://lists.01.org/mailman/listinfo/linux-nvdimm

<Prev in Thread] Current Thread [Next in Thread>