public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* repeatable attribute corruption
@ 2012-03-12 22:00 Roger Willcocks
  2012-03-13  4:22 ` Dave Chinner
  2012-03-16  6:15 ` Dave Chinner
  0 siblings, 2 replies; 4+ messages in thread
From: Roger Willcocks @ 2012-03-12 22:00 UTC (permalink / raw)
  To: xfs

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
file /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.x86_64/fs/xfs/xfs_da_btree.c

(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 -

http://private.filmlight.ltd.uk/c4c864ecca4ac13b/xfs_attrib_crash.taz

- 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@filmlight.ltd.uk>

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-16  6:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-12 22:00 repeatable attribute corruption Roger Willcocks
2012-03-13  4:22 ` Dave Chinner
2012-03-13  6:04   ` Dave Chinner
2012-03-16  6:15 ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox