From: Johannes Berg <johannes@sipsolutions.net>
To: Alexander Wetzel <alexander.wetzel@web.de>
Cc: linux-wireless@vger.kernel.org, greearb@candelatech.com,
s.gottschall@dd-wrt.com
Subject: Re: [PATCH v2] mac80211: Fix wlan freezes under load at rekey
Date: Wed, 04 Jul 2018 02:06:27 +0200 [thread overview]
Message-ID: <1530662787.4735.59.camel@sipsolutions.net> (raw)
In-Reply-To: <b1913512-7d33-cd9b-5eb5-4d7f367eb41a@web.de>
On Tue, 2018-07-03 at 21:54 +0200, Alexander Wetzel wrote:
> > I think easier would be to just disconnect ourselves? At least if we're
> > in managed mode...
> >
>
> I still have much to learn about 802.11, but so far I did not see way to
> directly disconnect a STA. (Maybe spoofing a "signal lost" event or
> something like that, but I fear complications by losing the sync with
> the remote STA.) Is there any call/signal you have in mind I could test?
ieee80211_set_disassoc(), this can also send a frame out to indicate to
the AP that we're disconnecting instead.
> hostapd or wpa_supplicant are "ordering" mac80211 to install a new key
> and are implementing the state machine and are in a good position to
> handle the fallout... at least theoretically.
Ideally it would even know beforehand that we don't want to handle the
PTK rekeying, and then could reconnect instead of going through the
handshake.
> Instead I get a pop up asking for the PSK. Entering it reconnects
> normally. Cancel the prompt disconnect till a manual reconnect.
> I suspect NetworkManager is handling the rekey like the initial key
> install and then assumes the PSK is wrong. Hardly surprising but also
> highly visible to the users.
That's pretty awkward.
> But then only to those using the now broken rekey...
Yeah, but you don't necessarily control that - i.e. client device and AP
might have different owners :-)
> Using wpa_supplicant directly reconnects after ~15s.
> It also assumes the key is wrong and seems to rate limit the connection
> attempts. Here a log with wpa_supplicat running in the console and dmesg
> -wT output on top of that:
So I think we're probably better off accepting the set_key but not
actually using it, and instead disconnecting... even if that's awkward
and should come with a big comment :-)
johannes
next prev parent reply other threads:[~2018-07-04 0:06 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-24 10:29 [PATCH] mac80211: Fix wlan freezes under load at rekey Alexander Wetzel
2018-03-24 15:29 ` Ben Greear
2018-03-25 19:45 ` Alexander Wetzel
2018-03-25 21:59 ` Ben Greear
2018-03-26 7:43 ` Sebastian Gottschall
2018-03-26 12:22 ` Sebastian Gottschall
2018-03-26 20:24 ` Alexander Wetzel
2018-03-27 13:03 ` Johannes Berg
2018-03-27 13:13 ` Johannes Berg
2018-04-08 20:31 ` Alexander Wetzel
2018-04-09 7:25 ` Johannes Berg
2018-05-15 10:22 ` [PATCH v2] " Alexander Wetzel
2018-05-15 15:50 ` Johannes Berg
2018-05-15 22:41 ` Alexander Wetzel
2018-05-16 6:56 ` Johannes Berg
2018-06-15 11:33 ` Johannes Berg
2018-06-18 21:03 ` Alexander Wetzel
2018-06-18 21:27 ` Johannes Berg
2018-06-19 20:12 ` Alexander Wetzel
2018-06-29 10:12 ` Johannes Berg
2018-06-29 21:14 ` Alexander Wetzel
2018-07-03 9:51 ` Johannes Berg
2018-07-03 19:54 ` Alexander Wetzel
2018-07-04 0:06 ` Johannes Berg [this message]
2018-07-08 8:10 ` Alexander Wetzel
2018-07-09 7:13 ` Johannes Berg
2018-07-11 16:59 ` Alexander Wetzel
2018-07-15 9:10 ` [PATCH v2] mac80211: Fix wlan freezes/clear text packet leaks " Alexander Wetzel
2018-07-10 21:05 ` [PATCH v2] mac80211: Fix wlan freezes under load " Denis Kenzior
2018-07-11 17:08 ` Alexander Wetzel
2018-07-11 19:43 ` Denis Kenzior
2018-06-30 21:27 ` [PATCH v3] mac80211: Fix PTK rekey freezes and cleartext leaks Alexander Wetzel
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=1530662787.4735.59.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=alexander.wetzel@web.de \
--cc=greearb@candelatech.com \
--cc=linux-wireless@vger.kernel.org \
--cc=s.gottschall@dd-wrt.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).