Bug#268964: kernel-image-2.6.7-1-k7: sr_mod driver stops working, then barfs on rmmod
Package: kernel-image-2.6.7-1-k7
Version: 2.6.7-2
Severity: normal
I was ripping songs off of one of my recently-purchased CDs earlier
today and ran into some trouble. It's probably just because I'm using
the ide-scsi emulation, which has sometimes caused me trouble in the
past when ripping audio (though on the 2.4.x kernels). However, today
the driver seems to have gotten totally fubared, at least for one of my
drives (a Sony DVD+/-RW model DRU-510A).
First off, I noticed that grip wouldn't rip the first track off of this
particular CD ("Together We're Heavy" by The Polyphonic Spree). I just
had grip skip the first track and it worked alright. After tracks 2-10
ripped alright, I went back and tried rippig track 1. I tried to do a
"rip partial track" operation in grip, starting at sector 0 instead of
sector 1. The terminal window I had started grip from had some messages
pop up. I tried to stop the rip, though grip didn't respond for a
while, and a few more messages printed out.
Once the rip stopped, grip no longer listed any tracks on the main
screen, and I couldn't get any information to come back up. Clicking on
the eject button in the interface didn't work either. I tried quitting
and restarting grip, but an information window saying "Error: Unable to
initialize [/dev/cdroms/cdrom1]" popped up.
I then skipped over to using my other DVD drive (a generic DVD drive:
/proc only reports "DVDROM 10X") for ripping the first track manually
with cdparanoia on the command line. That worked just fine.
Afterward, I thought I'd try removing the relevant modules and then
re-inserting them, but running "rmmod sr_mod" produced a segfault the
first time, and the second time I ran it, it gave a "Device or resource
busy" message.
So, I suppose it's a bug that nobody else will ever see, but maybe it
uncovers something important.
Relevant output from /var/log/kern.log:
Aug 29 11:01:32 3po kernel: hdd: irq timeout: status=0xd0 { Busy }
Aug 29 11:01:32 3po kernel: hdd: irq timeout: error=0xd0LastFailedSense 0x0d
Aug 29 11:01:32 3po kernel: hdd: status error: status=0x58 { DriveReady SeekComplete DataRequest }
Aug 29 11:01:32 3po kernel: hdd: status error: error=0x00
Aug 29 11:01:32 3po kernel: hdd: drive not ready for command
Aug 29 14:10:09 3po kernel: hdd: lost interrupt
Aug 29 14:10:09 3po kernel: ide-scsi: No active request in idescsi_eh_reset
Aug 29 14:10:09 3po kernel: scsi: Device offlined - not ready after error recovery: host 1 channel 0 id 8 lun 0
Aug 29 14:10:09 3po kernel: sr1: CDROM (ioctl) error, command: Read sub-channel 02 40 01 00 00 00 00 10 00
Aug 29 14:10:09 3po kernel: sr: old sense key No Sense
Aug 29 14:10:09 3po kernel: Non-extended sense class 0 code 0x0
Aug 29 14:10:20 3po kernel: scsi1 (8:0): rejecting I/O to offline device
Aug 29 14:10:26 3po kernel: scsi1 (8:0): rejecting I/O to offline device
Aug 29 14:10:26 3po kernel: SCSI error: host 1 id 8 lun 0 return code = 4000000
Aug 29 14:10:26 3po kernel: ^ISense class 0, sense error 0, extended sense 0
Aug 29 22:42:32 3po kernel: Unable to handle kernel NULL pointer dereference at virtual address 00000008
Aug 29 22:42:32 3po kernel: printing eip:
Aug 29 22:42:32 3po kernel: c018845a
Aug 29 22:42:32 3po kernel: *pde = 00000000
Aug 29 22:42:32 3po kernel: Oops: 0000 [#1]
Aug 29 22:42:32 3po kernel: PREEMPT
Aug 29 22:42:32 3po kernel: Modules linked in: lp ppp_generic slhc sg
snd_pcm_oss snd_pcm snd_page_alloc snd_timer snd_mixer_oss snd emu10k1
ipx ipv6 iptable_filter ip_tables ehci_hcd ohci_hcd emu10k1_gp btaudio
bt878 tuner msp3400 bttv video_buf i2c_algo_bit v4l2_common btcx_risc
videodev gameport via82cxxx_audio uart401 tsdev mousedev usbmouse usbhid
uhci_hcd usbcore parport_pc parport pci_hotplug amd_k7_agp agpgart evdev
ext2 eth1394 md capability commoncap via686a eeprom i2c_sensor i2c_isa
i2c_viapro i2c_core sr_mod cdrom ide_scsi sbp2 ohci1394 ieee1394 sound
soundcore ac97_codec 3c59x af_packet ext3 jbd mbcache ide_disk
ide_generic via82cxxx ide_core sd_mod ata_piix libata scsi_mod unix font
vesafb cfbcopyarea cfbimgblt cfbfillrect
Aug 29 22:42:32 3po kernel: CPU: 0
Aug 29 22:42:32 3po kernel: EIP: 0060:[del_gendisk+10/240] Not tainted
Aug 29 22:42:32 3po kernel: EFLAGS: 00210292 (2.6.7-1-k7)
Aug 29 22:42:32 3po kernel: EIP is at del_gendisk+0xa/0xf0
Aug 29 22:42:32 3po kernel: eax: 00000000 ebx: 00000000 ecx: df1b6584 edx: 00000000
Aug 29 22:42:32 3po kernel: esi: def594d8 edi: 00000000 ebp: 00000880 esp: d2987eec
Aug 29 22:42:32 3po kernel: ds: 007b es: 007b ss: 0068
Aug 29 22:42:32 3po kernel: Process rmmod (pid: 25370, threadinfo=d2986000 task=df6360d0)
Aug 29 22:42:32 3po kernel: Stack: c035c5f0 dec8645c e09c8354 def594d8 00000000 e09c5302 00000000 df1b6584
Aug 29 22:42:32 3po kernel: e09c82e4 c01ee5d4 df1b6584 df1b65ac e09c8330 e09c8330 c01ee600 df1b6584
Aug 29 22:42:32 3po kernel: e09c82e4 c02b2b60 c01ee83d e09c82e4 e09c82e4 c02b2b60 c01eecc3 e09c82e4
Aug 29 22:42:32 3po kernel: Call Trace:
Aug 29 22:42:32 3po kernel: [__crc_dquot_drop+562494/7744543] sr_remove+0x22/0x4f [sr_mod]
Aug 29 22:42:32 3po kernel: [device_release_driver+100/112] device_release_driver+0x64/0x70
Aug 29 22:42:32 3po kernel: [driver_detach+32/48] driver_detach+0x20/0x30
Aug 29 22:42:32 3po kernel: [bus_remove_driver+61/128] bus_remove_driver+0x3d/0x80
Aug 29 22:42:32 3po kernel: [driver_unregister+19/40] driver_unregister+0x13/0x28
Aug 29 22:42:32 3po kernel: [__crc_dquot_drop+566443/7744543] exit_sr+0xf/0x27 [sr_mod]
Aug 29 22:42:33 3po kernel: [sys_delete_module+300/384] sys_delete_module+0x12c/0x180
Aug 29 22:42:33 3po kernel: [do_munmap+349/432] do_munmap+0x15d/0x1b0
Aug 29 22:42:33 3po kernel: [syscall_call+7/11] syscall_call+0x7/0xb
Aug 29 22:42:33 3po kernel:
Aug 29 22:42:33 3po kernel: Code: 8b 7b 08 4f 85 ff 7e 1d 89 7c 24 04 89 1c 24 e8 92 e8 06 00
[root@3po][~]# lsmod
Module Size Used by
lp 10948 0
ppp_generic 29908 0
slhc 7936 1 ppp_generic
sg 38688 0
snd_pcm_oss 54312 0
snd_pcm 97508 1 snd_pcm_oss
snd_page_alloc 11720 1 snd_pcm
snd_timer 25540 1 snd_pcm
snd_mixer_oss 19904 1 snd_pcm_oss
snd 56932 4 snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
emu10k1 83588 3
ipx 29548 0
ipv6 253024 10
iptable_filter 2944 0
ip_tables 18304 1 iptable_filter
ehci_hcd 31300 0
ohci_hcd 21444 0
emu10k1_gp 3648 0
btaudio 17360 0
bt878 11632 0
tuner 18380 0
msp3400 24148 0
bttv 152300 1 bt878
video_buf 21252 1 bttv
i2c_algo_bit 9800 1 bttv
v4l2_common 6208 1 bttv
btcx_risc 4808 1 bttv
videodev 9984 1 bttv
gameport 4736 1 emu10k1_gp
via82cxxx_audio 30152 2
uart401 11844 1 via82cxxx_audio
tsdev 7360 0
mousedev 10444 2
usbmouse 5696 0
usbhid 32576 0
uhci_hcd 32592 0
usbcore 113952 7 ehci_hcd,ohci_hcd,usbmouse,usbhid,uhci_hcd
parport_pc 34944 1
parport 41544 2 lp,parport_pc
pci_hotplug 34352 0
amd_k7_agp 7820 1
agpgart 33960 1 amd_k7_agp
evdev 9536 0
ext2 72296 0
eth1394 21192 0
md 49416 0
capability 4616 0
commoncap 7232 1 capability
via686a 19656 0
eeprom 7816 0
i2c_sensor 2944 2 via686a,eeprom
i2c_isa 2048 0
i2c_viapro 7116 0
i2c_core 24020 9
tuner,msp3400,bttv,i2c_algo_bit,via686a,eeprom,i2c_sensor,i2c_isa,i2c_viapro
sr_mod 17892 0
cdrom 39904 1 sr_mod
ide_scsi 17348 4294967295
sbp2 24328 0
ohci1394 35588 0
ieee1394 111288 3 eth1394,sbp2,ohci1394
sound 83372 3 emu10k1,via82cxxx_audio,uart401
soundcore 10400 11 snd,emu10k1,btaudio,bttv,via82cxxx_audio,sound
ac97_codec 18700 2 emu10k1,via82cxxx_audio
3c59x 38760 0
af_packet 22408 4
ext3 126760 4
jbd 61592 1 ext3
mbcache 9220 2 ext2,ext3
ide_disk 19264 8
ide_generic 1472 0
via82cxxx 14044 1
ide_core 141592 4 ide_scsi,ide_disk,ide_generic,via82cxxx
sd_mod 21696 0
ata_piix 8004 0
libata 41412 1 ata_piix
scsi_mod 124556 6 sg,sr_mod,ide_scsi,sbp2,sd_mod,libata
unix 28528 520
font 8448 0
vesafb 6688 0
cfbcopyarea 3776 1 vesafb
cfbimgblt 3072 1 vesafb
cfbfillrect 3712 1 vesafb
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (988, 'testing'), (499, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-k7
Locale: LANG=C, LC_CTYPE=C
Versions of packages kernel-image-2.6.7-1-k7 depends on:
ii coreutils [fileutils] 5.2.1-2 The GNU core utilities
ii fileutils 5.2.1-2 The GNU file management utilities
ii initrd-tools 0.1.73 tools to create initrd image for p
ii module-init-tools 3.1-pre5-6 tools for managing Linux kernel mo
-- no debconf information
Reply to: