linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gabor Juhos <juhosg@openwrt.org>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: soft-safe -> soft-unsafe lock order detected
Date: Thu, 12 Feb 2009 14:33:10 +0100	[thread overview]
Message-ID: <49942516.2090607@openwrt.org> (raw)
In-Reply-To: <1234444655.1327.3.camel@johannes.local>

Johannes Berg =C3=ADrta:
> On Thu, 2009-02-12 at 13:56 +0100, Gabor Juhos wrote:
>> Johannes Berg =C3=ADrta:
>>> On Thu, 2009-02-12 at 11:16 +0100, Johannes Berg wrote:
>>>>> to a soft-irq-unsafe lock:
>>>>>  (todo_lock){--..}
>>>>> ... which became soft-irq-unsafe at:
>>>>> ...  [<800b2248>] __lock_acquire+0x624/0x844
>>>>>   [<800b24c4>] lock_acquire+0x5c/0x84
>>>>>   [<8006b8c4>] _spin_lock+0x34/0x48
>>>>>   [<c0206d9c>] ieee80211_set_default_key+0x4b8/0x4f0 [mac80211]
>>>> That seems to be incorrect. ieee80211_set_default_key will have
>>>> _irqsave-locked the key lock, so the todo lock is here always lock=
ed in
>>>> an irq-excluded section.
>> Yes, seems to be incorrect.
>>
>>>> The lock is, however, possibly used that way in ieee80211_key_link=
,
>>>> which can be fixed easily and we can remove the todo lock too.
>>> Not true, but the todo_lock should be made to _irqsave in some plac=
es,
>>> it seems.
>=20
> Actually that doesn't seem to be true either...
>=20
>> Should we handle this as a false positive for now, because I have se=
en this only
>> once, and the transfer has not been interrupted? I will do more test=
s on
>> different platforms, and i will come back if this happens again.
>=20
> Yes, I think we should, something seems to be messed up with this
> report. All code paths are regularly executed on all platforms, so we
> should be seeing this a lot more if there was a problem.

Ok. Thank you for the analysis.

Gabor

--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2009-02-12 13:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-10 16:33 soft-safe -> soft-unsafe lock order detected Gabor Juhos
2009-02-12 10:05 ` Johannes Berg
2009-02-12 10:16 ` Johannes Berg
2009-02-12 10:24   ` Johannes Berg
2009-02-12 12:56     ` Gabor Juhos
2009-02-12 13:17       ` Johannes Berg
2009-02-12 13:33         ` Gabor Juhos [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=49942516.2090607@openwrt.org \
    --to=juhosg@openwrt.org \
    --cc=johannes@sipsolutions.net \
    --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).