[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#762783: ftdi_sio: kernel OOPS, ftdi_sio_port_probe+0x2dc/0x43a



Package: src:linux
Version: 3.2.60-1+deb7u3
Severity: important
Tags: upstream

Trying to load ftdi_sio triggers a kernel crash:
$ modprobe ftdi_sio vendor=0x0421 product=0x0264

The context:
I intend to use wine to "emulate" a windows binary in order to learn
about the USB protocol of by an USB device.
The windows binary makes use of the ftd2xx.dll which is not natively
implemented by wine but for which the couple (libftd2xx + ftdi_sio)
can do the trick.

The first step is thus loading the ftdi_sio module using adequate
vendor/product numbers. Whatever devices are plugged in the machine, I
wouldn't expect ftdi_sio to crash.
syslog follows:


-- Package-specific info:
** Kernel log: boot messages should be attached
Sep 25 02:48:53 janitor kernel: [ 1664.615275] usbcore: registered new interface driver usbserial
Sep 25 02:48:53 janitor kernel: [ 1664.615313] USB Serial support registered for generic
Sep 25 02:48:53 janitor kernel: [ 1664.615530] usbcore: registered new interface driver usbserial_generic
Sep 25 02:48:53 janitor kernel: [ 1664.615536] usbserial: USB Serial Driver core
Sep 25 02:48:53 janitor kernel: [ 1664.620281] USB Serial support registered for FTDI USB Serial Device
Sep 25 02:48:53 janitor kernel: [ 1664.620404] ftdi_sio 1-2:1.0: FTDI USB Serial Device converter detected
Sep 25 02:48:53 janitor kernel: [ 1664.620509] usb 1-2: Detected FT2232C
Sep 25 02:48:53 janitor kernel: [ 1664.620514] usb 1-2: Number of endpoints 3
Sep 25 02:48:53 janitor kernel: [ 1664.620518] usb 1-2: Endpoint 1 MaxPacketSize 64
Sep 25 02:48:53 janitor kernel: [ 1664.620522] usb 1-2: Endpoint 2 MaxPacketSize 64
Sep 25 02:48:53 janitor kernel: [ 1664.620526] usb 1-2: Endpoint 3 MaxPacketSize 64
Sep 25 02:48:53 janitor kernel: [ 1664.620530] usb 1-2: Setting MaxPacketSize 64
Sep 25 02:48:53 janitor kernel: [ 1664.625526] usb 1-2: FTDI USB Serial Device converter now attached to ttyUSB0
Sep 25 02:48:53 janitor kernel: [ 1664.625621] ftdi_sio 1-2:1.1: FTDI USB Serial Device converter detected
Sep 25 02:48:53 janitor kernel: [ 1664.625713] usb 1-2: Detected FT2232C
Sep 25 02:48:53 janitor kernel: [ 1664.625717] usb 1-2: Number of endpoints 0
Sep 25 02:48:53 janitor kernel: [ 1664.626289] *pdpt = 000000001916c001 *pde = 0000000000000000 
Sep 25 02:48:53 janitor kernel: [ 1664.626590] Modules linked in: ftdi_sio(+) usbserial usbmon bluetooth rfkill xts gf128mul mperf speedstep_lib cpufreq_userspace cpufreq_powersave cpufreq_stats cpufreq_conservative xt_multiport iptable_filter ip_tables x_tables nfnetlink_log nfnetlink uinput deflate zlib_deflate ctr twofish_generic twofish_i586 twofish_common camellia serpent blowfish_generic blowfish_common cast5 des_generic xcbc rmd160 sha512_generic sha1_generic hmac crypto_null af_key fuse clip atm sha256_generic cryptd aes_i586 aes_generic cbc loop dm_crypt snd_ali5451 snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_page_alloc snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq radeon snd_seq_device snd_timer snd ttm i2c_ali15x3 pcmcia joydev soundcore drm_kms_helper i2c_ali1535 drm i2c_algo_bit yenta_socket pcmcia_rsrc evdev ac97_bus alim1535_wdt parport_pc parport i2c_core video psmouse serio_raw pcmcia_core shpchp battery container processor button ac power_supply ext4 crc16 jbd2 mbcache dm_mirror d
Sep 25 02:48:53 janitor kernel: m_region_hash dm_log dm_mod microcode sg sr_mod sd_mod crc_t10dif cdrom ata_generic pata_ali libata scsi_mod natsemi thermal thermal_sys ohci_hcd ehci_hcd usbcore usb_common [last unloaded: mii]
Sep 25 02:48:53 janitor kernel: [ 1664.629266] 
Sep 25 02:48:53 janitor kernel: [ 1664.629266] Pid: 8492, comm: modprobe Not tainted 3.2.0-4-686-pae #1 Debian 3.2.60-1+deb7u3 Hewlett-Packard         Presario 2100 (DM554A)   /002A                   
Sep 25 02:48:53 janitor kernel: [ 1664.629266] EIP: 0060:[<dcec8b16>] EFLAGS: 00010246 CPU: 0
Sep 25 02:48:53 janitor kernel: [ 1664.629266] EIP is at ftdi_sio_port_probe+0x2dc/0x43a [ftdi_sio]
Sep 25 02:48:53 janitor kernel: [ 1664.629266] EAX: 00000034 EBX: 00000000 ECX: da459c84 EDX: 0000002c
Sep 25 02:48:53 janitor kernel: [ 1664.629266] ESI: d9e43c00 EDI: db164464 EBP: d83caa00 ESP: da459ccc
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  00000010 d9754c00 d9919300 d9e43d24 00000000 d86ca0e0 0000002c d9919300
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  d9e43c00 00000000 d9e43d24 dcecda88 dca0a7b2 d9e43d24 ffffffed dcecda9c
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  00000000 c11f5c3f d9e43d24 d9e43d24 dca0d1e8 c11f4c21 da5de0ec d9751338
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<dca0a7b2>] ? usb_serial_device_probe+0x34/0x94 [usbserial]
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11f5c3f>] ? driver_probe_device+0x8c/0x10c
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11f4c21>] ? bus_for_each_drv+0x37/0x60
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11f5b82>] ? device_attach+0x58/0x74
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11f5d1a>] ? __driver_attach+0x5b/0x5b
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11f5589>] ? bus_probe_device+0x1f/0x74
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11f40d5>] ? device_add+0x388/0x4e7
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11678cb>] ? kvasprintf+0x33/0x3b
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c115fc18>] ? kobject_set_name_vargs+0x44/0x4a
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<dca09bda>] ? usb_serial_probe+0xbfe/0xc7c [usbserial]
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c115efad>] ? ida_get_new_above+0xd8/0x166
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11fbb88>] ? rpm_resume+0x382/0x3bc
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c1112465>] ? __sysfs_add_one+0x7a/0x9b
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c1112206>] ? sysfs_addrm_finish+0x13/0x79
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c105dd2d>] ? arch_local_irq_save+0xf/0x14
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c12c4cc6>] ? _raw_spin_unlock_irqrestore+0xb/0xc
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c105dd2d>] ? arch_local_irq_save+0xf/0x14
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c12c4c90>] ? _raw_spin_lock_irqsave+0x8/0x21
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<dc7c0ecc>] ? usb_probe_interface+0xcd/0x12d [usbcore]
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11f5cbf>] ? driver_probe_device+0x10c/0x10c
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11f5c3f>] ? driver_probe_device+0x8c/0x10c
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11f5cff>] ? __driver_attach+0x40/0x5b
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11f4c85>] ? bus_for_each_dev+0x3b/0x5d
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11f59e3>] ? driver_attach+0x14/0x17
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11f5cbf>] ? driver_probe_device+0x10c/0x10c
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11f5714>] ? bus_add_driver+0x86/0x1af
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c115ff37>] ? kset_find_obj_hinted+0x4c/0x8d
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c11f606e>] ? driver_register+0x73/0xc6
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<dc7c03e0>] ? usb_register_driver+0x5c/0xf6 [usbcore]
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<dced0000>] ? 0xdcecffff
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<dced0000>] ? 0xdcecffff
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<dced0086>] ? ftdi_init+0x86/0x1000 [ftdi_sio]
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c1003074>] ? do_one_initcall+0x66/0x10e
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<dced0000>] ? 0xdcecffff
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c1061a26>] ? sys_init_module+0x14c0/0x1677
Sep 25 02:48:53 janitor kernel: [ 1664.629266]  [<c12c955f>] ? sysenter_do_call+0x12/0x16
Sep 25 02:48:53 janitor kernel: [ 1664.817431] ---[ end trace d68b03befba9a776 ]---
Sep 25 02:49:19 janitor kernel: [ 1690.894954] SysRq : Emergency Sync


