Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329519 - XFS/USB problem - kernel: XFS internal error XFS_WANT_CORRUPTED_GOTO at line 1544 of file fs/xfs/xfs_alloc.c
Summary: XFS/USB problem - kernel: XFS internal error XFS_WANT_CORRUPTED_GOTO at line ...
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-23 03:51 UTC by David Relson
Modified: 2010-12-17 13:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/messages output (XFS_Problem_0721_2352.txt,10.24 KB, text/plain)
2010-07-23 03:52 UTC, David Relson
Details
emerge --info output (emerge.info.txt,4.53 KB, text/plain)
2010-07-25 20:22 UTC, David Relson
Details
configuration for Linux kernel version: 2.6.34-gentoo-r1 (config-0627-1501,47.20 KB, text/plain)
2010-07-25 20:23 UTC, David Relson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Relson 2010-07-23 03:51:30 UTC
I have an external USB HDD with a b0rked XFS filesystem.  When I connect it (via USB cable), XFS internal errors appear in /var/log/messages.

Here are the first few (with more in the attached file):
Jul 21 23:54:18 osage kernel: XFS: bad magic number
Jul 21 23:54:18 osage kernel: XFS: SB validate failed
Jul 21 23:54:36 osage kernel: XFS mounting filesystem sdb1
Jul 21 23:54:36 osage kernel: Starting XFS recovery on filesystem: sdb1 (logdev: internal)

Jul 21 23:55:12 osage kernel: XFS internal error XFS_WANT_CORRUPTED_GOTO at line 1544 of file fs/xfs/xfs_alloc.c.  Caller ...

Attaching a second USB device, such as a thumb drive, produces no messages, not even any USB related messages.  Perhaps the USB module has crashed ...

Reproducible: Always

Steps to Reproduce:
1.reboot machine to load clean kernel
2.attach USB XFS HDD
3.

Actual Results:  
see attached file for messages

Expected Results:  
HDD should mount as /mnt/usbhd

### uname -a ###
Linux osage 2.6.34-gentoo-r1 #1 SMP Sun Jun 27 15:01:10 EDT 2010 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ AuthenticAMD GNU/Linux
Comment 1 David Relson 2010-07-23 03:52:25 UTC
Created attachment 239887 [details]
/var/log/messages output

USB device is recognized; XFS system is identified as corrupt
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-07-25 18:20:17 UTC
Please post your `emerge --info' and attach the .config file for that kernel. Also tell us which version of the kernel sources that is (and whether it's vanilla-sources, gentoo-sources or something else).
Comment 3 David Relson 2010-07-25 20:22:47 UTC
Created attachment 240131 [details]
emerge --info output
Comment 4 David Relson 2010-07-25 20:23:45 UTC
Created attachment 240133 [details]
configuration for Linux kernel version: 2.6.34-gentoo-r1
Comment 5 David Relson 2010-07-25 20:24:47 UTC
Kernel source is gentoo-sources-2.6.34-r1
Comment 6 George Kadianakis (RETIRED) gentoo-dev 2010-07-28 03:28:27 UTC
Being a clueless regarding XFS and searching the internet for XFS_WANT_CORRUPTED_GOTO, I got many results with people that used xfs_repair(8) and some of them were successful. Have you tried it?

This guy here describes the backup procedure as well, to be on the safe side:
http://www.opensubscriber.com/message/xfs@oss.sgi.com/8698490.html
Comment 7 David Relson 2010-08-19 11:30:34 UTC
I see that the status has been changed to "RESOLVED NEEDINFO".

What additional info do you need?
Comment 8 Mike Pagano gentoo-dev 2010-08-19 12:33:21 UTC
See comment #6
Comment 9 David Relson 2010-08-21 16:07:05 UTC
Plugging in the USB hard drive causes the XFS internal error XFS_WANT_CORRUPTED_GOTO.  

After this has occurred, the USB subsystem seems to be broken.  Disconnecting the USB hard drive logs a "usb 2-2: USB disconnect, address 4", but reconnecting the USB does _not_ produce any USB messages.  Connecting a memory stick also does not produce any USB messages.  It seems that the kernel has stopped recognizing USB devices.

I have tried running xfs_repair as requested.  

Command "xfs_repair /dev/sdb" reports "xfs_repair: cannot open /dev/sdb: Device or resource busy"

Command "xfs_repair /dev/sdb1" produces no disk activity and no output.

After plugging in the USB hard drive, the kernel is sufficiently broken that I must reboot my workstation in order to do anything USB related.

I hope the above information clarifies the situation.

David
Comment 10 Mike Pagano gentoo-dev 2010-08-21 19:23:33 UTC
reopening
Comment 11 George Kadianakis (RETIRED) gentoo-dev 2010-11-03 21:49:56 UTC
Greetings David,

what's the situation here? Did you manage to access the filesystem? 

After googling again for "Corruption of in-memory data detected." and "XFS_WANT_CORRUPTED_GOTO", I decided that the best course of action would be to stop waiting for an answer here (no one of us is using XFS afaik) and file a bug upstream. I know it's a bore, but at least they are gonna give some educated answers instead of google results :)

In case you decide to open a bug upstream, please leave the URL here.
If you have solved the problem, please state how you solved it and close this bug :)

Thank you!
Comment 12 Mike Pagano gentoo-dev 2010-12-17 13:40:15 UTC
Please submit upstream as requested and well follow the progress upstream