Thread (10 messages) 10 messages, 2 authors, 2009-08-05

RE: kernel panic ieee80211_agg_splice_packets+0x3d/0xc0 [mac80211]

From: Jack Lau <hidden>
Date: 2009-08-02 12:55:07


Pavel
If you are using compat-wireless, I suggest that you try the current
kernel from wireless-testing. It was quite unstable a few days ago, but
it should be cleaned up by now. Since you are using the AP mode, you'll
need this patch, it's still not applied as of now:

http://marc.info/?l=linux-wireless&m=124871936602667&w=2

compat-wireless is great if everything is working, but if something is
broken, the first suspicion is that compat-wireless doesn't backport
something correctly.
I have downloaded v2.6.31-rc4-29204-g6b3a8c9 and compiled it with debugging options mac80211 and ath9k enabled.
You can find where it happens if you kernel is compiled with the debug
information (CONFIG_DEBUG_INFO in .config). Load the mac80211 module in
gdb:

gdb /lib/modules/`uname -r`/kernel/net/mac80211/mac80211.ko

On the gdb prompt, run:

l *(ieee80211_agg_splice_packets+0x3d)
I have compiled the above kernel with debug enabled and the symbols are now present and shows me the lines of code concerned.
Actually, ieee80211_agg_splice_packets is a short function. Perhaps you
could add debug print statements to find possible errors. For instance,
local->hw is used. It would crash if local is NULL. So you add before
that place:

printk("local = %p\n", local);
I have inserted the above printk just above and now prints out on kernel messages.
Likewise, check sta, sta->ampdu_mlme.tid_tx[tid] and local->pending. Or
just print the line numbers. You will see which printk is run last
before the crash.
I am not too sure what you mean by your first sentence. I have added just the one printk line as above.

I now enclose log files of kernel messages from the start of the boot sessions right to the crash.

Also, for some strange reason, the system does not crash when I do a killall on hostapd (I have set it automatically load on startup) and then reload it as detailed on the second log enclosed. This did not use to happen with earlier pre-compiled kernels packages from Ubuntu such as linux-image-2.6.31-4-generic and linux-image-2.6.28-14 where it used to crash all the time.

Regards


Jack
_________________________________________________________________
Windows Live Messenger: Thanks for 10 great years—enjoy free winks and emoticons.
http://clk.atdmt.com/UKM/go/157562755/direct/01/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help