Bug 6628
Summary: | kernel BUG at fs/ext3/namei.c:383 | ||
---|---|---|---|
Product: | File System | Reporter: | Georg Funke (schorsch.funke) |
Component: | ext3 | Assignee: | Theodore Tso (tytso) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | akpm, duaneg, srinivasa, tytso |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.16.18 | Subsystem: | |
Regression: | --- | Bisected commit-id: |
Description
Georg Funke
2006-05-30 21:48:04 UTC
Ted, it blew up in the htree code: assert(dx_get_limit(entries) == dx_root_limit(dir, root->info.info_length)); Georg, is this reproducible? It sounds like it is.. Yes, it is reproducible. I have this bug also under Linux 2.6.15.6. Evertime i plug in my external IDE drive in the USB slot and then i want to open the disk. I must reboot to work normal with my Laptop. Yes, it is reproducible. I have this bug also under Linux 2.6.15.6. Evertime i plug in my external IDE drive in the USB slot and then i want to open the disk. I must reboot to work normal with my Laptop. It is also reproducible under Linux 2.6.17-rc5. I'm not using the kernel distributed with Ubuntu 6.06. How big is the filesystem? If you haven't run e2fsck yet, please DO NOT. Instead, if you are willing please send me the output of: e2image -r /dev/hda1 - | bzip2 > hda1.e2i.bz2 But substitute hda1 with sda4, or whatever device name you are using for the external IDE disk that you are accessing via USB.... Please see the man page for e2image for more details, but what you will be sending me is the filesystem metadata blocks only. I will not see the contents of any of your files, but I will see the filenames of your files. In some cases you could use the -s option to e2image to scramble the filenames, but in this case, I must have the directories undisturbed in order to debug an htree problem. If you can reproduce this at will, this is great. By sending me the e2image file, I should be able to reproduce it on my system as well. (Assuming it isn't a hardware error, of course. I assume you've checked /var/log/messages and/or /var/log/kern.log and there are no error messages from the hard disk driver?) Thanks!! Hi, i can't do anything with this disk. I've checked the logs and there are mo messages from the hard disk driver. e2image don' work too. In the logs are now the following messages: <6>sd 0:0:0:0: SCSI error: return code = 0x8000002 sda: Current: sense key=0x3 ASC=0x11 ASCQ=0x0 end_request: I/O error, dev sda, sector 8126911 Buffer I/O error on device sda1, logical block 1015856 sd 0:0:0:0: SCSI error: return code = 0x8000002 sda: Current: sense key=0x3 ASC=0x11 ASCQ=0x0 end_request: I/O error, dev sda, sector 8126919 Buffer I/O error on device sda1, logical block 1015857 end_request: I/O error, dev sda, sector 8126927 Buffer I/O error on device sda1, logical block 1015858 Buffer I/O error on device sda1, logical block 1015859 Buffer I/O error on device sda1, logical block 1015860 Buffer I/O error on device sda1, logical block 1015861 Buffer I/O error on device sda1, logical block 1015862 Buffer I/O error on device sda1, logical block 1015863 Buffer I/O error on device sda1, logical block 1015864 Buffer I/O error on device sda1, logical block 1015865 Buffer I/O error on device sda1, logical block 1015866 sd 0:0:0:0: SCSI error: return code = 0x8000002 sda: Current: sense key=0x3 ASC=0x11 ASCQ=0x0 end_request: I/O error, dev sda, sector 8126911 printk: 7 messages suppressed. Buffer I/O error on device sda1, logical block 1015856 Today or tomorrow i will plug in the disk in my other PC at a IDE port. There i can check if is a hardware error (smartmontools don't work on my USB drive, but the disk has smart features). If is not an hardware error i will try e2image there. Georg Can you see if similar errors were in your system log before the "Problem Description:kernel BUG at fs/ext3/namei.c:383!" kernel oops? If there is, then it looks like the problem has to do with the htree code being insufficiently robust in the face of disk errors. But I'd like to confirm this to be the case if possible. Thanks!! No there aren't any similar errors in the log before. Next time i will test the disk adapted to an IDE adapter. Georg I can reproduce this bug on a /tmp ext3-partition on my Gentoo-Box. It even occurs when booting with older Knoppix based Live-CDs based on kernel 2.6.x. The kernel stops and system is frozen. I only am able to access this filesystem via an old Knoppix-CD from 2004 (LinuxTag 2004 DVD Release) based on kernel 2.4. With this release I am still able to acces and read all the files on the partition. I tried to repair it once with the e2fsck from e2fsprogs version 1.35. But with 2.6.x the bug is still reproducable. I'm able to provide an e2image, but it will be made with e2fsprogs version 1.35 from February, 2004 since this is the one residing on the old Knoppix-DVD. If it helps, please contact me via email for getting the image and additional info that is needed. Karl can you send me the e2image file. Create it via a command line like this: e2image -r /dev/hda1 - | bzip2 > hda1.e2i.bz2 That would be very helpful! I've been looking at this following a bug report from a gentoo user: http://bugs.gentoo.org/show_bug.cgi?id=183207 I've written a directory index corrupter utility that can reproduce the problem and a ext3 patch that I think fixes it. Please see the gentoo bug for more information. I'll send the patch upstream once I have confirmation that it fixes the reported problems. From the gentoo bug mentioned in #11, the patch has been tested and submitted. Closing the bug, thanks. |