From: Gertjan van Wingerde <gwingerde@gmail.com>
To: Mohammed Shafi <shafi.wireless@gmail.com>,
Walter Goldens <goldenstranger@yahoo.com>
Cc: linux-wireless@vger.kernel.org, Ivo van Doorn <ivdoorn@gmail.com>,
Hauke Mehrtens <hauke@hauke-m.de>
Subject: Re: rt2x00: rt2800usb causing kernel panic /compat-wireless/
Date: Wed, 18 May 2011 14:51:05 +0200 [thread overview]
Message-ID: <4DD3C0B9.5070400@gmail.com> (raw)
In-Reply-To: <BANLkTimwBB35HhOBjOq=OyhrVWq9MOZ3tA@mail.gmail.com>
On 05/18/11 14:41, Mohammed Shafi wrote:
> On Wed, May 18, 2011 at 5:26 PM, Walter Goldens
> <goldenstranger@yahoo.com> wrote:
>>>> A very peculiar bug.
>>>>
>>>> With compat-wireless from 16.05 a nasty bug started to
>>> manifest itself. Right around association time, the
>>> rt2800usb causes kernel panic. The system freezes and the
>>> Caps Lock and Num Lock leds on the keyboard begin to flash.
>>>
>>> also ath9k, iwlagn.
>>>
>>>>
>>>> Unfortunately there are no recoverable traces after
>>> the system failure to aid this bug report or to indicate its
>>> origin.
>>>>
>>>> I believe it may somehow be related to Ubuntu's
>>> network-manager. If I turn off the network-manager service,
>>> I can go into monitor mode for example, but if
>>> network-manager is running and I plug my USB dongle, it
>>> starts to associate, a second or two later the system is in
>>> complete meltdown.
>>>
>>> same thing, monitor mode worked perfectly fine.
>>>
>>>>
>>>> Nothing concrete, but a hunch is telling me this has
>>> something to do with the association mechanism of the
>>> rt2800usb. Compat-wireless from few days back exhibits no
>>> such foul play.
>>>
>>> yes just right at the association complete freeze.
>>>
>>
>> That's strange. I wonder what's the connection with this bug and network-manager. Because when I manually tried to associate, dmesg reported the association attempt timed out.
>
> no even when we use iw dev connect command we can see the panic.
Yeah, I've seen this freeze as well using one of the later compat-wireless packages using just iw and wpa_supplicant to bring up the card. This is on all sorts of rt2x00 supported devices.
However, I don't believe this to be an rt2x00-specific bug, as exactly the same rt2x00 sources inside a compat-wireless-2.6.39rc7 package do not produce the freeze.
> some expert suspected that there is a chance of kfree_rcu in
> compat-wireless may have caused the problem
>
That's where my suspicion is as well, but I didn't have the time to further investigate. Since my focus was on rt2x00 I used the compat-wireless-2.6.39rc7 package to test my patches. I only did a quick check, and the kfree_rcu compatibility fix that was done in compat-wireless did seem to match the kfree_rcu code is present in linux-next, but maybe there is an odd side-effect.
---
Gertjan
next prev parent reply other threads:[~2011-05-18 12:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-18 8:18 rt2x00: rt2800usb causing kernel panic /compat-wireless/ Walter Goldens
2011-05-18 9:16 ` Mohammed Shafi
2011-05-18 11:56 ` Walter Goldens
2011-05-18 12:41 ` Mohammed Shafi
2011-05-18 12:51 ` Gertjan van Wingerde [this message]
2011-05-18 13:04 ` Mohammed Shafi
2011-05-18 14:41 ` Larry Finger
2011-05-18 14:46 ` Mohammed Shafi
2011-05-18 15:45 ` Mohammed Shafi
2011-05-18 15:48 ` Mohammed Shafi
2011-05-18 16:04 ` Mohammed Shafi
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=4DD3C0B9.5070400@gmail.com \
--to=gwingerde@gmail.com \
--cc=goldenstranger@yahoo.com \
--cc=hauke@hauke-m.de \
--cc=ivdoorn@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=shafi.wireless@gmail.com \
/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).