2003-09-11 20:41:28

by zipa24

[permalink] [raw]
Subject: OOPS on 2.6.0-test5-mm1

Heip!

I managed to get an OOPS on latest -mm kernel while playing with PDA using
USB connection:

===cut
usb 2-1: control timeout on ep0in
usb 2-1: USB disconnect, address 20
usbserial 2-1:0: device disconnected
visor ttyUSB0: Handspring Visor / Palm OS converter now disconnected from
ttyUSB0
Unable to handle kernel NULL pointer dereference at virtual address 00000024
printing eip:
c0172d27
*pde = 00000000
Oops: 0002 [#1]
PREEMPT
CPU: 0
EIP: 0060:[<c0172d27>] Not tainted VLI
EFLAGS: 00010202
EIP is at simple_rmdir+0x27/0x50
eax: 00000000 ebx: f1fc53c0 ecx: f1fc53dc edx: ffffffd9
esi: e14f2240 edi: da0f4000 ebp: f1fc53dc esp: da0f5e30
ds: 007b es: 007b ss: 0068
Process kpilotDaemon (pid: 5530, threadinfo=da0f4000 task=f40b0ce0)
Stack: f1fc53c0 f15f2980 c2347ec0 f1fc53c0 c018635c e14f2240 f1fc53c0 f1fc5480

f1fc53c0 c018643c f1fc53c0 f1fc5480 f2574a9c f4e0c6cc e25c3940 00000001

c01e521a f2574a9c c03909c0 f2574a9c f2574a78 c02290f0 f2574a9c f2574a78

Call Trace:
[<c018635c>] remove_dir+0x4c/0x70
[<c018643c>] sysfs_remove_dir+0xac/0x110
[<c01e521a>] kobject_del+0x5a/0x70
[<c02290f0>] device_del+0x70/0xa0
[<c0229133>] device_unregister+0x13/0x30
[<f8c08331>] destroy_serial+0x181/0x1c0 [usbserial]
[<c01e532b>] kobject_cleanup+0x7b/0x80
[<f8c07473>] serial_close+0x73/0xb0 [usbserial]
[<c0213983>] release_dev+0x643/0x670
[<c0218947>] set_termios+0xc7/0x1b0
[<c0213d5a>] tty_release+0x2a/0x60
[<c0154a78>] __fput+0x108/0x120
[<c0153099>] filp_close+0x59/0x90
[<c0153131>] sys_close+0x61/0xa0
[<c03220fe>] sysenter_past_esp+0x43/0x65

Code: 8d 74 26 00 83 ec 10 89 5c 24 08 89 74 24 0c 8b 5c 24 18 8b 74 24 14
89 1c 24 e8 45 ff ff ff ba d9 ff ff ff 85 c0 74 17 8b 43 08 <ff> 48 24 89
34 24 89 5c 24 04 e8 aa ff ff ff 31 d2 ff 4e 24 8b
<6>hub 1-0:0: debounce: port 1: delay 100ms stable 4 status 0x501
hub 2-0:0: debounce: port 1: delay 100ms stable 4 status 0x101
hub 2-0:0: new USB device on port 1, assigned address 21
usbserial 2-1:0: Handspring Visor / Palm OS converter detected
usb 2-1: Handspring Visor / Palm OS converter now attached to ttyUSB0 (or
usb/tts/0 for devfs)
devfs_mk_cdev: could not append to parent for usb/tts/1
Unable to handle kernel paging request at virtual address ffffffef
printing eip:
c01e78e6
*pde = 00001067
*pte = 00000000
Oops: 0000 [#2]
PREEMPT
CPU: 0
EIP: 0060:[<c01e78e6>] Not tainted VLI
EFLAGS: 00010282
EIP is at atomic_dec_and_lock+0x6/0x50
eax: ffffffef ebx: ffffffef ecx: ffffffef edx: 00000000
esi: ffffffef edi: c0390c00 ebp: c1ba1ce0 esp: c1ba1c00
ds: 007b es: 007b ss: 0068
Process khubd (pid: 5, threadinfo=c1ba0000 task=c1a36040)
Stack: ffffffef ffffffef c016a2e2 ffffffef c0463a30 ffffffef f7fe8900 c0390c00

c0186265 ffffffef 000041ed c01861c0 f6c430d4 00000000 c01862d6 f6c430d4

f7fe8900 f6c430d8 00000000 f6c430d4 c01e4e3f f6c430d4 f6c430d4 c038c454

Call Trace:
[<c016a2e2>] dput+0x22/0x270
[<c0186265>] create_dir+0x85/0x90
[<c01861c0>] init_dir+0x0/0x20
[<c01862d6>] sysfs_create_dir+0x36/0x70
[<c01e4e3f>] create_dir+0x1f/0x50
[<c01e4fe7>] kobject_add+0x97/0x110
[<c022ad35>] class_device_add+0x75/0x140
[<c022aca6>] class_device_initialize+0x16/0x30
[<c0215321>] tty_add_class_device+0x81/0x120
[<c021554d>] tty_register_device+0xbd/0xc0
[<c018575d>] sysfs_new_inode+0x5d/0xb0
[<f8c0a098>] usb_serial_device_probe+0xb8/0x160 [usbserial]
[<c0185980>] init_file+0x0/0x20
[<c0229fef>] bus_match+0x3f/0x70
[<c022a06f>] device_attach+0x4f/0xb0
[<c022a26b>] bus_add_device+0x5b/0xa0
[<c0228f81>] device_add+0xa1/0x130
[<f8c08a14>] usb_serial_probe+0x504/0xc10 [usbserial]
[<c0172643>] simple_lookup+0x23/0x30
[<c016c282>] alloc_inode+0x142/0x150
[<c018575d>] sysfs_new_inode+0x5d/0xb0
[<c016a2e2>] dput+0x22/0x270
[<c026c413>] usb_probe_interface+0x73/0xa0
[<c0229fef>] bus_match+0x3f/0x70
[<c022a06f>] device_attach+0x4f/0xb0
[<c022a26b>] bus_add_device+0x5b/0xa0
[<c0228f81>] device_add+0xa1/0x130
[<c026d2e6>] usb_new_device+0x2f6/0x480
[<c026f491>] hub_port_connect_change+0x1c1/0x320
[<c026f8ba>] hub_events+0x2ca/0x340
[<c026f95d>] hub_thread+0x2d/0xf0
[<c0322036>] ret_from_fork+0x6/0x14
[<c011b320>] default_wake_function+0x0/0x30
[<c026f930>] hub_thread+0x0/0xf0
[<c0109089>] kernel_thread_helper+0x5/0xc

Code: 02 72 11 66 8b 16 8d 76 02 66 89 17 8d 7f 02 74 07 c1 e2 10 8a 16 88
17 01 d0 83 d0 00 5e 5f 5b c3 90 90 90 90 56 53 8b 4c 24 0c <8b> 31 89 f2
4a 74 11 89 f0 f0 0f b1 11 31 db 39 f0 75 ed 89 d8
===cut
I was using KPilot 4.3.10 (KDE 3.1.3) at the time. The second OOPS seem to
be result of the first.

I had following patch included to get kernel recognize Handspring Orange
PDA/phone, but I don't think it affected things. (The PDA OS was PalmOS 5.2.1.)
===cut
--- ./drivers/usb/serial/visor.c~ 2003-09-08 22:49:59.000000000 +0300
+++ ./drivers/usb/serial/visor.c 2003-09-11 21:40:35.000000000 +0300
@@ -201,6 +201,10 @@
.driver_info = (kernel_ulong_t)&palm_os_3_probe },
{ USB_DEVICE(HANDSPRING_VENDOR_ID, HANDSPRING_TREO_ID),
.driver_info = (kernel_ulong_t)&palm_os_4_probe },
+
+ { USB_DEVICE(HANDSPRING_VENDOR_ID, 0x0300),
+ .driver_info = (kernel_ulong_t)&palm_os_4_probe },
+
{ USB_DEVICE(PALM_VENDOR_ID, PALM_M500_ID),
.driver_info = (kernel_ulong_t)&palm_os_4_probe },
{ USB_DEVICE(PALM_VENDOR_ID, PALM_M505_ID),
===cut

lsmod says:
===cut
Module Size Used by
ohci_hcd 16192 0
ehci_hcd 22148 0
visor 15820 1
usbserial 26412 4 visor
sch_sfq 4672 1
===cut

My .config is attached, and my distro is Gentoo (I used gcc 3.3.1 to compile
the kernel).

// /

// /

_____________________________________________________________
Kuukausimaksuton nettiyhteys: http://www.suomi24.fi/liittyma/
Yli 12000 logoa ja soitto??nt?: http://sms.suomi24.fi/



Attachments:
config (24.43 kB)