[Bug 1886] New: Disconnecting scanner produces kernel oops

From: Martin J. Bligh (mbligh_at_aracnet.com)
Date: 01/16/04

  • Next message: Pavel Machek: "Re: KGDB 2.0.3 with fixes and development in ethernet interface"
    Date:	Fri, 16 Jan 2004 08:14:27 -0800
    To: linux-kernel <linux-kernel@vger.kernel.org>
    
    

    http://bugme.osdl.org/show_bug.cgi?id=1886

               Summary: Disconnecting scanner produces kernel oops
        Kernel Version: 2.6.1
                Status: NEW
              Severity: normal
                 Owner: greg@kroah.com
             Submitter: galen@starline.ee

    Distribution: Debian Unstable
    Hardware Environment: chaintech 7aja, via kt133 chips, usb uchi
    Software Environment: Debian Unstable, gcc version 3.3.3 20040110 (prerelease)
    (Debian)

    Problem Description: Working with obsoleted usb scanner module works fine
    (scanner not supported by sane, so cant use usblib), until I disconnect scanner.
    Then I get kernel oops (below) and cannot unload the module, even with with
    force flag. After that, cat /proc/modules hangs too, and to get things working
    again I have to boot :(

     usb 1-2: USB disconnect, address 2
     Unable to handle kernel NULL pointer dereference at virtual address 0000001e
      printing eip:
     e089d0cc
     *pde = 00000000
     Oops: 0000 [#1]
     CPU: 0
     EIP: 0060:[_end+540430148/1068260984] Not tainted
     EFLAGS: 00010282
     EIP is at disconnect_scanner+0x2c/0x6d [scanner]
     eax: dfce73c0 ebx: dfce73d4 ecx: e089d0a0 edx: dfd67800
     esi: 00000000 edi: dd0f7168 ebp: e08a0bfc esp: dfdf1e50
     ds: 007b es: 007b ss: 0068
     Process khubd (pid: 5, threadinfo=dfdf0000 task=c151c040)
     Stack: dfce73c0 e08a0c78 dfce73c0 e08a0ce0 c02fcb5b dfce73c0 dfce73c0 dfce7400
            dfce73d4 e08a0d00 c028c494 dfce73d4 dfce7400 dd0f717c dd0f7140 e089ca4f
            dfce73d4 dfce73c0 dd0f717c e08a0c0c 00000000 00000000 c0235538 dd0f717c
     Call Trace:
      [usb_unbind_interface+123/128] usb_unbind_interface+0x7b/0x80
      [device_release_driver+100/112] device_release_driver+0x64/0x70
      [_end+540428487/1068260984] destroy_scanner+0x4f/0xb0 [scanner]
      [kobject_cleanup+152/160] kobject_cleanup+0x98/0xa0
      [usb_unbind_interface+123/128] usb_unbind_interface+0x7b/0x80
      [device_release_driver+100/112] device_release_driver+0x64/0x70
      [bus_remove_device+85/160] bus_remove_device+0x55/0xa0
      [device_del+93/160] device_del+0x5d/0xa0
      [usb_disable_device+111/176] usb_disable_device+0x6f/0xb0
      [usb_disconnect+150/224] usb_disconnect+0x96/0xe0
      [hub_port_connect_change+783/800] hub_port_connect_change+0x30f/0x320
      [hub_port_status+67/176] hub_port_status+0x43/0xb0
      [hub_events+714/832] hub_events+0x2ca/0x340
      [hub_thread+45/240] hub_thread+0x2d/0xf0
      [ret_from_fork+6/20] ret_from_fork+0x6/0x14
      [default_wake_function+0/32] default_wake_function+0x0/0x20
      [hub_thread+0/240] hub_thread+0x0/0xf0
      [kernel_thread_helper+5/12] kernel_thread_helper+0x5/0xc

     Code: 80 7e 1e 00 75 2e 85 f6 74 17 8d 46 3c 8b 5c 24 08 8b 74 24

    Steps to reproduce:

    Compile kernel with usb and usbscanner support, swich scanner on, swich scanner off.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Pavel Machek: "Re: KGDB 2.0.3 with fixes and development in ethernet interface"

    Relevant Pages

    • Ive just installed SuSE 8.2 and its not recognising my Alcatel
      ... SpeedTouch USB Modem. ... Do I need to patch the kernel or pppd? ...
      (alt.os.linux.suse)
    • Re: my kernel sometimes did a crash, but no panic
      ... 00:09.0 USB Controller: VIA Technologies, ... Aug 8 23:56:56 o kernel: Symbols match kernel version 2.6.11. ... Aug 8 23:57:00 o kernel: Using ACPI for SMP configuration ...
      (Linux-Kernel)
    • tracking down kernel-panic cause?
      ... USB 2 card and an internal drive. ... aforementioned kernel panic. ... PCI: PCI BIOS revision 2.10 entry at 0xfdb01, ... PCI: Using IRQ router SIS at 00:02.0 ...
      (Debian-User)
    • Re: sane-plustek backend does not work
      ... ">it is USB scanner. ... ">after that I compile sane-backend port ... when I attach the scanner I can see: ... " If it does have that line, try a kernel recompile and reinstall again. ...
      (freebsd-questions)
    • 2,6.26-rc4-git2 - long pause during boot
      ... 46e4fd28cc537ba700eb4f5652abf043fed4d76d M drivers ... The config file for that kernel is attached as are the kernel log for booting ... when I plug a usb storage device in. ... # SCSI device support ...
      (Linux-Kernel)