** Model information
according to reportbug: not available
according to the owner: Presario 2100

** PCI devices:
00:00.0 Host bridge [0600]: Advanced Micro Devices [AMD] nee ATI RS200/RS200M AGP Bridge [IGP 340M] [1002:cab2] (rev 02)
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64
	Region 0: Memory at d4000000 (32-bit, prefetchable) [size=64M]
	Region 1: Memory at d0005000 (32-bit, prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: agpgart-ati

00:01.0 PCI bridge [0604]: Advanced Micro Devices [AMD] nee ATI PCI Bridge [IGP 340M] [1002:7010] (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 99
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=68
	I/O behind bridge: 00009000-00009fff
	Memory behind bridge: d0300000-d03fffff
	Prefetchable memory behind bridge: d8000000-dfffffff
	Secondary status: 66MHz+ FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA+ VGA+ MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-

00:02.0 USB controller [0c03]: ULi Electronics Inc. USB 1.1 Controller [10b9:5237] (rev 03) (prog-if 10 [OHCI])
	Subsystem: Hewlett-Packard Company Device [103c:002a]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64 (20000ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 10
	Region 0: Memory at d0000000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: ohci_hcd

00:06.0 Multimedia audio controller [0401]: ULi Electronics Inc. M5451 PCI AC-Link Controller Audio Device [10b9:5451] (rev 02)
	Subsystem: Hewlett-Packard Company Device [103c:002a]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR+ <PERR+ INTx-
	Latency: 64 (500ns min, 6000ns max)
	Interrupt: pin A routed to IRQ 5
	Region 0: I/O ports at 1000 [size=256]
	Region 1: Memory at d0001000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: snd_ali5451

00:07.0 ISA bridge [0601]: ULi Electronics Inc. M1533/M1535/M1543 PCI to ISA Bridge [Aladdin IV/V/V+] [10b9:1533]
	Subsystem: ULi Electronics Inc. ALi M1533 Aladdin IV/V ISA Bridge [10b9:1533]
	Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Capabilities: <access denied>

00:08.0 Modem [0703]: ULi Electronics Inc. M5457 AC'97 Modem Controller [10b9:5457] (prog-if 00 [Generic])
	Subsystem: Hewlett-Packard Company Device [103c:002a]
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Interrupt: pin A routed to IRQ 10
	Region 0: Memory at d0002000 (32-bit, non-prefetchable) [size=4K]
	Region 1: I/O ports at 1400 [size=256]
	Capabilities: <access denied>

00:0a.0 CardBus bridge [0607]: O2 Micro, Inc. OZ601/6912/711E0 CardBus/SmartCardBus Controller [1217:6972]
	Subsystem: Hewlett-Packard Company Device [103c:002a]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 168
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at d0003000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=00, secondary=02, subordinate=05, sec-latency=176
	Memory window 0: 34000000-37ffffff (prefetchable)
	Memory window 1: 30000000-33ffffff
	I/O window 0: 00001c00-00001cff
	I/O window 1: 00001800-000018ff
	BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt+ PostWrite+
	16-bit legacy interface ports at 0001
	Kernel driver in use: yenta_cardbus

00:10.0 IDE interface [0101]: ULi Electronics Inc. M5229 IDE [10b9:5229] (rev c4) (prog-if fa)
	Subsystem: Hewlett-Packard Company Device [103c:002a]
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 32 (500ns min, 1000ns max)
	Interrupt: pin A routed to IRQ 0
	Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
	Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
	Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
	Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
	Region 4: I/O ports at 2000 [size=16]
	Capabilities: <access denied>
	Kernel driver in use: pata_ali

00:11.0 Bridge [0680]: ULi Electronics Inc. M7101 Power Management Controller [PMU] [10b9:7101]
	Subsystem: Hewlett-Packard Company Device [103c:002a]
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Kernel driver in use: ali1535_smbus

00:12.0 Ethernet controller [0200]: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller [100b:0020]
	Subsystem: Hewlett-Packard Company Device [103c:002a]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 90 (2750ns min, 13000ns max)
	Interrupt: pin A routed to IRQ 10
	Region 0: I/O ports at 2400 [size=256]
	Region 1: Memory at d0004000 (32-bit, non-prefetchable) [size=4K]
	[virtual] Expansion ROM at 2c000000 [disabled] [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: natsemi

01:05.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI RS200 [Radeon IGP330M/340M/350M] [1002:4337] (prog-if 00 [VGA controller])
	Subsystem: Hewlett-Packard Company Device [103c:002a]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B+ DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 66 (2000ns min), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 10
	Region 0: Memory at d8000000 (32-bit, prefetchable) [size=128M]
	Region 1: I/O ports at 9000 [size=256]
	Region 2: Memory at d0300000 (32-bit, non-prefetchable) [size=64K]
	[virtual] Expansion ROM at d0320000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: radeon


** USB devices:
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0421:0264 Nokia Mobile Phones 


-- System Information:
Debian Release: 7.6
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (90, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-image-3.2.0-4-486 depends on:
ii  debconf [debconf-2.0]                   1.5.49
ii  initramfs-tools [linux-initramfs-tool]  0.109.1
ii  kmod                                    9-3
ii  linux-base                              3.5
ii  module-init-tools                       9-3

Versions of packages linux-image-3.2.0-4-486 recommends:
ii  firmware-linux-free  3.2

Versions of packages linux-image-3.2.0-4-486 suggests:
pn  debian-kernel-handbook  <none>
ii  grub-pc                 1.99-27+deb7u2
pn  linux-doc-3.2           <none>

Versions of packages linux-image-3.2.0-4-486 is related to:
pn  firmware-atheros        <none>
pn  firmware-bnx2           <none>
pn  firmware-bnx2x          <none>
pn  firmware-brcm80211      <none>
pn  firmware-intelwimax     <none>
pn  firmware-ipw2x00        <none>
pn  firmware-ivtv           <none>
pn  firmware-iwlwifi        <none>
pn  firmware-libertas       <none>
ii  firmware-linux          0.36+wheezy.1
ii  firmware-linux-nonfree  0.36+wheezy.1
pn  firmware-myricom        <none>
pn  firmware-netxen         <none>
pn  firmware-qlogic         <none>
ii  firmware-ralink         0.36+wheezy.1
pn  firmware-realtek        <none>
pn  xen-hypervisor          <none>

-- debconf information:
* linux-image-3.2.0-4-486/postinst/missing-firmware-3.2.0-4-486:
  linux-image-3.2.0-4-486/postinst/ignoring-ramdisk:
  linux-image-3.2.0-4-486/prerm/removing-running-kernel-3.2.0-4-486: true
  linux-image-3.2.0-4-486/postinst/depmod-error-initrd-3.2.0-4-486: false


Reply to: