From: Parag Warudkar <parag.lkml@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: LKML <linux-kernel@vger.kernel.org>, linux-wireless@vger.kernel.org
Subject: Re: OOPS in cfg80211_conn_work
Date: Fri, 30 Oct 2009 19:22:27 -0400 [thread overview]
Message-ID: <f7848160910301622t2cf43b5bo5ffeda03ec2cdbfe@mail.gmail.com> (raw)
In-Reply-To: <1256903425.3555.47.camel@johannes.local>
On Friday, October 30, 2009, Johannes Berg <johannes@sipsolutions.net> wrote:
> On Fri, 2009-10-30 at 06:57 -0400, Parag Warudkar wrote:
>>
>> On Fri, 30 Oct 2009, Johannes Berg wrote:
>>
>> > On Thu, 2009-10-29 at 19:17 -0400, Parag Warudkar wrote:
>> > > Oct 29 18:59:06 parag-laptop kernel: [ 143.180037] wlan0:
>> > > deauthenticating from 00:16:01:d6:6f:12 by local choice (reason=3)
>> > > Oct 29 18:59:06 parag-laptop kernel: [ 143.181137] wlan0: direct
>> > > probe to AP 00:16:01:d6:6f:12 (try 1)
>> >
>> > sorry, I can't read this log. please provide a non-wrapped version
>> >
>> How does this look? (Sorry sent it in a rush earlier.)
>> Below also is a disassembly of cfg80211_conn_work.
>
> Thanks. I was going to ask for disassembly but you preempted me, I like
> that :)
>
> Since you say you can easily reproduce this, can you try the patch
> below?
>
> johannes
>
> ---
> net/wireless/sme.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> --- wireless-testing.orig/net/wireless/sme.c 2009-10-30 12:48:09.000000000 +0100
> +++ wireless-testing/net/wireless/sme.c 2009-10-30 12:48:41.000000000 +0100
> @@ -165,7 +165,7 @@ void cfg80211_conn_work(struct work_stru
> struct cfg80211_registered_device *rdev =
> container_of(work, struct cfg80211_registered_device, conn_work);
> struct wireless_dev *wdev;
> - u8 bssid[ETH_ALEN];
> + u8 bssid_buf[ETH_ALEN], *bssid = NULL;
>
> rtnl_lock();
> cfg80211_lock_rdev(rdev);
> @@ -181,7 +181,10 @@ void cfg80211_conn_work(struct work_stru
> wdev_unlock(wdev);
> continue;
> }
> - memcpy(bssid, wdev->conn->params.bssid, ETH_ALEN);
> + if (wdev->conn->params.bssid) {
> + memcpy(bssid_buf, wdev->conn->params.bssid, ETH_ALEN);
> + bssid = bssid_buf;
> + }
> if (cfg80211_conn_do_work(wdev))
> __cfg80211_connect_result(
> wdev->netdev, bssid,
>
>
Seems to have fixed it.
Thanks Johannes.
next prev parent reply other threads:[~2009-10-30 23:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-29 23:17 OOPS in cfg80211_conn_work Parag Warudkar
2009-10-30 6:49 ` Johannes Berg
2009-10-30 10:57 ` Parag Warudkar
2009-10-30 11:50 ` Johannes Berg
2009-10-30 23:22 ` Parag Warudkar [this message]
2009-10-31 6:34 ` Johannes Berg
2009-10-31 13:37 ` Parag Warudkar
2009-10-31 13:47 ` Johannes Berg
2009-10-31 15:11 ` Johannes Berg
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=f7848160910301622t2cf43b5bo5ffeda03ec2cdbfe@mail.gmail.com \
--to=parag.lkml@gmail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--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