udftools confuses hal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udftools (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: udftools
Bug in udftools or possibly in pktcdvd kernel module.
Using Ubuntu Intrepid 32bit on an older PC with an ATHLON CPU and Samsung SH-S202J dvdwriter.
with Linux version 2.6.27-11-generic (buildd@vernadsky) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) ) #1 SMP Wed Apr 1 20:57:48 UTC 2009
pktcdvd module
filename: /lib/modules/
license: GPL
author: Jens Axboe <email address hidden>
description: Packet writing layer for CD/DVD drives
srcversion: 4AF2F07A4806489
depends: cdrom
vermagic: 2.6.27-11-generic SMP mod_unload modversions 586
and udftools 1.0.0b3-14
Following problems happen:
1) When booting with a CDROM or DVDROM in drive, Xorg starts with no keyboard and mouse, claiming that it was impossible to get them from hal
2) When 1 happens dvdwriters makes seek-like noise. Data content on DVD can be lost.
3) Regardless of 1 and 2, whenever udftools service starts, kernel complains and kernel messages report sysfs: duplicate filename '252:0' can not be created and dump of kernel modules plus id: 8403, comm: pktsetup Tainted: P W 2.6.27-11-generic # and then a backtrace:
[ 1320.478690] [<c0131e65>] warn_slowpath+
[ 1320.478703] [<c024e372>] ? idr_get_
[ 1320.478711] [<c024e584>] ? ida_get_
[ 1320.478716] [<c01c772e>] ? find_inode+0xe/0x70
[ 1320.478721] [<c0200450>] ? sysfs_ilookup_
[ 1320.478726] [<c0200450>] ? sysfs_ilookup_
[ 1320.478730] [<c0254bd2>] ? strcmp+0x12/0x40
[ 1320.478737] [<c0200779>] ? sysfs_find_
[ 1320.478742] [<c0200838>] ? __sysfs_
[ 1320.478746] [<c0200a0e>] sysfs_add_
[ 1320.478750] [<c0201899>] sysfs_do_
[ 1320.478756] [<c0201927>] sysfs_create_
[ 1320.478760] [<c02c2aa9>] device_
[ 1320.478766] [<c02009d8>] ? sysfs_add_
[ 1320.478771] [<c02c2ce7>] device_
[ 1320.478775] [<c02c2d9a>] device_
[ 1320.478779] [<c02c2ddd>] device_
[ 1320.478786] [<f902207f>] pkt_setup_
[ 1320.478804] [<f902239f>] pkt_ctl_
[ 1320.478813] [<c01bf3c1>] vfs_ioctl+0x81/0x90
[ 1320.478820] [<c0185801>] ? generic_
[ 1320.478826] [<c01bf556>] do_vfs_
[ 1320.478830] [<c0215008>] ? cap_file_
[ 1320.478840] [<c01bf75b>] sys_ioctl+0x6b/0x70
[ 1320.478845] [<c0103f7b>] sysenter_
[ 1320.478850] [<c0185801>] ? generic_
[ 1320.478856] =======
[ 1320.478859] ---[ end trace a049394c432b0fd9 ]---
this happens on pktsetup, even if invoked on the command line rather than with the udftools service.
3) Finally, pktcdvd module often complains on kernel syslog that it could not do optimal power calibration.
I do not know if 1) 2) 3) and 4) are different bugs and/or if they should be reported separately. 1) 2) and 3) appear strongly related.
Indeed all points look serious. The possibility of data loss and the suspect that the drive might get damaged by the continuous seek is worring. I wonder if the data loss may be induced by writing with no or wrong power calibration.
Ok...:
char device 252:0 is hidraw0, which I guess is the system keyboard. And that is why hal gets confused.
And that is why the dvdwriter probably received crazy commands that cook the disk that is inside (and maybe the drive too).
There is a long thread on this on the linux kernel mailing list.
It seems to affect 2.6.27.
Cannot see if it was fixed later on, but if it was, the ubuntu kernel doesn't have the fix.
This looks serious:
SURE DATA LOSS (after this treatement the DVD+RW that is in drive not only cannot be read, but cannot be formatted anymore) and possible hardware damage (drive spins and seeks in a crazy way).
Please adopt one of the following in order of priority:
1) Provide a true fix for the kernel or pktsetup if it is available.
2) Make sure that the udftools package contains HUGE warnings in the documentation.