Bug#744994: linux-image-3.13-1-amd64: segfault on use of external (usb) dvdrw
Control: tag -1 - moreinfo Control: tag -1 upstream Control: severity -1 normal Control: clone -1 -2 Control: retitle -1 WARNING on reload of sr_mod Control: forwarded -1 http://thread.gmane.org/gmane.linux.kernel/1469680 Control: retitle -2 WARNING on removal of SCSI device which is still in use Control: tag -2 patch On Fri, 2014-04-18 at 13:08 +0100, Luke Kenneth Casson Leighton wrote: On Thu, Apr 17, 2014 at 1:24 PM, Ben Hutchings b...@decadent.org.uk wrote: Control: tag -1 moreinfo On Thu, 2014-04-17 at 09:46 +0100, root wrote: Package: src:linux Version: 3.13.7-1 Severity: important -- Package-specific info: ** Version: Linux version 3.13-1-amd64 (debian-ker...@lists.debian.org) (gcc version 4.8.2 (Debian 4.8.2-16) ) #1 SMP Debian 3.13.7-1 (2014-03-25) ** Command line: BOOT_IMAGE=/vmlinuz-3.13-1-amd64 root=/dev/mapper/pc-root ro ** Tainted: PWO (4609) * Proprietary module has been loaded. * Taint on warning. * Out-of-tree module has been loaded. ** Kernel log: Apr 17 09:42:12 teenymac kernel: [1202533.365163] sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray Apr 17 09:42:12 teenymac kernel: [1202533.365187] cdrom: Uniform CD-ROM driver Revision: 3.20 Apr 17 09:42:12 teenymac kernel: [1202533.365355] [ cut here ] Apr 17 09:42:12 teenymac kernel: [1202533.365363] WARNING: CPU: 0 PID: 14387 at /build/linux-oxWk_8/linux-3.13.7/block/blk-core.c:457 blk_queue_bypass_end+0x54/0x60() I see a WARNING here but not the segfault. Was there actually a segfault in addition to this? Apr 17 09:42:12 teenymac kernel: [1202533.365364] Modules linked in: sr_mod(+) cdrom nls_cp437 vfat fat nls_utf8 isofs usb_storage b43 ctr ccm snd_seq_dummy adm1021 nouveau mxm_wmi wmi ttm drm_kms_helper drm i2c_algo_bit snd_hrtimer ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables parport_pc ppdev lp parport 8021q garp stp mrp cpufreq_stats speedstep_lib binfmt_misc cpufreq_userspace cpufreq_powersave cpufreq_conservative uinput nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc appletalk ipx p8023 p8022 psnap llc rose netrom ax25 tun firewire_sbp2 loop fuse arc4 snd_usb_audio bcma mac80211 snd_usbmidi_lib snd_hda_codec_realtek snd_seq_midi cfg80211 uvcvideo snd_seq_midi_event videobuf2_vmalloc videobuf2_memops ftdi_sio iTCO_wdt iTCO_vendor_support snd_hda_intel rfkill snd_hda_codec joydev videobuf2_core snd_rawmidi snd_hwdep applesmc usbserial snd_pcm hid_appleir hid_generic evdev input_polldev lpc_ich mfd_core i2c_i801 videodev media snd_page_alloc i2c_core usbhid hid Apr 17 09:42:12 teenymac kernel: coretemp acpi_cpufreq rng_core processor snd_seq snd_seq_device snd_timer apple_bl snd kvm_intel kvm video thermal_sys soundcore button ext4 crc16 mbcache jbd2 dm_mod sd_mod crc_t10dif crct10dif_common ata_generic firewire_ohci ata_piix firewire_core crc_itu_t ehci_pci uhci_hcd ehci_hcd ssb mmc_core pcmcia pcmcia_core libata scsi_mod usbcore usb_common [last unloaded: cdrom] [...] I notice you unloaded the cdrom module previously. Did you remove and reinsert any other modules? Did you remove and reattach the drive? sorry ben it appears that somehow cut/paste didn't get everything, here's a bit more (attached). no no other modules. I can *see* sr_mod being reinserted and I *know* you couldn't remove cdrom without first removing sr_mod. yes remove and reattach the drive. yes use a disk that hadn't burned properly. The attached log shows two different WARNINGs. Here's what I *think* is happening: Apr 17 09:24:08 teenymac kernel: [1201449.213969] usb 2-5: USB disconnect, device number 18 Drive removed. Apr 17 09:24:08 teenymac laptop-mode: Laptop mode Apr 17 09:24:08 teenymac laptop-mode: enabled, not active Apr 17 09:24:08 teenymac laptop-mode: Laptop mode Apr 17 09:24:08 teenymac laptop-mode: enabled, not active Apr 17 09:30:01 teenymac kernel: [1201802.449248] cdrom: This disc doesn't have any tracks I recognize! Apr 17 09:30:02 teenymac kernel: [1201802.581292] sr 0:0:0:0: [sr0] Apr 17 09:30:02 teenymac kernel: [1201802.581309] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Apr 17 09:30:02 teenymac kernel: [1201802.581311] sr 0:0:0:0: [sr0] Apr 17 09:30:02 teenymac kernel: [1201802.581313] Sense Key : Illegal Request [current] Apr 17 09:30:02 teenymac kernel: [1201802.581317] sr 0:0:0:0: [sr0] Apr 17 09:30:02 teenymac kernel: [1201802.581319] Add. Sense: Logical block address out of range Apr 17 09:30:02 teenymac kernel: [1201802.581321] sr 0:0:0:0: [sr0] CDB: Apr 17 09:30:02 teenymac kernel: [1201802.581323] Read(10): 28 00 00 00 00 00 00 00 01 00 I don't understand why there is attempted I/O to a device that was physically removed 6 minutes earlier! Maybe something has kept the block device open, but no other processes should be allowed to open it.
Bug#744994: linux-image-3.13-1-amd64: segfault on use of external (usb) dvdrw
On Fri, Apr 18, 2014 at 2:11 PM, Ben Hutchings b...@decadent.org.uk wrote: Apr 17 09:24:08 teenymac kernel: [1201449.213969] usb 2-5: USB disconnect, device number 18 Drive removed. yes. bit of a melt-down on another USB hub, i had to unplug it (and the attached nothing-to-do-with-the-USB-DVD-drive USB hub). Apr 17 09:30:02 teenymac kernel: [1201802.581323] Read(10): 28 00 00 00 00 00 00 00 01 00 I don't understand why there is attempted I/O to a device that was physically removed 6 minutes earlier! Maybe something has kept the block device open, but no other processes should be allowed to open it. there aren't any. i'm running fvwm, and commands are run explicity. i usually use curses-based tools, explicitly typed from the command line in an xterm. so there's no gnome or kde or any kind of file managers, file commanders, nothing. nothing that could be f**g around without my knowledge or permission, and that's the way i like it :) the only other thing is: there is actually a built-in CD/DVD drive, listed as /dev/cdrom1 (not /dev/cdrom), so the USB device came up as /dev/cdrom11 - all a bit weird, but hey. Apr 17 09:33:07 teenymac kernel: [1201988.327917] sr1: scsi3-mmc drive: 62x/24x writer dvd-ram cd/rw xa/form2 cdda tray Apr 17 09:33:07 teenymac kernel: [1201988.328255] sr 9:0:0:0: Attached scsi CD-ROM sr1 Drive reattached. Note it's now 'sr1', as 'sr0' seems to still be hanging around. or it might have been the other DVD drive (apologies i might have given you too much kmesg with not enough context). so sr0 is the internal DVD writer, sr1 is the external (USB) one. This looks similar to (though not quite the same as) https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1283604 which is supposed to be fixed in 3.15. The fixes might get into Debian sooner than that, although James Bottomley recommended waiting some time to see if this causes regressions in 3.15. ok [snip] More attempted I/O to 'sr0' which was supposed to be removed 15 minutes ago. probably the internal DVD Apr 17 09:42:12 teenymac kernel: [1202533.365582] sr 0:0:0:0: Attached scsi CD-ROM sr0 [...] sr_mod module reinserted, tries to re-register the block queue for sr0. unf?? ok so that's definitely happening on the internal drive, not the external one. l. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#744994: linux-image-3.13-1-amd64: segfault on use of external (usb) dvdrw
On Fri, 2014-04-18 at 17:30 +0100, Luke Kenneth Casson Leighton wrote: On Fri, Apr 18, 2014 at 2:11 PM, Ben Hutchings b...@decadent.org.uk wrote: [...] the only other thing is: there is actually a built-in CD/DVD drive, listed as /dev/cdrom1 (not /dev/cdrom), so the USB device came up as /dev/cdrom11 - all a bit weird, but hey. Apr 17 09:33:07 teenymac kernel: [1201988.327917] sr1: scsi3-mmc drive: 62x/24x writer dvd-ram cd/rw xa/form2 cdda tray Apr 17 09:33:07 teenymac kernel: [1201988.328255] sr 9:0:0:0: Attached scsi CD-ROM sr1 Drive reattached. Note it's now 'sr1', as 'sr0' seems to still be hanging around. or it might have been the other DVD drive (apologies i might have given you too much kmesg with not enough context). so sr0 is the internal DVD writer, sr1 is the external (USB) one. [...] Ah, that makes much more sense. Ben. -- Ben Hutchings Lowery's Law: If it jams, force it. If it breaks, it needed replacing anyway. signature.asc Description: This is a digitally signed message part
Bug#744994: linux-image-3.13-1-amd64: segfault on use of external (usb) dvdrw
Control: tag -1 moreinfo On Thu, 2014-04-17 at 09:46 +0100, root wrote: Package: src:linux Version: 3.13.7-1 Severity: important -- Package-specific info: ** Version: Linux version 3.13-1-amd64 (debian-ker...@lists.debian.org) (gcc version 4.8.2 (Debian 4.8.2-16) ) #1 SMP Debian 3.13.7-1 (2014-03-25) ** Command line: BOOT_IMAGE=/vmlinuz-3.13-1-amd64 root=/dev/mapper/pc-root ro ** Tainted: PWO (4609) * Proprietary module has been loaded. * Taint on warning. * Out-of-tree module has been loaded. ** Kernel log: Apr 17 09:42:12 teenymac kernel: [1202533.365163] sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray Apr 17 09:42:12 teenymac kernel: [1202533.365187] cdrom: Uniform CD-ROM driver Revision: 3.20 Apr 17 09:42:12 teenymac kernel: [1202533.365355] [ cut here ] Apr 17 09:42:12 teenymac kernel: [1202533.365363] WARNING: CPU: 0 PID: 14387 at /build/linux-oxWk_8/linux-3.13.7/block/blk-core.c:457 blk_queue_bypass_end+0x54/0x60() I see a WARNING here but not the segfault. Was there actually a segfault in addition to this? Apr 17 09:42:12 teenymac kernel: [1202533.365364] Modules linked in: sr_mod(+) cdrom nls_cp437 vfat fat nls_utf8 isofs usb_storage b43 ctr ccm snd_seq_dummy adm1021 nouveau mxm_wmi wmi ttm drm_kms_helper drm i2c_algo_bit snd_hrtimer ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables parport_pc ppdev lp parport 8021q garp stp mrp cpufreq_stats speedstep_lib binfmt_misc cpufreq_userspace cpufreq_powersave cpufreq_conservative uinput nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc appletalk ipx p8023 p8022 psnap llc rose netrom ax25 tun firewire_sbp2 loop fuse arc4 snd_usb_audio bcma mac80211 snd_usbmidi_lib snd_hda_codec_realtek snd_seq_midi cfg80211 uvcvideo snd_seq_midi_event videobuf2_vmalloc videobuf2_memops ftdi_sio iTCO_wdt iTCO_vendor_support snd_hda_intel rfkill snd_hda_codec joydev videobuf2_core snd_rawmidi snd_hwdep applesmc usbserial snd_pcm hid_appleir hid_generic evdev input_polldev lpc_ich mfd_core i2c_i801 videodev media snd_page_alloc i2c_core usbhid hid Apr 17 09:42:12 teenymac kernel: coretemp acpi_cpufreq rng_core processor snd_seq snd_seq_device snd_timer apple_bl snd kvm_intel kvm video thermal_sys soundcore button ext4 crc16 mbcache jbd2 dm_mod sd_mod crc_t10dif crct10dif_common ata_generic firewire_ohci ata_piix firewire_core crc_itu_t ehci_pci uhci_hcd ehci_hcd ssb mmc_core pcmcia pcmcia_core libata scsi_mod usbcore usb_common [last unloaded: cdrom] [...] I notice you unloaded the cdrom module previously. Did you remove and reinsert any other modules? Did you remove and reattach the drive? Ben. -- Ben Hutchings If God had intended Man to program, we'd have been born with serial I/O ports. signature.asc Description: This is a digitally signed message part