Linux Kernel 2.6.21: ftdi_sio crash

Having problems? Use this forum to find help!

Moderator: jrhees

Linux Kernel 2.6.21: ftdi_sio crash

Postby paulkoan » Thu Jul 26, 2007 11:44 pm

Hello,

Have any linux users tried usb_uirt with the 2.6.21 kernel? It was working well with 2.6.20 but with .21 I get the following crash when ftdi_fio loads.

I'll probably have to revert, but if anyone has any pointers about how to fix this...

Paul



Code: Select all
drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI USB Serial Device
ftdi_sio 2-2:1.0: FTDI USB Serial Device converter detected
BUG: unable to handle kernel NULL pointer dereference at virtual address 00000014
 printing eip:
f93b00ab
*pde = 00000000
Oops: 0002 [#1]
PREEMPT
Modules linked in: ftdi_sio saa7134 ir_kbd_i2c wcfxo zaptel crc_ccitt
CPU:    0
EIP:    0060:[<f93b00ab>]    Not tainted VLI
EFLAGS: 00010286   (2.6.21-gentoo-r41 #4)
EIP is at ftdi_USB_UIRT_setup+0x1b/0x80 [ftdi_sio]
eax: 00000000   ebx: f7ea26a0   ecx: f93b6ae0   edx: f93b0090
esi: c23af400   edi: 00000001   ebp: f7c26360   esp: f7a41da4
ds: 007b   es: 007b   fs: 00d8  gs: 0033  ss: 0068
Process modprobe (pid: 3937, ti=f7a40000 task=f7a07ab0 task.ti=f7a40000)
Stack: 00000000 c04779ca 00000282 00000001 f93b0082 c049ac65 c0672b28 f93b225e
       c22dc0bc f93b228d dfe89a50 f7a41df0 00000096 00000001 c22dc0bc c22dc018
       00000001 00000001 00000001 00000000 00000000 00000040 f93b6ae0 f7ea26a0
Call Trace:
 [<c04779ca>] usb_alloc_urb+0x1a/0x40
 [<f93b0082>] ftdi_sio_attach+0x12/0x20 [ftdi_sio]
 [<c049ac65>] usb_serial_probe+0x5d5/0xd20
 [<c01a42da>] __sysfs_make_dirent+0x1a/0x90
 [<c01a437f>] sysfs_make_dirent+0x2f/0x50
 [<c01a554f>] sysfs_add_link+0x8f/0xe0
 [<c047a056>] usb_match_one_id+0x26/0xc0
 [<c0479d65>] usb_probe_interface+0x75/0xc0
 [<c03b7824>] really_probe+0xb4/0x160
 [<c047a109>] usb_match_id+0x19/0x50
 [<c03b79a9>] driver_probe_device+0xc9/0xd0
 [<c05931b9>] klist_next+0x59/0xd0
 [<c03b7aa9>] __driver_attach+0x79/0x80
 [<c03b6b3a>] bus_for_each_dev+0x3a/0x60
 [<c03b7ac6>] driver_attach+0x16/0x20
 [<c03b7a30>] __driver_attach+0x0/0x80
 [<c03b712e>] bus_add_driver+0x5e/0x100
 [<c047a5aa>] usb_register_driver+0x6a/0xe0
 [<c011b7c7>] printk+0x17/0x20
 [<c049b72c>] usb_serial_register+0xac/0xc0
 [<f8d39054>] ftdi_init+0x54/0xe5 [ftdi_sio]
 [<c013ae05>] sys_init_module+0xd5/0x140
 [<c01040e0>] sysenter_past_esp+0x5d/0x81
 =======================
Code: ff d2 31 c0 c3 8d 74 26 00 8d bc 27 00 00 00 00 53 89 c3 83 ec 0c a1 0c 6e 3b f9 85 c0 75 23 8b 43 14 83 c0 78 8b 80
 f0 00 00 00 <83> 48 14 30 c7 40 08 4d 00 00 00 c7 40 60 0f 00 00 00 83 c4 0c
EIP:    0060:[<f93b00ab>]    Not tainted VLI
EFLAGS: 00010286   (2.6.21-gentoo-r41 #4)
EIP is at ftdi_USB_UIRT_setup+0x1b/0x80 [ftdi_sio]
eax: 00000000   ebx: f7ea26a0   ecx: f93b6ae0   edx: f93b0090
esi: c23af400   edi: 00000001   ebp: f7c26360   esp: f7a41da4
ds: 007b   es: 007b   fs: 00d8  gs: 0033  ss: 0068
Process modprobe (pid: 3937, ti=f7a40000 task=f7a07ab0 task.ti=f7a40000)
Stack: 00000000 c04779ca 00000282 00000001 f93b0082 c049ac65 c0672b28 f93b225e
       c22dc0bc f93b228d dfe89a50 f7a41df0 00000096 00000001 c22dc0bc c22dc018
       00000001 00000001 00000001 00000000 00000000 00000040 f93b6ae0 f7ea26a0
Call Trace:
 [<c04779ca>] usb_alloc_urb+0x1a/0x40
 [<f93b0082>] ftdi_sio_attach+0x12/0x20 [ftdi_sio]
 [<c049ac65>] usb_serial_probe+0x5d5/0xd20
 [<c01a42da>] __sysfs_make_dirent+0x1a/0x90
 [<c01a437f>] sysfs_make_dirent+0x2f/0x50
 [<c01a554f>] sysfs_add_link+0x8f/0xe0
 [<c047a056>] usb_match_one_id+0x26/0xc0
 [<c0479d65>] usb_probe_interface+0x75/0xc0
 [<c03b7824>] really_probe+0xb4/0x160
 [<c047a109>] usb_match_id+0x19/0x50
 [<c03b79a9>] driver_probe_device+0xc9/0xd0
 [<c05931b9>] klist_next+0x59/0xd0
 [<c03b7aa9>] __driver_attach+0x79/0x80
 [<c03b6b3a>] bus_for_each_dev+0x3a/0x60
 [<c03b7ac6>] driver_attach+0x16/0x20
 [<c03b7a30>] __driver_attach+0x0/0x80
 [<c03b712e>] bus_add_driver+0x5e/0x100
 [<c047a5aa>] usb_register_driver+0x6a/0xe0
 [<c011b7c7>] printk+0x17/0x20
 [<c049b72c>] usb_serial_register+0xac/0xc0
 [<f8d39054>] ftdi_init+0x54/0xe5 [ftdi_sio]
 [<c013ae05>] sys_init_module+0xd5/0x140
 [<c01040e0>] sysenter_past_esp+0x5d/0x81
 =======================
Code: ff d2 31 c0 c3 8d 74 26 00 8d bc 27 00 00 00 00 53 89 c3 83 ec 0c a1 0c 6e 3b f9 85 c0 75 23 8b 43 14 83 c0 78 8b 80
 f0 00 00 00 <83> 48 14 30 c7 40 08 4d 00 00 00 c7 40 60 0f 00 00 00 83 c4 0c
EIP: [<f93b00ab>] ftdi_USB_UIRT_setup+0x1b/0x80 [ftdi_sio] SS:ESP 0068:f7a41da4
paulkoan
 
Posts: 2
Joined: Thu Jul 26, 2007 10:10 am

Postby alanh » Mon Jul 30, 2007 7:50 pm

This is a known issue with that kernel.

For Fedora Core 7, it's supposed to be fixed in kernel-2.6.22.1-33.fc7.
alanh
 
Posts: 1
Joined: Mon Jul 30, 2007 7:43 pm

Postby paulkoan » Mon Jul 30, 2007 10:19 pm

Ah, good find.

My google-fu skills weren't up to the job clearly. I have reverted to a .20 kernel for now but if anyone else happens across this thread there does appear seem to be a working patch for .21 kernels. May even work with the .22 kernels that don't have the bugfix.

The OP of the bug also used the original ftdi_sio from .20 to get this working.

Paul
paulkoan
 
Posts: 2
Joined: Thu Jul 26, 2007 10:10 am


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 116 guests