From: Ben Greear <greearb@candelatech.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] 3.9.0-rc8+ (hacked) splat.
Date: Wed, 01 May 2013 09:57:29 -0700 [thread overview]
Message-ID: <51814979.5030106@candelatech.com> (raw)
In-Reply-To: <51813E15.2040908@openwrt.org>
On 05/01/2013 09:08 AM, Felix Fietkau wrote:
> On 2013-05-01 6:01 PM, Ben Greear wrote:
>> On 04/30/2013 11:05 AM, Ben Greear wrote:
>>> On 04/28/2013 08:05 AM, Ben Greear wrote:
>>>> On 04/27/2013 01:58 AM, Felix Fietkau wrote:
>>>>> On 2013-04-27 1:46 AM, Ben Greear wrote:
>>>>>> Was running around 200 stations against a VAP on this system, and
>>>>>> then changed the channel from 1 to 36 (by restarting hostapd with new
>>>>>> config).
>>>>>>
>>>>>> Looks like null-pointer de-ref... Anyone seen anything similar?
>>>>> I've never seen this one. Please use gdb to figure out the source code
>>>>> line that the NULL pointer deref happens in.
>>>>> As for the 'keycache entry 228 out of range' stuff, I'm going to send a
>>>>> patch for that now.
>>>>
>>>> Thanks.
>>>>
>>>> I'm away from the office for a bit, but will build a debugging kernel
>>>> and crank on this early next week.
>>>
>>> Ok, this is against a modified 3.9.0 tree. My patches are here:
>>>
>>> http://dmz2.candelatech.com/git/gitweb.cgi?p=linux-3.9.dev.y/.git;a=summary
>>>
>>> I'm going to try reproducing against upstream 3.9.0 (using a smaller number of
>>> stations since upstream doesn't have needed optimizations to make it work on
>>> my hardware...)
>>
>> With the wpa_supplicant optimizations I posted yesterday, I can
>> reproduce the crash on a standard 3.9.0 kernel with the regdomain
>> patch AND the "mac80211: Add per-sdata station hash, and sdata hash."
>>
>> https://patchwork.kernel.org/patch/2482351/
>>
>> I was not able to reproduce this without the hash optimization patch,
>> so either it's buggy, or it just makes things a lot faster and that
>> triggers bugs in ath9k more easily.....
> It's buggy. Take a look at this part:
>
>> diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
>> index 238a0cc..6b0fe74 100644
>> --- a/net/mac80211/sta_info.c
>> +++ b/net/mac80211/sta_info.c
>> @@ -965,6 +1018,13 @@ struct ieee80211_sta *ieee80211_find_sta_by_ifaddr(struct ieee80211_hw *hw,
>> {
>> struct sta_info *sta, *nxt;
>>
>> + if (localaddr) {
>> + sta = sta_info_get_by_vif(hw_to_local(hw), localaddr, addr);
>> + if (sta && !sta->uploaded)
>> + return NULL;
>> + return &sta->sta;
>> + }
> If sta is NULL, it'll return &sta->sta, which is non-NULL. It matches
> the null-pointer crash on dereferencing the driver's tid struct inside
> sta->drv_priv.
Ahh, thanks so much!
That does appear to be the cause...
Thanks,
Ben
>
> - Felix
>
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
prev parent reply other threads:[~2013-05-01 16:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-26 23:46 [ath9k-devel] 3.9.0-rc8+ (hacked) splat Ben Greear
2013-04-27 8:58 ` Felix Fietkau
2013-04-28 15:05 ` Ben Greear
2013-04-30 18:05 ` Ben Greear
2013-05-01 16:01 ` Ben Greear
2013-05-01 16:08 ` Felix Fietkau
2013-05-01 16:57 ` Ben Greear [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51814979.5030106@candelatech.com \
--to=greearb@candelatech.com \
--cc=ath9k-devel@lists.ath9k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.