Bug 201650 - directory corruption in Linux 2.6.17 with xfs
Summary: directory corruption in Linux 2.6.17 with xfs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 5
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Eric Sandeen
QA Contact: Brian Brock
URL: http://oss.sgi.com/projects/xfs/faq.h...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-07 22:49 UTC by Thomas Antony
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-08-11 06:18:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Linux Kernel 6757 0 None None None Never

Description Thomas Antony 2006-08-07 22:49:10 UTC
Description of problem:
The linux kernel 2.6.17 can cause directory corruption with xfs formatted
partitions.
In the Linux kernel 2.6.17 release a subtle bug was accidentally introduced into
the XFS directory code by some "sparse" endian annotations. This bug was
sufficiently uncommon (it only affects a certain type of format change, in Node
or B-Tree format directories, and only in certain situations).

Version-Release number of selected component (if applicable):
kernel-2.6.17-*


How reproducible:
update the kernel to a 2.6.17 version and have a xfs partiton formatted with xfs
and mounted r/w.

Steps to Reproduce:
1. format a partition with xfs
2. update to a 2.6.17 kernel
3. mount it r/w and do crreate/modifiy some data
  
Actual results:
directory corruption and data loss

Expected results:
a stable filesystem

Additional info:
http://oss.sgi.com/projects/xfs/faq.html#dir2

Comment 1 Dave Jones 2006-08-08 19:01:11 UTC
This should be fixed in the 2.6.17.8 based update currently in updates-testing
(due to move to final today/tomorrow) I think.  Eric ?


Comment 2 Eric Sandeen 2006-08-08 19:39:04 UTC
This should have been fixed in 2.6.17.7 actually.

http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.17.7

grep for "XFS: corruption fix"

Also, xfsprogs v 2.8.10 will be needed to repair the damage...

Comment 3 Thomas Antony 2006-08-10 08:21:23 UTC
I have created a bug entry against xfsprogs, but did not get a response from
Jeff Garzik yet.
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=201654


Note You need to log in before you can comment on or make changes to this bug.