Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1681851rdh; Mon, 25 Sep 2023 23:27:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7yB15QmXQO5iY79xZViw0vg5/IoagzlsdbLotheHkKhFlh+gvF1pm/G3XGQbYfL8gbuYg X-Received: by 2002:a25:ac1e:0:b0:d3b:108b:c104 with SMTP id w30-20020a25ac1e000000b00d3b108bc104mr8159973ybi.54.1695709659137; Mon, 25 Sep 2023 23:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695709659; cv=none; d=google.com; s=arc-20160816; b=C5k613R1jyNk3m75Qz/XV2r0WrlkxoOGT6wRBALdSHFbQUtuA/xKrY6SARLqmMo6Km zCUKMiX9VmXsmJyNuWAedWib9F/Lf5X2S0cY00lS44SxUwkd/ceBLioI9SD9iJTi45Np +Mf47YGS9wdzzwkG/4WbNeGTjXXEse0SdTAgS+gUoPoqevHh/hQo3Phkxqo2HebxXlCw IRarFroWkJ23cchxDfMvJwoSmNEUD7b049IbfaQAVec+09/JpOXvOT6ZCwsVJeXPkc9l /tiVB9TJBvikMWa9TPi9tI3go90arMUyPoD6R6eMq4Cy6NTVU3CkceHL1Y7GYGIS3Sy9 ZquA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=bbAcJayj1L84857O4FBA8j8oz+LRbSeUOuV7lWJ03ck=; fh=YSlvpPL42+OV5bLFCL+NbyjIvOHCcshrxbzBHge5Zrw=; b=cnq1mlsbLefWMiYpeeb1G8DS7HY6sPmNWan7IO27/ToMDykUgd1e1uE19zanRPznR0 9jjozbmcdAQc0kWwt5pbYUsbJusnq3MOkrtbhvEcLlvMrxbmopndpesGwj27WVYbVA6/ eBnDrpop3dgXDt8RISQxLxkon2fxf7/teywaVUlySSJiRu89oAgqWPQ4KDDXjNNriHEa iWx3AWmerxnWkGsgZGcHPDeJ3kHJhSJUecFXIsvUR0vTdEUAegWlR7CE+oYGDd+WPbby X6waRLjbLvAjRZB5RJEl17zQpAgDtUZSd7LsWe4b2t9ACNwxRmzg8QiozJXp3xMuOUoU /yfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=fgnlhs7n; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id l73-20020a63914c000000b0055be9526b7fsi11899637pge.416.2023.09.25.23.27.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 23:27:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=fgnlhs7n; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 1BEE18198763; Mon, 25 Sep 2023 19:03:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232536AbjIZCDD (ORCPT + 56 others); Mon, 25 Sep 2023 22:03:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbjIZCDC (ORCPT ); Mon, 25 Sep 2023 22:03:02 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65713DF; Mon, 25 Sep 2023 19:02:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1695693774; bh=bbAcJayj1L84857O4FBA8j8oz+LRbSeUOuV7lWJ03ck=; h=Date:From:To:Cc:Subject:From; b=fgnlhs7nWut1MvXLhBgAoJqVXIe81kmzYC22iwIEMNia+IqF8Srl/2ro+CQd12SdS fLwXFuA4bO+MEj/4uUWWw5007o/kO8v47gKzJU3B8YTKa9b523IZA7u03BAzxFHoyA VwdsSpav7Lyv4f/P/hZmkxkql491RRgrFotwDplBHZEt61Gu7iWW/jOULexpnZBlHj dEdQtKeuk3Lz/RXKfT3eHOQCr1ien/bQGXca/aMzsovtHCvpdeNTf4XpmBbqKPHcvX Hp2cNF+h1KSJMOK7hWXmyDBo+3fgfkmjTnr8kz3ZzcI3zKDm3gBZz0tHILcT2IvC+B FPSjNhYqKjsfg== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Rvjgf01Ttz4xP9; Tue, 26 Sep 2023 12:02:53 +1000 (AEST) Date: Tue, 26 Sep 2023 12:02:53 +1000 From: Stephen Rothwell To: Kalle Valo , Johannes Berg , Wireless Cc: Johannes Berg , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: manual merge of the wireless-next tree with the wireless tree Message-ID: <20230926120253.4f1e5730@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/syRt0eOJQcCbFd=QbOtETN4"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 25 Sep 2023 19:03:18 -0700 (PDT) --Sig_/syRt0eOJQcCbFd=QbOtETN4 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the wireless-next tree got conflicts in: net/mac80211/cfg.c between commit: 31db78a4923e ("wifi: mac80211: fix potential key use-after-free") from the wireless tree and commit: 4d3acf4311a0 ("wifi: mac80211: remove sta_mtx") from the wireless-next tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. --=20 Cheers, Stephen Rothwell diff --cc net/mac80211/cfg.c index 0e3a1753a51c,5bc6b1329465..000000000000 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@@ -565,15 -561,7 +561,11 @@@ static int ieee80211_add_key(struct wip break; } =20 - return ieee80211_key_link(key, link, sta); + err =3D ieee80211_key_link(key, link, sta); + /* KRACK protection, shouldn't happen but just silently accept key */ + if (err =3D=3D -EALREADY) + err =3D 0; -=20 - out_unlock: - mutex_unlock(&local->sta_mtx); -=20 + return err; } =20 static struct ieee80211_key * --Sig_/syRt0eOJQcCbFd=QbOtETN4 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmUSO80ACgkQAVBC80lX 0GzQLwgAnBH0KvaJHxWsSbMIwPyNkzaDt8WO3G8EXyCNl5WgLBMq4hzk0Y7dcvJ2 KJQ2s7hh9GZXJ7KzF9hL68uhfNpWJzBZPpUVUokARPS0CceqSpvuJ9rN5RLzVoI4 TOcSgxZpKUl74VbBDzrTPHz6D75Mke4UeVMHq2ZNy7coXOUmVxBwKkvvrjG3lUW7 KfgG+XaviADGiXPPdKn5I9MVFuykqoaNK6n74sZVsbTU3yXl98vkeF2a5DLHbVmJ IAThVHIOH8Gi52stLz4na1gyHsh5BNhalCqNqZAtQyih7W7BRwqYwFo3jr7dD1ls ilWn+L86bQrpwEUMMdz7zejT8VnOZA== =WjiI -----END PGP SIGNATURE----- --Sig_/syRt0eOJQcCbFd=QbOtETN4--