Skip to contentSkip to conversation

New: kernel hang on insert ext4 usb key

Bug 23232 [email protected] 1 participant 9 messages Nov 18, 2010 – Aug 14, 2012

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=23232

Summary: kernel hang on insert ext4 usb key
Product: File System
Version: 2.5
Kernel Version: 2.6.37-rc2-git3
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: ext4
AssignedTo: [email protected]
ReportedBy: [email protected]
Regression: No

Created an attachment (id=37592)
--> (https://bugzilla.kernel.org/attachment.cgi?id=37592)
error messages of the kernel

Hello,

On my 2.6.37-rc2-git3 (with sched_autogroup patch), my computer crash when I insert an USB key formated in ext4. No problem if the usb key is in vfat.

When the bug occured, I can used magic sys key but the sync works.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#1 lore raw

[Bug 23232] kernel hang on insert ext4 usb key

https://bugzilla.kernel.org/show_bug.cgi?id=23232

Theodore Tso <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Theodore Tso <[email protected]> 2010-11-19 03:00:59 --- Does it crash if you boot some earlier version of the kernel?

Can you send an image of the USB key?

It looks like it's dieing very early the VFS layer, in vfs_kern_mount. It's not clear it's called into ext4 code at all when it gives the oops message.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#2 lore raw

[Bug 23232] kernel hang on insert ext4 usb key

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23232

Lukas Czerner <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #4 from Lukas Czerner <[email protected]> 2010-11-19 14:02:31 --- This might be related to a bug fixed with this patch. Can you try that to confirm that it solve the issue ?

http://www.spinics.net/lists/linux-ext4/msg21743.html

Thanks!
-Lukas

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#3 lore raw

[Bug 23232] kernel hang on insert ext4 usb key

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23232

--- Comment #5 from [email protected] 2010-11-19 15:30:27 --- Thanks,

This seems to correct the kernel crash problem.

But during my test of insertion/removal the usb key , I have to performed several time "fsck.ext4 -y" without thousand of error corrected... with this kind of error:
EXT4-fs (sdf1): ext4_check_descriptors: Checksum for group 0 failed (12243!=0) EXT4-fs (sdf1): group descriptors corrupted!

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#4 lore raw

[Bug 23232] kernel hang on insert ext4 usb key

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23232

Eric Sandeen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #6 from Eric Sandeen <[email protected]> 2010-11-19 15:31:41 --- Any chance you're pulling the key out without unmounting it first?

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#5 lore raw

[Bug 23232] kernel hang on insert ext4 usb key

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23232

--- Comment #7 from [email protected] 2010-11-19 15:41:40 --- I have done test without umount the key properly and sometime ugly.

The kernel crash problem is corrected by the patch.

The corruption of the filesystem is strange , I never seen this kind of corruption (e.g. with lost of all data after fsck, the fsck takes 5 minutes, even I have only insert/retrieve the key without performed any write on the key).

One the same suite of tests with another ext4 usb key of only 1gb , there is no problem in any case.

I am not sure that problems are linked

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#6 lore raw

[Bug 23232] kernel hang on insert ext4 usb key

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23232

--- Comment #8 from Eric Sandeen <[email protected]> 2010-11-19 15:45:48 --- It may well be related to the firmware on the usb key, I don't think there's a lot we can do on the ext4/kernel side. (other than to "not crash" when it's terribly corrupted)

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#7 lore raw

[Bug 23232] kernel hang on insert ext4 usb key

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23232

--- Comment #9 from Theodore Tso <[email protected]> 2010-11-19 16:02:53 --- I'm not convinced we even got into the ext4_fill_super(); if we did there
should have been at least some ext4 printk's. The OOPS is in
vfs_kern_mount().

I've looked through ext4_fill_super(), and if vfs_kern_mount() had gotten as far as calling into ext4_fill_super(), I can't find any code path other than failing the first two memory allocations that wouldn't have resulted in some kind of kernel printk --- which wasn't in the oops display.

So I strongly suspect the failure was before vfs_kern_mount() calling ext4_mount(), or in mount_bdev() --- since all ext4_mount() does is call mount_bdev() passing in ext4_fill_super as a callback function.

Can the oops be replicated at this point? If so, we can try instrumenting the
kernel, but this strongly smells like a hardware problem and a failure in the generic code before we drop into the ext4 mount code in ext4_fill_super().

-- Ted

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#8 lore raw

[Bug 23232] kernel hang on insert ext4 usb key

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23232

Alan <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|                            |INSUFFICIENT_DATA
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.