xfstests fails with Metadata corruption at leaf on xfs filesystem

Bug #1704932 reported by bugproxy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Ubuntu-power-systems project
Fix Released
Medium
Unassigned
xfsprogs (Ubuntu)
Fix Released
Medium
Canonical Foundations Team

Bug Description

Problem Description
----------------------------
xfstests fails with Metadata corruption at leaf on xfs filesystem

Environment
------------------
Kernel Build: 4.12.1-041201-generic
System Name : ltc-test-ci2
Model : 8247-22L
Platform : PowerNV ( P8 )

Uname output
-------------------
# uname -a
Linux ltc-test-ci2 4.12.1-041201-generic #201707121132 SMP Wed Jul 12 17:03:25 UTC 2017 ppc64le ppc64le ppc64le GNU/Linux

Steps to reproduce:
----------------------------------------
1. dd if=/dev/null of=/tmp/loop.img bs=$((1024*1024*1024)) count=0 seek=5
2. dd if=/dev/null of=/tmp/loop2.img bs=$((1024*1024*1024)) count=0 seek=5
3. sudo apt install libaio-dev acl-dev attr-dev xfslibs-dev xfsprogs attr bc
4. git clone git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git; cd xfstests-dev
5. make
6. LOOP=$(sudo losetup -f --show /tmp/loop.img)
7. LOOP2=$(sudo losetup -f --show /tmp/loop2.img)
6. $ cat > local.config <<EOF
export TEST_DEV=$LOOP
export TEST_DIR=/mnt/test
export SCRATCH_DEV=$LOOP2
export SCRATCH_MNT=/mnt/scratch
EOF
7. sudo mkdir -p /mnt/test /mnt/scratch
8. Run xfstests-dev test : sudo ./check tests/xfs/288
9. sudo rmdir -p /mnt/test /mnt/scratch
10. sudo losetup -d $LOOP LOOP2
11. rm /tmp/loop.img /tmp/loop2.img

FSTYP -- xfs (non-debug)
PLATFORM -- Linux/ppc64le ltc-test-ci2 4.12.1-041201-generic
MKFS_OPTIONS -- -f -bsize=4096 /dev/loop6
MOUNT_OPTIONS -- /dev/loop6 /mnt/scratch

xfs/288 [failed, exit status 1] - output mismatch (see /root/harish/xfstests-dev/results//xfs/288.out.bad)
    --- tests/xfs/288.out 2017-07-13 06:04:36.276322778 -0400
    +++ /root/harish/xfstests-dev/results//xfs/288.out.bad 2017-07-17 06:08:53.590779133 -0400
    @@ -1,2 +1,3 @@
     QA output created by 288
    -Silence is golden
    +xfs_repair didn't junk the empty attr leaf
    +(see /root/harish/xfstests-dev/results//xfs/288.full for details)
    ...
    (Run 'diff -u tests/xfs/288.out /root/harish/xfstests-dev/results//xfs/288.out.bad' to see the entire diff)
_check_xfs_filesystem: filesystem on /dev/loop6 is inconsistent (r)
(see /root/harish/xfstests-dev/results//xfs/288.full for details)
Ran: xfs/288
Failures: xfs/288
Failed 1 of 1 tests

Nothing observed in dmesg.

Full log is attached.

Found https://patchwork.kernel.org/patch/9678821/ related.
.
xfsprogs source (https://launchpad.net/ubuntu/+source/xfsprogs/4.3.0+nmu1ubuntu4)
is downloaded and check for the commit and not able to see this commit integrated.

https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/commit/?id=f71401617acd8fccb2461dcd03d8868f8c87c07b

Revision history for this message
bugproxy (bugproxy) wrote : Test full log

Default Comment by Bridge

tags: added: architecture-ppc64le bugnameltc-156738 severity-medium targetmilestone-inin1710
Changed in ubuntu:
assignee: nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
Frank Heimes (fheimes)
affects: ubuntu → xfsprogs (Ubuntu)
Changed in ubuntu-power-systems:
importance: Undecided → Medium
assignee: nobody → Canonical Foundations Team (canonical-foundations)
tags: added: triage-g
Revision history for this message
Steve Langasek (vorlon) wrote :

I've confirmed that this test fails with xfsprogs 4.3.0 in xenial and zesty, and passes with xfsprogs 4.9.0 in artful.

description: updated
Changed in xfsprogs (Ubuntu):
assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → Canonical Foundations Team (canonical-foundations)
status: New → Fix Released
Changed in ubuntu-power-systems:
assignee: Canonical Foundations Team (canonical-foundations) → nobody
Changed in xfsprogs (Ubuntu):
importance: Undecided → Medium
Frank Heimes (fheimes)
Changed in ubuntu-power-systems:
status: New → Fix Released
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2017-08-02 01:48 EDT-------
Issues is not observed with latest xfsprogs 4.9.0+nmu1ubuntu1 which confirms the fix.

# ./check tests/xfs/288
FSTYP -- xfs (non-debug)
PLATFORM -- Linux/ppc64le ltc-test-ci2 4.11.0-10-generic
MKFS_OPTIONS -- -f -bsize=4096 /dev/loop1
MOUNT_OPTIONS -- /dev/loop1 /mnt/scratch

xfs/288 1s
Ran: xfs/288
Passed all 1 tests

Thanks,
Harish

Revision history for this message
bugproxy (bugproxy) wrote : Test full log

Default Comment by Bridge

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.