when using udevinfo with an ftdi-device a segmentation fault occurs

Bug #121583 reported by Lukas Koch
2
Affects Status Importance Assigned to Milestone
Linux
Fix Released
Unknown
linux-source-2.6.22 (Ubuntu)
Fix Released
High
Ben Collins

Bug Description

Binary package hint: udev

When I try to get the sysinfo of my ftdi-chip (FT232R) with "udevinfo -a -p /sys/class/tty/ttyUSB0" I get the following output:

Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/class/tty/ttyUSB0':
    KERNEL=="ttyUSB0"
    SUBSYSTEM=="tty"
    DRIVER==""
    ATTR{dev}=="188:0"

  looking at parent device '/devices/pci0000:00/0000:00:02.0/usb1/1-9/1-9:1.0/ttyUSB0':
    KERNELS=="ttyUSB0"
    SUBSYSTEMS=="usb-serial"
    DRIVERS=="ftdi_sio"

  looking at parent device '/devices/pci0000:00/0000:00:02.0/usb1/1-9/1-9:1.0':
    KERNELS=="1-9:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="ftdi_sio"
    ATTRS{interface}=="USB _-_ AST-LA"
    ATTRS{modalias}=="usb:v0403p6001d0600dc00dsc00dp00icFFiscFFipFF"
    ATTRS{bInterfaceProtocol}=="ff"
    ATTRS{bInterfaceSubClass}=="ff"
    ATTRS{bInterfaceClass}=="ff"
    ATTRS{bNumEndpoints}=="02"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bInterfaceNumber}=="00"

  looking at parent device '/devices/pci0000:00/0000:00:02.0/usb1/1-9':
    KERNELS=="1-9"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
Segmentation fault
lukas@Ast:~$
Message from syslogd@Ast at Thu Jun 21 17:06:42 2007 ...
Ast kernel: [ 9968.032000] Oops: 0000 [#1]

Message from syslogd@Ast at Thu Jun 21 17:06:42 2007 ...
Ast kernel: [ 9968.032000] SMP

Message from syslogd@Ast at Thu Jun 21 17:06:42 2007 ...
Ast kernel: [ 9968.032000] CPU: 0

Message from syslogd@Ast at Thu Jun 21 17:06:42 2007 ...
Ast kernel: [ 9968.032000] EIP: 0060:[<f8d484d1>] Tainted: P VLI

Message from syslogd@Ast at Thu Jun 21 17:06:42 2007 ...
Ast kernel: [ 9968.032000] EFLAGS: 00210246 (2.6.20-16-generic #2)

Message from syslogd@Ast at Thu Jun 21 17:06:42 2007 ...
Ast kernel: [ 9968.032000] EIP is at show_latency_timer+0x51/0x100 [ftdi_sio]

Message from syslogd@Ast at Thu Jun 21 17:06:42 2007 ...
Ast kernel: [ 9968.032000] eax: d5ea1f32 ebx: 00000000 ecx: 0000000a edx: 00000003

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] esi: e20e3458 edi: e20e3400 ebp: d60a4000 esp: d5ea1f18

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] ds: 007b es: 007b ss: 0068

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] Process udevinfo (pid: 5934, ti=d5ea0000 task=ecdbd560 task.ti=d5ea0000)

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] Stack: e6d6f540 00000000 00008000 d5ea1f32 00000001 00001388 00001480 f8d48480

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] e20e34d0 c03b9d80 e20e34d0 c0254f8d e7aefd80 d6ec86c0 c01b7ad9 00000080

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] bf816e48 00000007 f8d4f12c e7aefd94 e6d6f540 bf816e48 d5ea1fa0 00000080

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] Call Trace:

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] [<f8d48480>] show_latency_timer+0x0/0x100 [ftdi_sio]

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] [dev_attr_show+29/48] dev_attr_show+0x1d/0x30

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] [sysfs_read_file+105/304] sysfs_read_file+0x69/0x130

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] [vfs_read+188/400] vfs_read+0xbc/0x190

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] [sysfs_read_file+0/304] sysfs_read_file+0x0/0x130

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] [sys_read+65/112] sys_read+0x41/0x70

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] [sysenter_past_esp+105/169] sysenter_past_esp+0x69/0xa9

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] =======================

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] Code: 85 c9 66 c7 44 24 1a 00 00 75 7f 8d 44 24 1a 8b 56 a8 b9 0a 00 00 00 c7 44 24 14 88 13 00 00 c7 44 24 10 01 00 00 00 89 44 24 0c <0f> b7 43 64 c1 e2 08 81 ca 80 00 00 80 c7 44 24 04 00 00 00 00

Message from syslogd@Ast at Thu Jun 21 17:06:43 2007 ...
Ast kernel: [ 9968.032000] EIP: [<f8d484d1>] show_latency_timer+0x51/0x100 [ftdi_sio] SS:ESP 0068:d5ea1f18

Furthermore the udev-rules regarding the usb-device are not working and I think this could be due to this bug.

Tags: kernel-oops
Changed in linux-source-2.6.22:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → High
status: New → Triaged
Revision history for this message
Ben Collins (ben-collins) wrote :

Finished one cherry-pick.
Created commit d2a0667: UBUNTU: USB: fix oops in ftdi_sio
 1 files changed, 44 insertions(+), 60 deletions(-)

Changed in linux-source-2.6.22:
assignee: ubuntu-kernel-team → ben-collins
status: Triaged → Fix Committed
Changed in linux:
status: Unknown → Fix Released
Changed in linux:
status: Fix Released → Confirmed
Changed in linux-source-2.6.22:
status: Fix Committed → Fix Released
Changed in linux:
status: Confirmed → In Progress
Changed in linux:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.