Thread (9 messages) 9 messages, 8 authors, 2023-03-13

Re: [PATCH] wifi: cfg80211: Partial revert "wifi: cfg80211: Fix use after free for wext"

From: Eric Curtin <hidden>
Date: 2023-03-11 14:32:29
Also in: asahi, lkml, netdev, regressions, stable

On Sat, 11 Mar 2023 at 14:28, Hector Martin [off-list ref] wrote:
This reverts part of commit 015b8cc5e7c4 ("wifi: cfg80211: Fix use after
free for wext")

This commit broke WPA offload by unconditionally clearing the crypto
modes for non-WEP connections. Drop that part of the patch.

Fixes: 015b8cc5e7c4 ("wifi: cfg80211: Fix use after free for wext")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/linux-wireless/ZAx0TWRBlGfv7pNl@kroah.com/T/#m11e6e0915ab8fa19ce8bc9695ab288c0fe018edf (local)
Signed-off-by: Hector Martin <redacted>
Reviewed-by: Eric Curtin <redacted>

Is mise le meas/Regards,

Eric Curtin
quoted hunk ↗ jump to hunk
---
 net/wireless/sme.c | 2 --
 1 file changed, 2 deletions(-)
diff --git a/net/wireless/sme.c b/net/wireless/sme.c
index 28ce13840a88..7bdeb8eea92d 100644
--- a/net/wireless/sme.c
+++ b/net/wireless/sme.c
@@ -1500,8 +1500,6 @@ int cfg80211_connect(struct cfg80211_registered_device *rdev,
                connect->key = NULL;
                connect->key_len = 0;
                connect->key_idx = 0;
-               connect->crypto.cipher_group = 0;
-               connect->crypto.n_ciphers_pairwise = 0;
        }

        wdev->connect_keys = connkeys;
--
2.35.1
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help