All of lore.kernel.org
 help / color / mirror / Atom feed
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: Mon, 09 Jul 2018 09:13:47 +0200	[thread overview]
Message-ID: <1531120427.3298.1.camel@sipsolutions.net> (raw)
In-Reply-To: <da9c6878-56ff-3a63-07cf-dae7813173a2@web.de>

Hi,

> I'll try that, but will probably take another week. My main main work
> station got severe file system corruption, forcing me to reinstall it
> from scratch. I suspect it was something in the wireless testing kernel
> 4.18-rc1 (944ae08d4e71) related to either btrfs or the ssd disk but
> since I needed the system just started over and avoid to run 4.18 if I
> do not have a full backup...

Ouch. FWIW, it's possible to run inside a VM with PCI(e) devices
outside, at least on some machines.

> > > 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.
> > 
> 
> Don't see how we could do that in the kernel, all the relevant
> information is handled in the state machine. I guess an API extension
> telling hostap/supplicant if we can handle rekeys or not would tbe he
> only way to avoid that.

Right. Not really much point for now I guess.

> > 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 :-)
> 
> Instead of returning an error I'll change the code to accept the rekey
> but do nothing with it. (Basically delete the new key and keep the old
> active).
> And of course calling ieee80211_set_disassoc() prior to return "success".

Right. Did you handle/consider modes other than BSS/P2P client btw?

> Let's see how the supplicant will react on a disassoc while doing a rekey...

Shouldn't matter to it, I'd think.

johannes

  reply	other threads:[~2018-07-09  7:13 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
2018-07-08  8:10                           ` Alexander Wetzel
2018-07-09  7:13                             ` Johannes Berg [this message]
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=1531120427.3298.1.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.