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

From: Alan Stern
Date: Fri Sep 23 2011 - 11:18:46 EST


On Thu, 22 Sep 2011, Rocko Requin wrote:

> > Rocko:
> >
> > Can you try testing this patch instead of all the patches I sent to
> > you (but keep Ted's patch)?
> >
> > Alan Stern
> >
>
> The simpler patch (in conjunction with Ted's patch) does stop the
> crashes. I get the same results as before: no kernel crashes
> (marvellous!), but the script's attempt to umount fails. I can then
> manually umount afterwards.

That sounds like a problem in the ext4 unmount implementation. Ted
should be able to help track it down.

What happens if you change your script to try two unmounts in a row?
In theory, the second should work like your manual unmount.

> Are these patches likely to be backported to the 3.0 kernel?

Yes, I should think so. The ext4/ext3 patches may be ported even
farther back.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/