Opened 8 years ago

Closed 8 years ago

#992 closed defect (fixed)

kernel oops during rmmod usb8xxx in kernel-2.6.21-20070305.1

Reported by: andrey Owned by: marcelo
Priority: blocker Milestone: Trial-1
Component: wireless Version:
Keywords: kernel oops usb8xxx Cc: marcelo@…, GR-Wireless-OLPC@…
Blocked By: Blocking:
Deployments affected: Action Needed:
Verified: yes

Description

Hi. There is a kernel oops when trying to reload the usb8xxx module. To reproduce, just:

rmmod usb8xxx

and then the following kernel oops happens:

Message from syslogd@localhost at Tue Mar  6 01:35:50 2007 ...
localhost kernel: [ 4705.214886] Oops: 0000 [#1]

Message from syslogd@localhost at Tue Mar  6 01:35:50 2007 ...
localhost kernel: [ 4705.217959] PREEMPT 

Message from syslogd@localhost at Tue Mar  6 01:35:50 2007 ...
localhost kernel: [ 4705.256754] CPU:    0

Message from syslogd@localhost at Tue Mar  6 01:35:50 2007 ...
localhost kernel: [ 4705.256768] EIP:    0060:[<c890cf69>]    Not tainted VLI

Message from syslogd@localhost at Tue Mar  6 01:35:50 2007 ...
localhost kernel: [ 4705.256792] EFLAGS: 00010296   (2.6.21-20070305.2.olpc.fb4edc7fa9b1ce8 #1)
/
Message from syslogd@localhost at Tue Mar  6 01:35:51 2007 ...
localhost kernel: [ 4705.272646] EIP is at 0xc890cf69

Message from syslogd@localhost at Tue Mar  6 01:35:51 2007 ...
localhost kernel: [ 4705.276220] eax: 00000000   ebx: c740b3e0   ecx: c114c000   edx: 00000000

Message from syslogd@localhost at Tue Mar  6 01:35:51 2007 ...
localhost kernel: [ 4705.283682] esi: c6804000   edi: c6804944   ebp: c742e000   esp: c114ce84

Message from syslogd@localhost at Tue Mar  6 01:35:51 2007 ...
localhost kernel: [ 4705.305350] Stack: c114cea0 c040b587 00000000 c740b000 00000282 c11bb2f0 c05b8679 00000246 

Message from syslogd@localhost at Tue Mar  6 01:35:51 2007 ...
localhost kernel: [ 4705.314864]        c05b6891 c11e1e74 c70bb540 c11e1e00 c8935300 c11bb2f0 c89241d0 c11e1e00 

Message from syslogd@localhost at Tue Mar  6 01:35:51 2007 ...
localhost kernel: [ 4705.297534] Process khubd (pid: 36, ti=c114c000 task=c114a050 task.ti=c114c000)

Message from syslogd@localhost at Tue Mar  6 01:35:51 2007 ...
localhost kernel: [ 4705.291109] ds: 007b   es: 007b   fs: 00d8  gs: 0000  ss: 0068

Message from syslogd@localhost at Tue Mar  6 01:35:51 2007 ...
localhost kernel: [ 4705.324306]        c11e1e18 c11e1e00 c11e1e18 c05300fe c11e1e18 c893533c c11d2058 c051001c 

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.333809] Call Trace:

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.336760]  [<c040b587>] complete+0x39/0x48

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.341553]  [<c05b8679>] _spin_unlock_irqrestore+0x14/0x2a

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.347794]  [<c05b6891>] klist_release+0x13/0x1c

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.353070]  [<c05300fe>] usb_unbind_interface+0x2d/0x5f

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.358972]  [<c051001c>] __device_release_driver+0x71/0x8e

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.365143]  [<c051045a>] device_release_driver+0x2c/0x41

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.371161]  [<c050fa56>] bus_remove_device+0x5e/0x6c

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.376781]  [<c050e477>] device_del+0x11c/0x177

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.387710]  [<c052ae9b>] usb_disconnect+0x91/0x10c

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.393172]  [<c052bb43>] hub_thread+0x311/0x9db

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.398300]  [<c040ba56>] __activate_task+0x1c/0x29

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.403707]  [<c05b8679>] _spin_unlock_irqrestore+0x14/0x2a

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.409929]  [<c040b183>] __wake_up_common+0x32/0x55

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.415465]  [<c041e729>] autoremove_wake_function+0x0/0x35

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.421686]  [<c052b832>] hub_thread+0x0/0x9db

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.381934]  [<c052df94>] usb_disable_device+0x5c/0xbb

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.426629]  [<c041e670>] kthread+0xa0/0xc8

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.431290]  [<c041e5d0>] kthread+0x0/0xc8

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.435860]  [<c040404b>] kernel_thread_helper+0x7/0x10

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.441674]  =======================

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.445628] Code:  Bad EIP value.

Message from syslogd@localhost at Tue Mar  6 01:35:52 2007 ...
localhost kernel: [ 4705.449376] EIP: [<c890cf69>] 0xc890cf69 SS:ESP 0068:c114ce84

Change History (10)

comment:1 Changed 8 years ago by andrey

  • Component changed from distro to kernel
  • Keywords kernel oops usb8xxx added
  • Owner changed from blizzard to marcelo

sorry, I meant 'kernel' component for this ticket...

comment:2 Changed 8 years ago by jcardona

  • Component changed from kernel to wireless
  • Owner changed from marcelo to luisca

Bringing the interfaces down msh0 and eth0 before rmmoding prevents this.

comment:3 Changed 8 years ago by luisca

  • Cc marcelo@… added
  • Resolution set to fixed
  • Status changed from new to closed

Patch against olpc-2.6 head

diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index 6e10577..c321275 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -309,7 +309,6 @@ static int wlan_dev_close(struct net_dev
        ENTER();
 
        netif_carrier_off(priv->wlan_dev.netdev);
-       netif_carrier_off(priv->mesh_dev);
        priv->open = 0;
 
        LEAVE();

comment:4 Changed 8 years ago by luisca

  • Resolution fixed deleted
  • Status changed from closed to reopened

Fix works for dongles but not for B2 systems, reopening.

comment:5 Changed 8 years ago by rchokshi

  • Cc GR-Wireless-OLPC@… added

Adding GR-Wireless-OLPC to CC.

comment:6 Changed 8 years ago by swagle@…

Works after eth interface is down.

comment:7 Changed 8 years ago by jcardona

  • Owner changed from luisca to marcelo
  • Status changed from reopened to new

comment:8 Changed 8 years ago by jg

  • Milestone changed from Untriaged to Trial-1
  • Priority changed from normal to blocker

Driver oopes are not friendly. Marcelo, if the mesh itself is stable from your end now, fixing this one before our first trial is important....

comment:9 Changed 8 years ago by marcelo

Not reproducible with recent olpc-2.6 kernels. I suspect we were hitting a sysfs problem which is fixed in recent kernels.

Will wait for such kernels to hit the builds to close this Trac entry.

comment:10 Changed 8 years ago by marcelo

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.