Discussion:
linux-wlan-ng 0.2.3 BUG (Kernel hang)
Néstor Amigo Cairo
2006-04-04 15:04:48 UTC
Permalink
Hello.

I don't know if this is the right place to post a bug. I use Gentoo with
a 2.6.15-gentoo-r1 kernel on a SMP P4 laptop (my wlan card is an Airvast
168b).
I also use a vanilla linux-wlan-ng 0.2.3 on this kernel.

Just after I execute

wlanctl-ng $DEVICE lnxreq_autojoin ssid="$SSID" authtype="opensystem"

the kernel hangs, giving the following error message:

========================================

kernel BUG at include/linux/timer.h:83!
invalid operand: 0000 [#1]
PREEMPT SMP
Modules linked in: snd_pcm_oss snd_mixer_oss prism2_usb p80211 sg sr_mod
joydev eth1394 unix
CPU: 0
EIP: 0060:[<f1b512b7>] Not tainted VLI
EFLAGS: 00010286 (2.6.15-gentoo-r1)
EIP is at prism2sta_commsqual_defer+0xa9/0xb3 [prism2_usb]
eax: b1809850 ebx: ed89a000 ecx: 00000000 edx: ed89ac0c
esi: ef351c00 edi: ed89a000 ebp: 00000202 esp: effafeb4
ds: 007b es: 007b ss: 0068
Process events/0 (pid: 6, threadinfo=effae000 task=eff98a70)
Stack: ed89a000 0000fd51 ed89ac04 00000006 effaff00 f1b507f2 ed89a000
0000fd40
effafede 00000002 0004a1b8 b045cb40 efd1a000 efca9600 00000720
b023384a
b1825000 b19ae3b0 b19ae3a8 61770006 79616679 64581874 4936244a
44b15b85
Call Trace:
[<f1b507f2>] prism2sta_processing_defer+0x1d0/0x300 [prism2_usb]
[<b023384a>] fb_flashcursor+0x1e8/0x31b
[<b01341b5>] remove_wait_queue+0x1a/0x4a
[<b012f98a>] worker_thread+0x1da/0x264
[<f1b50622>] prism2sta_processing_defer+0x0/0x300 [prism2_usb]
[<b011ae5d>] default_wake_function+0x0/0x12
[<b011ae5d>] default_wake_function+0x0/0x12
[<b012f7b0>] worker_thread+0x0/0x264
[<b0133e38>] kthread+0xba/0xf0
[<b0133d7e>] kthread+0x0/0xf0
[<b0101195>] kernel_thread_helper+0x5/0xb
Code: 70 5d be c7 83 24 0c 00 00 01 00 00 00 83 c4 10 5b c3 c7 44 24 04
6c 1b b5 f1 c7 04 24 64 35 b5 f1 e8 c2 e5 5c be 83 c4 10 5b c3 <0f> 0b
53 00 5d 3c b5 f1 eb bf


======================


I have been able to avoid the error by putting a 2sec/pause between this
command and the following (dhcpcd $DEVICE). But it doesn't always work.
Sometimes I have to wait until the computer completely boots up, then
executing the commands by hand. And I always have to reset the card when
I power on the computer again, even if everything worked well the last
time I used it.
This error didn't happen to me with the 0.2.2 version of linux-wlan-ng
that came with Gentoo, but I have had to upgrade because the old version
does not compile with the new kernel. I have had similar problems with
older versions of linux-wlan-ng, so I think it might be a regression.

Thank you!
--
Néstor Amigo Cairo <***@gmail.com>
Néstor Amigo Cairo
2006-04-04 16:36:24 UTC
Permalink
Hello.

I don't know if this is the right place to post a bug. I use Gentoo with
a 2.6.15-gentoo-r1 kernel on a SMP P4 laptop (my wlan card is an Airvast
168b).
I also use a vanilla linux-wlan-ng 0.2.3 on this kernel.

Just after I execute

wlanctl-ng $DEVICE lnxreq_autojoin ssid="$SSID" authtype="opensystem"

the kernel hangs, giving the following error message:

========================================

kernel BUG at include/linux/timer.h:83!
invalid operand: 0000 [#1]
PREEMPT SMP
Modules linked in: snd_pcm_oss snd_mixer_oss prism2_usb p80211 sg sr_mod
joydev eth1394 unix
CPU: 0
EIP: 0060:[<f1b512b7>] Not tainted VLI
EFLAGS: 00010286 (2.6.15-gentoo-r1)
EIP is at prism2sta_commsqual_defer+0xa9/0xb3 [prism2_usb]
eax: b1809850 ebx: ed89a000 ecx: 00000000 edx: ed89ac0c
esi: ef351c00 edi: ed89a000 ebp: 00000202 esp: effafeb4
ds: 007b es: 007b ss: 0068
Process events/0 (pid: 6, threadinfo=effae000 task=eff98a70)
Stack: ed89a000 0000fd51 ed89ac04 00000006 effaff00 f1b507f2 ed89a000
0000fd40
effafede 00000002 0004a1b8 b045cb40 efd1a000 efca9600 00000720
b023384a
b1825000 b19ae3b0 b19ae3a8 61770006 79616679 64581874 4936244a
44b15b85
Call Trace:
[<f1b507f2>] prism2sta_processing_defer+0x1d0/0x300 [prism2_usb]
[<b023384a>] fb_flashcursor+0x1e8/0x31b
[<b01341b5>] remove_wait_queue+0x1a/0x4a
[<b012f98a>] worker_thread+0x1da/0x264
[<f1b50622>] prism2sta_processing_defer+0x0/0x300 [prism2_usb]
[<b011ae5d>] default_wake_function+0x0/0x12
[<b011ae5d>] default_wake_function+0x0/0x12
[<b012f7b0>] worker_thread+0x0/0x264
[<b0133e38>] kthread+0xba/0xf0
[<b0133d7e>] kthread+0x0/0xf0
[<b0101195>] kernel_thread_helper+0x5/0xb
Code: 70 5d be c7 83 24 0c 00 00 01 00 00 00 83 c4 10 5b c3 c7 44 24 04
6c 1b b5 f1 c7 04 24 64 35 b5 f1 e8 c2 e5 5c be 83 c4 10 5b c3 <0f> 0b
53 00 5d 3c b5 f1 eb bf


======================


I have been able to avoid the error by putting a 2sec/pause between this
command and the following (dhcpcd $DEVICE). But it doesn't always work.
Sometimes I have to wait until the computer completely boots up, then
executing the commands by hand. And I always have to reset the card when
I power on the computer again, even if everything worked well the last
time I used it.
This error didn't happen to me with the 0.2.2 version of linux-wlan-ng
that came with Gentoo, but I have had to upgrade because the old version
does not compile with the new kernel. I have had similar problems with
older versions of linux-wlan-ng, so I think it might be a regression.

Thank you!
--
Néstor Amigo Cairo <***@gmail.com>
Solomon Peachy
2006-04-04 18:04:42 UTC
Permalink
Post by Néstor Amigo Cairo
I also use a vanilla linux-wlan-ng 0.2.3 on this kernel.
The bug is being triggered in add_timer().

Try the development head; the timer code has been rewritten a little
bit to be a bit safer.

- Solomon
--
Solomon Peachy ***@linux-wlan.com
AbsoluteValue Systems http://www.linux-wlan.com
721-D North Drive +1 (321) 259-0737 (office)
Melbourne, FL 32934 +1 (321) 259-0286 (fax)
Loading...