Bug#649198: linux-image-2.6.32-5-amd64: Kernel Oops on try to use an USB CD drive that was powered off
Hi,
> cat /proc/version
Says:
Linux version 2.6.32-5-amd64 (Debian 2.6.32-38) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Oct 3 03:59:20 UTC 2011
I was confused by the similarity of "2.6.32-5-amd64" and "2.6.32-38"
which made me think that "-38" should replace "-5".
> This shows a crash in close() not ioctl().
This is plausible, now that you stated it.
The xorriso command -toc causes ioctl(SG_IO) on the open filedescriptor.
If the ioctl() fails, then the file descriptor gets closed, indeed.
The original Oopses, which made me dig by xorriso, were with qemu which
uses SG_IO, and with blkid, which probably does not.
The Oops with qemu happened when i shut down client and qemu. At that
time qemu had reported I/O errors as reply to my attempts to talk to
the powerless drive. blkid was started by udevd.
> But anyway, definitely another bug to be fixed.
It was always a cool feature of Linux and USB drives that i could
revive a stuck drive without rebooting the system. Very helpful when
doing MMC experiments.
This still works with squeeze, but it is quite ugly when all terminals
scream "Kernel Oops" and a black window pops up urging me to report it.
The machine is dedicated to testing. Just give me instructions if you
want me to make experiments.
Have a nice day :)
Thomas
Reply to: