Kernel Bug Tracker – Bug 9635
Unaligned accesses in xfs_file_readdir
Last modified: 2008-01-11 12:32:24 UTC
Most recent kernel where this bug did not occur: 2.6.23
Hardware Environment: API CS20D (2 x 833Mhz EV68AL Alpha CPUs)
Linux sky 2.6.24-rc6-mm1 #1 SMP Mon Dec 24 00:24:38 CST 2007 alpha GNU/Linux
Gnu C 4.2.3
Gnu make 3.81
Linux C Library 2.7
Dynamic linker (ldd) 2.7
Modules Loaded xt_multiport xt_state ip6table_mangle ip6table_filter ip6_tables iptable_mangle iptable_filter adm9240 hwmon_vid loop i2c_ali1535 i2c_ali15x3 i2c_core sd_mod ide_cd_mod cdrom generic sym53c8xx e100 scsi_transport_spi alim15x3 mii scsi_mod ide_core
(Note: -mm1 compile, however bug was introduced in 2.6.24-rc6 patch, not -mm1)
kernel unaligned acc : 270990 (pc=fffffc00011855f4,va=fffffc007e39204b)
fffffc0001185480 t xfs_file_readdir
fffffc0001185650 t xfs_hack_filldir
Steps to reproduce:
Boot. ls a directory on a XFS filesystem.
Seems to be caused by the major xfs_file.c changes in the 2.6.24-rc6 patch.
Created attachment 14248 [details]
partial revert of commit 041388b54
Does the attached patch make any difference? It's a partial revert of one of the XFS changes in -rc6. (NOTE: i'm not an XFS expert so this could easily be the wrong patch.)
Created attachment 14249 [details]
attempted XFS fix, take #2
I'll take a look at that.
Christoph Hellwig <firstname.lastname@example.org> posted a patch to the XFS list that seems to fix it. I'll attach it here. I definitely not an expert, so I'll let somebody else decide which fix is "better".
Created attachment 14255 [details]
Christoph Hellwig's patch
ah, ok - disregard my patch then.
Fix is now as commit aea6ad0ce5e215ce99fe9e3edd9268f696862d8f in Linus' tree.