strange kernel panic w/ bridged vaps

10 views
Skip to first unread message

graham

unread,
Jan 23, 2009, 3:34:41 PM1/23/09
to pyramidlinux
i'm seeing some weirdness that i'd like some help w/, hopefully i can
describe this w/ sufficient detail. i have 2 soekris net4526 based APs
w/ cm9 minipci cards installed. i'm using the newest available image
files. the first AP is currently deployed in the field and behaving
beautifully. it has a single VAP bridged to eth0. the second AP will
be both a repeater and a station. so it is configured w/ 2 VAPs which
are bridged together. this configuration gives a kernel panic. the AP
boots but then after about 15 min or so it panics. i've copied the
config from the working AP and that functions as expected w/ no panic.
if i bring the AP up w/ 2 VAPs but no bridge it stays up as well. the
only time i get the panic is when i enable the bridge between the 2
VAPs. i'm pasting all the relevant info below. any help would be
greatly appreciated.

here is the text from the panic
BUG: unable to handle kernel paging request at virtual address
746f702a
printing eip:
c4859117
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: af_packet ipv6 airprime usbserial ohci_hcd ehci_hcd
usbcore pcmcia firmware_class yenta_socket rsrc_nonstatic pcmcia_core
bridge llc
wlan_scan_ap wlan_scan_sta ppp_generic slhc ip_nat_ftp
ip_conntrack_ftp ipt_TOS ipt_REJECT ipt_REDIRECT ipt_MASQUERADE
xt_MARK ipt_LOG xt_state xt_mark
xt_mac iptable_nat ip_nat ip_conntrack iptable_mangle iptable_filter
ip_tables sc520_wdt natsemi crc32 ath_rate_sample ath_pci wlan ath_hal
(P) hostap_pc
i hostap ieee80211_crypt unix
CPU: 0
EIP: 0060:[<c4859117>] Tainted: P VLI
EFLAGS: 00010287 (2.6.19.2-pyramid.metrix.net #1)
EIP is at ieee80211_input+0x15/0x1595 [wlan]
eax: c3aa3000 ebx: c3aa3000 ecx: 00000016 edx: c10d2b00
esi: c39cf280 edi: 00000000 ebp: 746f6f72 esp: c0321e74
ds: 007b es: 007b ss: 0068
Process swapper (pid: 0, ti=c0320000 task=c02dd3e0 task.ti=c0320000)
Stack: c031da30 00000000 c02df260 00000082 c0130934 c0321fb0 00000000
c0321ebc
c0104796 00000016 c10d2b00 c3aa3000 c10d4280 c1179000 c488a1ea
c10b8000
80000020 c3aa3050 c10d51a0 c10d4280 c10b8000 ffffffc0 c10d2b00
00000c90
Call Trace:
[<c0130934>] handle_level_irq+0xdf/0xff
[<c0104796>] do_IRQ+0x65/0x7b
[<c488a1ea>] ath_hal_process_noisefloor+0x11a/0x30b8 [ath_hal]
[<c022b266>] skb_copy+0xa7/0xae
[<c485a6e7>] ieee80211_input_all+0x50/0x77 [wlan]
[<c48dd446>] ath_rx_tasklet+0x572/0x6da [ath_pci]
[<c011576b>] tasklet_action+0x31/0x51
[<c01159e0>] __do_softirq+0x35/0x73
[<c0115a40>] do_softirq+0x22/0x26
[<c0115b3f>] irq_exit+0x29/0x34
[<c0104796>] do_IRQ+0x65/0x7b
[<c0294520>] schedule+0x47a/0x520
[<c0102e5a>] common_interrupt+0x1a/0x20
[<c0101991>] default_idle+0x31/0x59
[<c01019f1>] cpu_idle+0x38/0x5b
[<c0322651>] start_kernel+0x29b/0x29f
[<c03221b3>] unknown_bootoption+0x0/0x203
=======================
Code: 41 0a c1 e0 08 09 c2 66 89 53 2a 8d 43 44 89 ca 5b e9 7c ff ff
ff 55 57 56 53 83 c4 80 89 44 24 2c 89 54 24 28 89 4c 24 24 8b 28 <8b>
85 b8 00 00
00 89 44 24 30 8b 55 00 89 54 24 34 8b 4c 24 2c
EIP: [<c4859117>] ieee80211_input+0x15/0x1595 [wlan] SS:ESP
0068:c0321e74
<0>Kernel panic - not syncing: Fatal exception in interrupt

here is the interfaces config file that causes the panic

auto lo
iface lo inet loopback

auto ath0
iface ath0 inet manual
post-down wlanconfig ath0 destroy
pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap # Set
by WiFiAdmin
pre-up iwconfig ath0 essid "WLAN" rate auto rts off frag off #
Set by WiFiAdmin
pre-up iwpriv ath0 wds 1
pre-up sleep 3 # Set by WiFiAdmin

auto ath1
iface ath1 inet manual
post-down wlanconfig ath1 destroy
pre-up wlanconfig ath1 create wlandev wifi0 wlanmode sta
nosbeacon # Set by WiFiAdmin
pre-up iwconfig ath1 essid "WLAN" rate auto rts off frag off #
Set by WiFiAdmin
pre-up iwpriv ath1 wds 1
pre-up ifconfig ath1 up
pre-up sleep 5 # Set by WiFiAdmin
pre-up ifconfig ath0 up
pre-up sleep 3

auto br0
iface br0 inet static
address 192.168.100.95
netmask 255.255.255.0
broadcast 192.168.100.255
gateway 192.168.100.1
bridge_ports ath0 ath1

Frank Knox

unread,
Jan 23, 2009, 9:44:00 PM1/23/09
to pyrami...@googlegroups.com
Can you try this and see if it still happens.

------
/etc/network/interfaces
------
auto br0
iface br0 inet static
address 192.168.100.95
netmask 255.255.255.0
broadcast 192.168.100.255
gateway 192.168.100.1
pre-up ifconfig ath0 down
pre-up ifconfig ath1 down
pre-up brctl addbr br0
pre-up brctl addif br0 ath0
pre-up brctl addif br0 ath1
pre-up ifconfig ath0 0.0.0.0
pre-up ifconfig ath1 0.0.0.0
post-down ifconfig ath0 down
post-down ifconfig ath1 down
post-down ifconfig br0 down
post-down brctl delif br0 ath0
post-down brctl delif br0 ath1
post-down brctl delbr br0

-------
Some times the bridge-utils has a problem with bridge_port control
Just test this first.
-------

graham

unread,
Jan 26, 2009, 9:41:33 AM1/26/09
to pyramidlinux
thanks for the help. per frank's suggestion i changed my interfaces
file to this:
pre-up ifconfig ath0 down
pre-up ifconfig ath1 down
pre-up brctl addbr br0
pre-up brctl addif br0 ath0
pre-up brctl addif br0 ath1
pre-up ifconfig ath0 0.0.0.0
pre-up ifconfig ath1 0.0.0.0
post-down ifconfig ath0 down
post-down ifconfig ath1 down
post-down ifconfig br0 down
post-down brctl delif br0 ath0
post-down brctl delif br0 ath1
post-down brctl delbr br0

but i still had a kernel panic waiting for me when i came in this
morning. anything else that i might try?

BUG: unable to handle kernel paging request at virtual address
746f702a
printing eip:
c48591a9
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: af_packet sierra airprime usbserial ohci_hcd ipv6
ehci_hcd usbcore bridge llc wlan_scan_sta wlan_scan_ap pcmcia
firmware_class yenta_
socket rsrc_nonstatic pcmcia_core ppp_generic slhc ip_nat_ftp
ip_conntrack_ftp ipt_TOS ipt_REJECT ipt_REDIRECT ipt_MASQUERADE
xt_MARK ipt_LOG xt_state x
t_mark xt_mac iptable_nat ip_nat ip_conntrack iptable_mangle
iptable_filter ip_tables natsemi crc32 ath_rate_sample ath_pci wlan
ath_hal(P) hostap_pci h
ostap ieee80211_crypt unix
CPU: 0
EIP: 0060:[<c48591a9>] Tainted: P VLI
EFLAGS: 00010283 (2.6.19.2-pyramid.metrix.net #1)
EIP is at ieee80211_input+0x15/0x1692 [wlan]
eax: c3bd1000 ebx: c3bd1000 ecx: 0000001c edx: c3bd59a0
esi: c3a85280 edi: 00000000 ebp: 746f6f72 esp: c0321e70
ds: 007b es: 007b ss: 0068
Process swapper (pid: 0, ti=c0320000 task=c02dd3e0 task.ti=c0320000)
Stack: 00000286 c3bd52e0 00000246 c48d7e0b c3852d90 c3bc6040 c485a804
0000002f
000015b3 0000001c c3bd59a0 c3bd1000 c1148280 c1179000 c3bd1000
c488a1ea
80000000 c3bd1050 c3868000 c11491a8 c1148280 ffffffc0 c3bd59a0
00000c90
Call Trace:
[<c48d7e0b>] ath_recv_mgmt+0x0/0x19e [ath_pci]
[<c485a804>] ieee80211_input+0x1670/0x1692 [wlan]
[<c488a1ea>] ath_hal_process_noisefloor+0x11a/0x30b8 [ath_hal]
[<c022b266>] skb_copy+0xa7/0xae
[<c485a876>] ieee80211_input_all+0x50/0x77 [wlan]
[<c48de758>] ath_rx_tasklet+0x58f/0x6f3 [ath_pci]
[<c011576b>] tasklet_action+0x31/0x51
[<c01159e0>] __do_softirq+0x35/0x73
[<c0115a40>] do_softirq+0x22/0x26
[<c0115b3f>] irq_exit+0x29/0x34
[<c0104796>] do_IRQ+0x65/0x7b
[<c0294520>] schedule+0x47a/0x520
[<c0102e5a>] common_interrupt+0x1a/0x20
[<c0101991>] default_idle+0x31/0x59
[<c01019f1>] cpu_idle+0x38/0x5b
[<c0322651>] start_kernel+0x29b/0x29f
[<c03221b3>] unknown_bootoption+0x0/0x203
=======================
Code: 41 0a c1 e0 08 09 c2 66 89 53 2a 8d 43 44 89 ca 5b e9 7c ff ff
ff 55 57 56 53 83 c4 80 89 44 24 2c 89 54 24 28 89 4c 24 24 8b 28 <8b>
85 b8 00 00
00 89 44 24 30 8b 55 00 89 54 24 34 8b 4c 24 2c
EIP: [<c48591a9>] ieee80211_input+0x15/0x1692 [wlan] SS:ESP
0068:c0321e70
<0>Kernel panic - not syncing: Fatal exception in interrupt

thanks again for the assistance.

g

graham

unread,
Jan 28, 2009, 3:05:34 PM1/28/09
to pyramidlinux
so i've narrowed things down a little more here. its the "iwpriv ath
[0,1] wds 1" command that causes the panic. as i understand it that is
what enables the 4 address headers. so bringing the bridge up and
having the VAPs briged works ok. when i enable wds is when the problem
starts. as i've said it doesn't panic immediately but it panics w/in
30 min.

any help, even troubleshooting tips, would be greatly appreciated.
madwifi's documentation is less than steller.

thanks again

g

Frank Knox

unread,
Jan 29, 2009, 12:32:53 AM1/29/09
to pyrami...@googlegroups.com
Could you give us some info on the hardware you are using.

Radio Cards (make model)
Motherboard (make model)
Version of Pyramid you are using
Did you upgrade the madwifi drivers and other files from the pyramid site?
Maybe we can narrow it down from there.

graham

unread,
Jan 29, 2009, 12:08:57 PM1/29/09
to pyramidlinux
>Radio Cards (make model)
single card: Wistron-Neweb CM9
wifi0: Atheros 5212: mem=0xa0000000, irq=10

>Motherboard (make model)
soekris net4526

>Version of Pyramid you are using
both versions 1.0b5 and 1.0b6 display the behavior

>Did you upgrade the madwifi drivers and other files from the pyramid site?
no i'm using the versions that came w/ the image

ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413,
RF5413)
wlan: 0.9.4
ath_pci: 0.9.4
ath_rate_sample: 1.2 (0.9.4)

modinfo ath_pci
filename: /lib/modules/2.6.19.2-pyramid.metrix.net/net/
ath_pci.ko
license: Dual BSD/GPL
version: 0.9.4
description: Support for Atheros 802.11 wireless LAN cards.
author: Errno Consulting, Sam Leffler
srcversion: D3FD3BD11169A96DBCFF8DE
alias: pci:v0000168Cd00009013sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000001Dsv*sd*bc*sc*i*
alias: pci:v0000168Cd0000001Csv*sd*bc*sc*i*
alias: pci:v0000168Cd0000001Bsv*sd*bc*sc*i*
alias: pci:v0000168Cd0000001Asv*sd*bc*sc*i*
alias: pci:v0000168Cd00000019sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000018sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000017sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000016sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000015sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000101Asv*sd*bc*sc*i*
alias: pci:v0000168Cd00001014sv*sd*bc*sc*i*
alias: pci:v000010B7d00000013sv*sd*bc*sc*i*
alias: pci:v0000A727d00000013sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000013sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000012sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000007sv*sd*bc*sc*i*
depends: ath_hal,wlan
vermagic: 2.6.19.2-pyramid.metrix.net preempt mod_unload ELAN
REGPARM
parm: countrycode:Override default country code (int)
parm: maxvaps:Maximum VAPs (int)
parm: outdoor:Enable/disable outdoor use (int)
parm: xchanmode:Enable/disable extended channel mode (int)
parm: rfkill:Enable/disable RFKILL capability (int)
parm: autocreate:Create ath device in [sta|ap|wds|adhoc|
ahdemo|monitor] mode. defaults to sta, use 'none' to disable
(charp)
parm: ratectl:Rate control algorithm [amrr|minstrel|onoe|
sample], defaults to 'sample' (charp)
parm: ath_debug:Load-time debug output enable (int)

modinfo ath_hal
filename: /lib/modules/2.6.19.2-pyramid.metrix.net/net/
ath_hal.ko
license: Proprietary
version: 0.9.18.0
description: Atheros Hardware Access Layer (HAL)
author: Errno Consulting, Sam Leffler
srcversion: 6109C7067013DAF6BA8B0A2
depends:
vermagic: 2.6.19.2-pyramid.metrix.net preempt mod_unload ELAN
REGPARM

modinfo wlan
filename: /lib/modules/2.6.19.2-pyramid.metrix.net/net/wlan.ko
license: Dual BSD/GPL
version: 0.9.4
description: 802.11 wireless LAN protocol support
author: Errno Consulting, Sam Leffler
srcversion: FE186501F5B510C26DF717C
depends:
vermagic: 2.6.19.2-pyramid.metrix.net preempt mod_unload ELAN
REGPARM
> ...
>
> read more »

graham

unread,
Feb 5, 2009, 12:33:32 PM2/5/09
to pyramidlinux
i've had to put this on the back burner for a couple of days but i'd
still like a resolution. any ideas from anybody? i'm up for trying
anything i'm just running out of ideas.
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages