Bug caused by the ftdi-sio driver

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

 



The following messages were displayed right after I connected a FT2232H
based dongle to the system. Shortly after that the system became
unresponsive and I had to hard-reset it.

Feb  1 14:43:02 WZLap kernel: [ 9351.696424] usb 4-1.3: new high-speed
USB device number 26 using ehci_hcd
Feb  1 14:43:02 WZLap kernel: [ 9351.784301] usb 4-1.3: New USB device
found, idVendor=0403, idProduct=6010
Feb  1 14:43:02 WZLap kernel: [ 9351.784307] usb 4-1.3: New USB device
strings: Mfr=1, Product=2, SerialNumber=3
Feb  1 14:43:02 WZLap kernel: [ 9351.784310] usb 4-1.3: SerialNumber:
FTV6ID2D
Feb  1 14:43:02 WZLap mtp-probe: checking bus 4, device 26:
"/sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.3"
Feb  1 14:43:02 WZLap mtp-probe: bus: 4, device: 26 was not an MTP device
Feb  1 14:43:02 WZLap kernel: [ 9351.902786] usbcore: registered new
interface
driver usbserial
Feb  1 14:43:02 WZLap kernel: [ 9351.902821] USB Serial support
registered for
generic
Feb  1 14:43:02 WZLap kernel: [ 9351.902910] usbcore: registered new
interface
driver usbserial_generic
Feb  1 14:43:02 WZLap kernel: [ 9351.902917] usbserial: USB Serial
Driver core
Feb  1 14:43:02 WZLap kernel: [ 9351.905254] USB Serial support
registered for
FTDI USB Serial Device
Feb  1 14:43:02 WZLap kernel: [ 9351.905500] PGD 1b1965067 PUD 1fdb82067
PMD 0
Feb  1 14:43:02 WZLap kernel: [ 9351.905610] CPU 1
Feb  1 14:43:02 WZLap kernel: [ 9351.905645] Modules linked in: ftdi_sio(+)
usbserial isofs hidp hid ebtable_nat ebtables acpi_cpufreq mperf tun
cpufreq_conservative cpufreq_userspace cpufreq_stats cpufreq_powersave ipx
p8023 parport_pc ppdev lp parport rfcomm bnep binfmt_misc uinput fuse
nfsd nfs
lockd fscache auth_rpcgss nfs_acl sunrpc ip6table_filter ip6_tables
nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack xt_tcpudp xt_owner
iptable_filter ip_tables x_tables loop sha256_generic cryptd aes_x86_64
aes_generic cbc dm_crypt kvm_intel kvm snd_hda_codec_realtek snd_hda_intel
snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_midi
joydev
arc4 snd_rawmidi snd_seq_midi_event nouveau ttm i915 uvcvideo drm_kms_helper
drm snd_seq videodev media v4l2_compat_ioctl32 intel_agp intel_gtt agpgart
dell_laptop dcdbas iwlwifi iTCO_wdt i2c_i801 pcspkr i2c_algo_bit i2c_core
snd_timer mxm_wmi dell_wmi iTCO_vendor_support sparse_keymap evdev btusb
mac80211 snd_seq_device processor battery video psmouse(O) se
Feb  1 14:43:02 WZLap kernel: rio_raw wmi button ac snd power_supply
soundcore
snd_page_alloc cfg80211 bluetooth rfkill ext4 mbcache jbd2 crc16 dm_mod
sr_mod
sd_mod cdrom crc_t10dif ums_realtek usb_storage uas ahci libahci libata
scsi_mod r8169 mii xhci_hcd ehci_hcd usbcore thermal thermal_sys usb_common
[last unloaded: scsi_wait_scan]
Feb  1 14:43:02 WZLap kernel: [ 9351.906829]
Feb  1 14:43:02 WZLap kernel: [ 9351.906845] Pid: 6263, comm: modprobe
Tainted:
G           O 3.2.2 #1 Dell Inc.          Dell System Vostro 3750/0VP036
Feb  1 14:43:02 WZLap kernel: [ 9351.906938] RIP: 0010:[<ffffffff811ab110>]
[<ffffffff811ab110>] strcmp+0x2/0x1a
Feb  1 14:43:02 WZLap kernel: [ 9351.907000] RSP: 0018:ffff8801cf8d7be0
EFLAGS: 00010246
Feb  1 14:43:02 WZLap kernel: [ 9351.907042] RAX: 0000000000000000 RBX:
ffff8801cf8f8e40 RCX: 0000000060106010
Feb  1 14:43:02 WZLap kernel: [ 9351.907097] RDX: 0000000000000000 RSI:
ffffffffa07870f3 RDI: 0000000000000000
Feb  1 14:43:02 WZLap kernel: [ 9351.907151] RBP: ffff8802311f1000 R08:
ffff8802311f1000 R09: ffff8801ba906ac0
Feb  1 14:43:02 WZLap kernel: [ 9351.907205] R10: ffff8801ba906ac0 R11:
ffff8801ba906ac0 R12: ffff8802311f1088
Feb  1 14:43:02 WZLap kernel: [ 9351.907259] R13: ffffffffa0788288 R14:
ffff88022fbe5800 R15: ffff88022fbe5800
Feb  1 14:43:02 WZLap kernel: [ 9351.907313] FS:  00007ff0735fb700(0000)
GS:ffff88023fa40000(0000) knlGS:0000000000000000
Feb  1 14:43:02 WZLap kernel: [ 9351.907375] CS:  0010 DS: 0000 ES: 0000
CR0:
0000000080050033
Feb  1 14:43:02 WZLap kernel: [ 9351.907419] CR2: 0000000000000000 CR3:
00000001dbd39000 CR4: 00000000000406e0
Feb  1 14:43:02 WZLap kernel: [ 9351.907474] DR0: 0000000000000000 DR1:
0000000000000000 DR2: 0000000000000000
Feb  1 14:43:02 WZLap kernel: [ 9351.907528] DR3: 0000000000000000 DR6:
00000000ffff0ff0 DR7: 0000000000000400
Feb  1 14:43:02 WZLap kernel: [ 9351.907583] Process modprobe (pid: 6263,
threadinfo ffff8801cf8d6000, task ffff88023322a280)
Feb  1 14:43:02 WZLap kernel: [ 9351.907663]  ffffffffa078430f
ffffffffa0788288
ffff8801cf8f8e40 ffffffffa0788288
Feb  1 14:43:02 WZLap kernel: [ 9351.907729]  ffffffffa0784095
0000000060106010
ffff8801cf8f8e40 ffffffffa078bc80
Feb  1 14:43:02 WZLap kernel: [ 9351.907795]  ffffffffa076e4bf
0000000000000001
0000000100000000 ffff88022f90bf70
Feb  1 14:43:02 WZLap kernel: [ 9351.907890]  [<ffffffffa078430f>] ?
ftdi_8u2232c_probe+0x41/0x56 [ftdi_sio]
Feb  1 14:43:02 WZLap kernel: [ 9351.907952]  [<ffffffffa0784095>] ?
ftdi_sio_probe+0x1c/0x31 [ftdi_sio]
Feb  1 14:43:02 WZLap kernel: [ 9351.908007]  [<ffffffffa076e4bf>] ?
usb_serial_probe+0x182/0xe07 [usbserial]
Feb  1 14:43:02 WZLap kernel: [ 9351.908063]  [<ffffffff811a6161>] ?
ida_get_new_above+0xf4/0x198
Feb  1 14:43:02 WZLap kernel: [ 9351.908111]  [<ffffffff81244e2e>] ?
rpm_resume+0x447/0x488
Feb  1 14:43:02 WZLap kernel: [ 9351.908157]  [<ffffffff8114ff01>] ?
sysfs_link_sibling+0x8f/0xd2
Feb  1 14:43:02 WZLap kernel: [ 9351.908204]  [<ffffffff811504de>] ?
sysfs_addrm_finish+0x26/0x9f
Feb  1 14:43:02 WZLap kernel: [ 9351.908250]  [<ffffffff811507c9>] ?
__sysfs_add_one+0x8b/0xb8
Feb  1 14:43:02 WZLap kernel: [ 9351.908298]  [<ffffffff8103dbd5>] ?
get_parent_ip+0x9/0x1b
Feb  1 14:43:02 WZLap kernel: [ 9351.908342]  [<ffffffff8103dbd5>] ?
get_parent_ip+0x9/0x1b
Feb  1 14:43:02 WZLap kernel: [ 9351.908386]  [<ffffffff8103dbd5>] ?
get_parent_ip+0x9/0x1b
Feb  1 14:43:02 WZLap kernel: [ 9351.908432]  [<ffffffff8133677d>] ?
sub_preempt_count+0x83/0x94
Feb  1 14:43:02 WZLap kernel: [ 9351.908479]  [<ffffffff8103dbd5>] ?
get_parent_ip+0x9/0x1b
Feb  1 14:43:02 WZLap kernel: [ 9351.908524]  [<ffffffff81336828>] ?
add_preempt_count+0x9a/0x9c
Feb  1 14:43:02 WZLap kernel: [ 9351.908571]  [<ffffffff81333b5a>] ?
_raw_spin_lock_irqsave+0x1c/0x3e
Feb  1 14:43:02 WZLap kernel: [ 9351.908634]  [<ffffffffa001b44f>] ?
usb_probe_interface+0xf2/0x15e [usbcore]
Feb  1 14:43:02 WZLap kernel: [ 9351.908692]  [<ffffffff8123db05>] ?
driver_probe_device+0xa8/0x138
Feb  1 14:43:02 WZLap kernel: [ 9351.908741]  [<ffffffff8123dbe4>] ?
__driver_attach+0x4f/0x6f
Feb  1 14:43:02 WZLap kernel: [ 9351.908787]  [<ffffffff8123db95>] ?
driver_probe_device+0x138/0x138
Feb  1 14:43:02 WZLap kernel: [ 9351.908840]  [<ffffffff8123ce34>] ?
bus_for_each_dev+0x44/0x78
Feb  1 14:43:02 WZLap kernel: [ 9351.908891]  [<ffffffff8123d49c>] ?
bus_add_driver+0xa2/0x1f2
Feb  1 14:43:02 WZLap kernel: [ 9351.908951]  [<ffffffff8123e011>] ?
driver_register+0x8d/0xf5
Feb  1 14:43:02 WZLap kernel: [ 9351.909007]  [<ffffffffa001a772>] ?
usb_register_driver+0x7c/0x138 [usbcore]
Feb  1 14:43:02 WZLap kernel: [ 9351.909065]  [<ffffffffa078f000>] ?
0xffffffffa078efff
Feb  1 14:43:02 WZLap kernel: [ 9351.911513]  [<ffffffffa078f0a6>] ?
ftdi_init+0xa6/0x1000 [ftdi_sio]
Feb  1 14:43:02 WZLap kernel: [ 9351.913903]  [<ffffffff81002086>] ?
do_one_initcall+0x76/0x12c
Feb  1 14:43:02 WZLap kernel: [ 9351.916286]  [<ffffffffa078f000>] ?
0xffffffffa078efff
Feb  1 14:43:02 WZLap kernel: [ 9351.918661]  [<ffffffff81074d9c>] ?
sys_init_module+0x10c/0x25b
Feb  1 14:43:02 WZLap kernel: [ 9351.921056]  [<ffffffff81338312>] ?
system_call_fastpath+0x16/0x1b
Feb  1 14:43:02 WZLap kernel: [ 9351.930495]  RSP <ffff8801cf8d7be0>
Feb  1 14:43:02 WZLap kernel: [ 9351.996045] ---[ end trace 86e34305cdd55b80
]---

I attach the result of the "lsusb -v" for the device which triggers the
reported bug:

Bus 004 Device 004: ID 0403:6010 Future Technology Devices
International, Ltd
FT2232C Dual USB-UART/FIFO IC
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0403 Future Technology Devices International, Ltd
  idProduct          0x6010 FT2232C Dual USB-UART/FIFO IC
  bcdDevice            7.00
  iManufacturer           1
  iProduct                2
  iSerial                 3 FTV6ID2D
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           55
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              2
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              2
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

It seems, that the problem is associated with the following part of the
ftdi_sio.c driver (lines 1760-1770)

static int ftdi_8u2232c_probe(struct usb_serial *serial)
{
    struct usb_device *udev = serial->dev;

    dbg("%s", __func__);

    if (strcmp(udev->manufacturer, "CALAO Systems") == 0)
        return ftdi_jtag_probe(serial);

    return 0;
}

It seems, that the device returns empty manufacturer string. May it cause
problem in call to strcmp?

-- 
Best Regards,
Wojciech Zabolotny
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux