From: Johannes Berg <johannes@sipsolutions.net>
To: Ben Greear <greearb@candelatech.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: kmemleak report related to ieee80211_start_tx_ba_session, tid_start_tx locking issues?
Date: Wed, 12 Jun 2013 23:01:06 +0200 [thread overview]
Message-ID: <1371070866.8601.42.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <51B8E101.2050503@candelatech.com>
On Wed, 2013-06-12 at 13:58 -0700, Ben Greear wrote:
> > When did this report get printed?
>
> I have a system with 100 or so stations constantly trying to
> associate with a set of APs that can handle < 100. This
> effectively causes constant churn of re-associations and
> associated logic...
Right ... I figured it was this.
> Good for shaking out bugs it seems :)
>
> These and other leaks show up after a few minutes of
> running this test scenario. It's not a huge number of
> leaks, however...so usually stations go away w/out leaking.
That's not all too surprising really, the work should run quickly I
guess.
Anyway I guess kmemleak doesn't actually let you pinpoint when the leak
occurred because it just scans periodically and not on every kfree, so
n/m my question.
> > for (i = 0; i < IEEE80211_NUM_TIDS; i++) {
> > + kfree(sta->ampdu_mlme.tid_start_tx[i]);
> > tid_tx = rcu_dereference_raw(sta->ampdu_mlme.tid_tx[i]);
> > if (!tid_tx)
> > continue;
>
> Looks reasonable to me. I was about to start testing similar logic
> in sta_info_free(), but likely your patch is more proper.
>
> I'll give it a try now.
Thanks.
johannes
prev parent reply other threads:[~2013-06-12 21:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-12 18:21 kmemleak report related to ieee80211_start_tx_ba_session, tid_start_tx locking issues? Ben Greear
2013-06-12 20:46 ` Johannes Berg
2013-06-12 20:58 ` Ben Greear
2013-06-12 21:01 ` Johannes Berg [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=1371070866.8601.42.camel@jlt4.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=greearb@candelatech.com \
--cc=linux-wireless@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).