cdrom_id utility incorrectly treats failed SCSI requests which leads to incorrect udev events generation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udev (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: udev
The bug was discovered while working with emulated USB CDROM device.
Usually such devices do not implement all SCSI MMC-3 commands like the normal optical drives and replay with fail in case of unimplemented SCSI request.
Bug was reproduced on various lab. boxes with Ubuntu 9.04 and 9.10 installed, thus probably not HW dependent.
It possible to reproduce bug the following way, attach usb device to PC, run usb tracer, run command:
/lib/udev/cdrom_id /dev/sr1
I receive the following output:
ID_CDROM=1
ID_CDROM_MEDIA=1
ID_CDROM_MEDIA_CD=1
ID_CDROM_
ID_CDROM_
ID_CDROM_
I did a special build of firmware for USB device to fail on reception of SCSI Read Disk Information command, this command is not obligatory for USB CDROM emulator devices according to, so it's quite typical situation.
You can find SCSI Read Disk Information request on the attached USB trace. USB trace confirms that device respond with STALL. But ID_CDROM_
Ellisys USB Analysis software to read attached USB trace file can be downloaded here:
http://
If USB device do not respond on SCSI READ TOC request correctly broken ID_CDROM_
As the result of incorrect cd information processing some devices emulating CDROM by various manufacturers we have in laboratory were not automounted by Ubuntu, I will provide some device models soon.
ProblemType: Bug
Architecture: i386
Date: Wed Sep 29 21:45:45 2010
DistroRelease: Ubuntu 9.10
Lsusb:
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: System manufacturer System Product Name
Package: udev 147~-6.1
ProcCmdLine: root=UUID=
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: udev
Uname: Linux 2.6.31-22-generic i686
XsessionErrors:
(gnome-
(gnome-
(polkit-
(synaptic:23635): Gtk-CRITICAL **: gtk_tree_
dmi.bios.date: 03/27/2006
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0501
dmi.board.name: P5WD2
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: System Product Name
dmi.product.
dmi.sys.vendor: System manufacturer