Public bug reported:

There seems to be a bug in the ftdi_sio driver shipped with ubuntu
11.10. I've been able to reproduce the bug on both 64-bit (x86_64) and
32 bit machines.

The Problem :

Connecting an FT2232H programmed to function in CPU FIFO mode in channel
A to a ubuntu machine causes the driver to crash immediately. dmesg
provides a long and, to me, incomprehensible trace which I've pasted
below.  Once this happens, I need to restart my computer before it does
anything with an FTDI again. Possibly, forcing the ftdi_sio to unload
would be sufficient, but I'm not certain how to achieve that effect. The
lsusb entry for the FTDI also does not disappear after disconnection,
and lsusb -v hangs, probably while trying to probe the device.

This does not happen when the FT2232H is programmed to function as a
dual UART (the default configuration).

The same chip with the same configuration works fine on a machine
running Fedora 14 with linux-2.6.35.6-45-fc14.

How to reproduce :

Plug in an FTDI FT2232H with channel configured in CPU FIFO mode.

dmesg output :

[ 4002.848065] usb 2-2: new high speed USB device number 6 using ehci_hcd
[ 4002.984791] BUG: unable to handle kernel NULL pointer dereference at         
  (null)
[ 4002.988011] IP: [<ffffffffa05ee3ab>] ftdi_8u2232c_probe+0x3b/0x80 [ftdi_sio]
[ 4002.988011] PGD 0 
[ 4002.988011] Oops: 0000 [#1] SMP 
[ 4002.988011] CPU 1 
[ 4002.988011] Modules linked in: usb_storage uas hidp xt_conntrack 
iptable_filter ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack 
nf_defrag_ipv4 ip_tables x_tables bnep rfcomm vboxnetadp vboxnetflt vboxdrv 
parport_pc ppdev binfmt_misc dm_crypt ftdi_sio usbserial joydev 
snd_hda_codec_idt snd_hda_codec_hdmi btusb uvcvideo videodev 
v4l2_compat_ioctl32 bluetooth snd_hda_intel snd_hda_codec snd_hwdep dell_wmi 
sparse_keymap snd_pcm snd_seq_midi dell_laptop dcdbas snd_rawmidi psmouse 
lib80211_crypt_tkip r592 r852 sm_common nand nand_ids nand_bch bch nand_ecc 
serio_raw memstick mtd wl(P) snd_seq_midi_event snd_seq lib80211 snd_timer 
snd_seq_device snd soundcore snd_page_alloc coretemp lp parport btrfs 
zlib_deflate libcrc32c usbhid hid ahci libahci i915 firewire_ohci sdhci_pci 
sdhci firewire_core wmi crc_itu_t drm_kms_helper sky2 drm i2c_algo_bit video
[ 4002.988011] 
[ 4002.988011] Pid: 20, comm: khubd Tainted: P            3.0.0-14-generic 
#23-Ubuntu Dell Inc. Inspiron 1525                   /0U990C
[ 4002.988011] RIP: 0010:[<ffffffffa05ee3ab>]  [<ffffffffa05ee3ab>] 
ftdi_8u2232c_probe+0x3b/0x80 [ftdi_sio]
[ 4003.023739] RSP: 0018:ffff8800b90f3720  EFLAGS: 00010246
[ 4003.023739] RAX: ffffffffa05ee370 RBX: ffff88004c3309c0 RCX: 000000000000000e
[ 4003.023739] RDX: ffffffffa05f5f80 RSI: 0000000000000000 RDI: ffffffffa05f173a
[ 4003.023739] RBP: ffff8800b90f3730 R08: ffff880076089000 R09: ffff88004c3309c0
[ 4003.023739] R10: 0000000000000000 R11: 0000000000000000 R12: ffff880076089000
[ 4003.023739] R13: ffffffffa05f6000 R14: ffffffffa05f2288 R15: ffff88004dd1cc00
[ 4003.023739] FS:  0000000000000000(0000) GS:ffff8800bf500000(0000) 
knlGS:0000000000000000
[ 4003.023739] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 4003.023739] CR2: 0000000000000000 CR3: 0000000085df2000 CR4: 00000000000406e0
[ 4003.023739] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 4003.023739] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 4003.023739] Process khubd (pid: 20, threadinfo ffff8800b90f2000, task 
ffff8800b98bc560)
[ 4003.023739] Stack:
[ 4003.023739]  ffff88004c3309c0 ffffffffa05f2288 ffff8800b90f3750 
ffffffffa05ee02e
[ 4003.023739]  ffffffffa05f5c80 ffff88004c3309c0 ffff8800b90f3900 
ffffffffa05c8c7b
[ 4003.023739]  ffff8800bf512a40 0000000000000000 0000000000000000 
0000000000000001
[ 4003.023739] Call Trace:
[ 4003.023739]  [<ffffffffa05ee02e>] ftdi_sio_probe+0x2e/0x50 [ftdi_sio]
[ 4003.023739]  [<ffffffffa05c8c7b>] usb_serial_probe+0x14b/0x12d0 [usbserial]
[ 4003.023739]  [<ffffffff812e9c10>] ? ida_get_new_above+0x70/0x300
[ 4003.023739]  [<ffffffff811d8fe8>] ? sysfs_new_dirent+0x58/0x140
[ 4003.023739]  [<ffffffff811d9273>] ? sysfs_find_dirent+0x53/0x70
[ 4003.023739]  [<ffffffff810329b9>] ? default_spin_lock_flags+0x9/0x10
[ 4003.023739]  [<ffffffff810329b9>] ? default_spin_lock_flags+0x9/0x10
[ 4003.023739]  [<ffffffff81451a73>] usb_probe_interface+0xd3/0x1e0
[ 4003.023739]  [<ffffffff813cf738>] really_probe+0x68/0x190
[ 4003.023739]  [<ffffffff813cf9c5>] driver_probe_device+0x45/0x70
[ 4003.023739]  [<ffffffff813cfaf3>] __device_attach+0x53/0x60
[ 4003.023739]  [<ffffffff813cfaa0>] ? __driver_attach+0xb0/0xb0
[ 4003.023739]  [<ffffffff813ce4ac>] bus_for_each_drv+0x5c/0x90
[ 4003.023739]  [<ffffffff813cf937>] device_attach+0xa7/0xc0
[ 4003.023739]  [<ffffffff813ceedd>] bus_probe_device+0x2d/0x50
[ 4003.023739]  [<ffffffff813ccfbf>] device_add+0x2df/0x3e0
[ 4003.023739]  [<ffffffff8144fef1>] usb_set_configuration+0x5d1/0x6d0
[ 4003.023739]  [<ffffffff811d91cb>] ? sysfs_addrm_finish+0x1b/0x70
[ 4003.023739]  [<ffffffff81459253>] generic_probe+0x43/0xa0
[ 4003.023739]  [<ffffffff81451baf>] usb_probe_device+0x2f/0x60
[ 4003.023739]  [<ffffffff813cf738>] really_probe+0x68/0x190
[ 4003.023739]  [<ffffffff813cf9c5>] driver_probe_device+0x45/0x70
[ 4003.023739]  [<ffffffff813cfaf3>] __device_attach+0x53/0x60
[ 4003.023739]  [<ffffffff813cfaa0>] ? __driver_attach+0xb0/0xb0
[ 4003.023739]  [<ffffffff813ce4ac>] bus_for_each_drv+0x5c/0x90
[ 4003.023739]  [<ffffffff813cf937>] device_attach+0xa7/0xc0
[ 4003.023739]  [<ffffffff813ceedd>] bus_probe_device+0x2d/0x50
[ 4003.023739]  [<ffffffff813ccfbf>] device_add+0x2df/0x3e0
[ 4003.023739]  [<ffffffff81448681>] usb_new_device+0x101/0x140
[ 4003.023739]  [<ffffffff814491d8>] hub_port_connect_change+0x478/0x6e0
[ 4003.023739]  [<ffffffff814498f4>] hub_events+0x4b4/0x610
[ 4003.023739]  [<ffffffff815e8db4>] ? __schedule+0x3d4/0x700
[ 4003.023739]  [<ffffffff81449a85>] hub_thread+0x35/0x180
[ 4003.023739]  [<ffffffff81081c10>] ? add_wait_queue+0x60/0x60
[ 4003.023739]  [<ffffffff81449a50>] ? hub_events+0x610/0x610
[ 4003.023739]  [<ffffffff8108116c>] kthread+0x8c/0xa0
[ 4003.023739]  [<ffffffff815f47e4>] kernel_thread_helper+0x4/0x10
[ 4003.023739]  [<ffffffff810810e0>] ? flush_kthread_worker+0xa0/0xa0
[ 4003.023739]  [<ffffffff815f47e0>] ? gs_change+0x13/0x13
[ 4003.023739] Code: 66 66 66 66 90 44 8b 15 cc 7e 00 00 4c 8b 27 48 89 fb 45 
85 d2 75 34 49 8b b4 24 38 04 00 00 b9 0e 00 00 00 48 c7 c7 3a 17 5f a0 <f3> a6 
0f 97 c1 0f 92 c2 31 c0 38 d1 75 08 48 89 df e8 cf fd ff 
[ 4003.023739] RIP  [<ffffffffa05ee3ab>] ftdi_8u2232c_probe+0x3b/0x80 [ftdi_sio]
[ 4003.023739]  RSP <ffff8800b90f3720>
[ 4003.023739] CR2: 0000000000000000
[ 4003.209525] ---[ end trace 8e47f2fa03ab73ce ]---

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: linux-image-3.0.0-14-generic 3.0.0-14.23
ProcVersionSignature: Ubuntu 3.0.0-14.23-generic 3.0.9
Uname: Linux 3.0.0-14-generic x86_64
NonfreeKernelModules: wl
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC0:  chintal    2555 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfe9fc000 irq 46'
   Mixer name   : 'SigmaTel STAC9228'
   Components   : 'HDA:14f12c06,14f1000f,00100000 
HDA:10951392,10280242,00100000 HDA:83847616,10280242,00100402'
   Controls      : 31
   Simple ctrls  : 19
Date: Sat Jan 14 15:31:17 2012
EcryptfsInUse: Yes
HibernationDevice: RESUME=UUID=a1c37db5-cf7b-4999-8f87-9137a9828978
InstallationMedia: Kubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MachineType: Dell Inc. Inspiron 1525
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=en_IN
 LANGUAGE=
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.0.0-14-generic 
root=UUID=3ab71e37-a218-4860-b7a0-c1601a87bd62 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-14-generic N/A
 linux-backports-modules-3.0.0-14-generic  N/A
 linux-firmware                            1.60
SourcePackage: linux
UpgradeStatus: Upgraded to oneiric on 2011-10-23 (82 days ago)
dmi.bios.date: 10/16/2008
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A16
dmi.board.name: 0U990C
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: 
dmi:bvnDellInc.:bvrA16:bd10/16/2008:svnDellInc.:pnInspiron1525:pvr:rvnDellInc.:rn0U990C:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: Inspiron 1525
dmi.sys.vendor: Dell Inc.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug oneiric

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/916430

Title:
  Bug in ftdi_sio in linux 3.0.0-14-generic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/916430/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to