[Top] [All Lists]

repeatable attribute corruption

To: xfs@xxxxxxxxxxx
Subject: repeatable attribute corruption
From: Roger Willcocks <roger@xxxxxxxxxxxxxxxx>
Date: Mon, 12 Mar 2012 22:00:15 +0000
Hi folks,

On stock CentOS kernels from 5.5 (earliest I tried) through to the
latest 6.2 kernel (as of five days ago) 2.6.32-220.7.1.el6.x86_64 I can
repeatedly create a silent on-disk corruption. This typically shows up
later as:

XFS internal error xfs_da_do_buf(1) at line 2020 of

(or line 2112 of the same file).

The 'before' metadump is a bit big to attach to an email (~600k) so
here's a download link valid for 30 days -


- this is a gzip-compressed tar file containing 

-rw-r--r--.  1 root root   10885632 Mar 12 18:02 xfs_metadump_hda6
-rw-r--r--.  1 root root       3558 Mar 12 18:15 zap.txt

The metadump expands to about 5GB. xfs_repair believes it to be clean.
I've not obfuscated the dump; it was originally a copy of the linux
header directory from the 5.5 kernel.

'zap.txt' simply overwrites a single existing extended (directory)
attribute with a slightly longer value. So, steps to repeat:

# xfs_mdrestore xfs_metadump_hda6 xfs.img 
# mkdir /mnt/disk1
# mount -o loop xfs.img /mnt/disk1
# setfattr --restore=zap.txt
# umount /mnt/disk1
# xfs_repair -n xfs.img
bad sibling back pointer for block 4 in attribute fork for inode 131
problem with attribute contents in inode 131
would clear attr fork
bad nblocks 8 for inode 131, would reset to 3
bad anextents 4 for inode 131, would reset to 0

Roger Willcocks <roger@xxxxxxxxxxxxxxxx>

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