Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35791 - hotplug causing kernel crash when stopping with USB-device(s) still mounted
Summary: hotplug causing kernel crash when stopping with USB-device(s) still mounted
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-14 03:20 UTC by Alexander Puchmayr
Modified: 2004-03-20 11:30 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Puchmayr 2003-12-14 03:20:08 UTC
When some USB mass storage device is mounted and /etc/init.d/hotplug stop is called, the device doesn't get unmounted, but the underlaying device suddenly disappears. I've tried with a reiserfs in rw-mode, which causes a kernel-oops as soon as you try to write to the device (e.g. by unmounting it). However, it does crash on ro-mode, but still leavs an inaccessible device with errors. I can't say anything about other filesystems, since I didn't test them.

If you forget to unmount your memory stick and shutdown the machine, you also encounter the problem (the shutdown hangs, you have to brute-force turn off the machine with the power switch).

Kernel 2.4.23_pre8-gss, hotplug version 20030805-r2

Suggestion to fix: Check somehow if there are mounted filesystems on any usb-device and dismount them if needed.


Reproducible: Always
Steps to Reproduce:
1. Start hotplug, mount a device (hd, memorystick, etc)
2. Stop hotplug
3. Try to do something with the still mounted device
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-03-20 11:30:39 UTC
This really isn't a hotplug issue.

And the 2.6 kernel handles this much better now, I'd suggest using that one if you can.