RE: [Bug 25832] kernel crashes when a mounted ext3/4 file system isphysically removed

From: Ben Hutchings
Date: Sun Sep 18 2011 - 19:00:53 EST


On Sat, 2011-09-17 at 13:34 -0400, Alan Stern wrote:
> On Sat, 17 Sep 2011, Rocko Requin wrote:
>
> > > Why were you using gnome-terminal? You should be running the tests at
> > > a console VT, not under X at all. Ctrl-Alt-F2 or the equivalent...
> >
> > Because with Ted's patch it doesn't crash when run from a console VT, even with an X server running.
>
> That's weird. Maybe the screen updates change some timing.
>
> > > Here's another patch to address the new problem. You can apply it on
> > > top of all the other patches.
> >
> > Attached is the crash log I get with the latest patch applied.
>
> Okay, more fallout from the same problem. Here's an updated version of
> the previous patch.
[...]

There have been reports of this in Debian going back to 2.6.39:

http://bugs.debian.org/631187
http://bugs.debian.org/636263
http://bugs.debian.org/642043

Plus possibly related crashes in elv_put_request after CD-ROM removal:

http://bugs.debian.org/633890
http://bugs.debian.org/634681
http://bugs.debian.org/636103

The former was also reported in Ubuntu since their 2.6.38-10:

https://bugs.launchpad.net/debian/+source/linux-2.6/+bug/793796

The result of the discussion there was that it appeared to be a
regression due to commit 86cbfb5607d4b81b1a993ff689bbd2addd5d3a9b
("[SCSI] put stricter guards on queue dead checks") which was also
included in a stable update for 2.6.38.

There was also a report on bugzilla.kernel.org, though no-one can see
quite what that says now:

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

I also reported most of the above to James Bottomley and linux-scsi
nearly 2 months ago, to no response.

Ben.

--
Ben Hutchings
Power corrupts. Absolute power is kind of neat.
- John Lehman, Secretary of the US Navy 1981-1987

Attachment: signature.asc
Description: This is a digitally signed message part