linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH ath-next 0/2] wifi: ath12k: install pairwise key first
@ 2025-05-23  3:49 Baochen Qiang
  2025-05-23  3:49 ` [PATCH ath-next 1/2] wifi: ath12k: avoid bit operation on key flags Baochen Qiang
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Baochen Qiang @ 2025-05-23  3:49 UTC (permalink / raw)
  To: Jeff Johnson; +Cc: linux-wireless, ath12k, linux-kernel, Baochen Qiang

We got report that WCN7850 is not working with IWD [1][2]. Debug
shows the reason is that IWD installs group key before pairwise
key, which goes against WCN7850's firmware.

Reorder key install to workaround this.

[1] https://bugzilla.kernel.org/show_bug.cgi?id=218733
[2] https://lore.kernel.org/all/AS8P190MB12051DDBD84CD88E71C40AD7873F2@AS8P190MB1205.EURP190.PROD.OUTLOOK.COM

Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
---
---
Baochen Qiang (2):
      wifi: ath12k: avoid bit operation on key flags
      wifi: ath12k: install pairwise key first

 drivers/net/wireless/ath/ath12k/core.h |  4 ++
 drivers/net/wireless/ath/ath12k/mac.c  | 80 ++++++++++++++++++++++++++++++----
 drivers/net/wireless/ath/ath12k/wmi.h  |  1 +
 3 files changed, 76 insertions(+), 9 deletions(-)
---
base-commit: 3d933084a072fd5fb5da54c06a017abc0412c86f
change-id: 20250422-ath12k-unicast-key-first-9ce48f797b15

Best regards,
-- 
Baochen Qiang <quic_bqiang@quicinc.com>


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH ath-next 1/2] wifi: ath12k: avoid bit operation on key flags
  2025-05-23  3:49 [PATCH ath-next 0/2] wifi: ath12k: install pairwise key first Baochen Qiang
@ 2025-05-23  3:49 ` Baochen Qiang
  2025-05-23  3:49 ` [PATCH ath-next 2/2] wifi: ath12k: install pairwise key first Baochen Qiang
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 13+ messages in thread
From: Baochen Qiang @ 2025-05-23  3:49 UTC (permalink / raw)
  To: Jeff Johnson; +Cc: linux-wireless, ath12k, linux-kernel, Baochen Qiang

WMI_KEY_PAIRWISE and WMI_KEY_GROUP are not bit fields, change
bit operation to direct assignment to avoid confusion.

Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00217-QCAHKSWPL_SILICONZ-1

Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
---
 drivers/net/wireless/ath/ath12k/mac.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c
index 88b59f3ff87af8b48cb3fafcd364fd9ced4ff197..eb3c6d10e116b098d44cd94ba8e0257a77b54af8 100644
--- a/drivers/net/wireless/ath/ath12k/mac.c
+++ b/drivers/net/wireless/ath/ath12k/mac.c
@@ -4881,9 +4881,9 @@ static int ath12k_mac_set_key(struct ath12k *ar, enum set_key_cmd cmd,
 	}
 
 	if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE)
-		flags |= WMI_KEY_PAIRWISE;
+		flags = WMI_KEY_PAIRWISE;
 	else
-		flags |= WMI_KEY_GROUP;
+		flags = WMI_KEY_GROUP;
 
 	ret = ath12k_install_key(arvif, key, cmd, peer_addr, flags);
 	if (ret) {

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH ath-next 2/2] wifi: ath12k: install pairwise key first
  2025-05-23  3:49 [PATCH ath-next 0/2] wifi: ath12k: install pairwise key first Baochen Qiang
  2025-05-23  3:49 ` [PATCH ath-next 1/2] wifi: ath12k: avoid bit operation on key flags Baochen Qiang
@ 2025-05-23  3:49 ` Baochen Qiang
  2025-06-23  5:44 ` [PATCH ath-next 0/2] " Vasanthakumar Thiagarajan
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 13+ messages in thread
From: Baochen Qiang @ 2025-05-23  3:49 UTC (permalink / raw)
  To: Jeff Johnson; +Cc: linux-wireless, ath12k, linux-kernel, Baochen Qiang

As station, WCN7850 firmware requires pairwise key to be installed before
group key. Currently host does not care about this, so it is up to kernel
or userspace to decide which one will be installed first. In case above
requirement is not met, WCN7850 firmware's EAPOL station machine is messed
up, and finally connection fails [1].

Reorder key install for station interface in that case: this is done by
caching group key first; Later when pairwise key arrives, both can be
installed in required order.

Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00217-QCAHKSWPL_SILICONZ-1

Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218733
Link: https://lore.kernel.org/all/AS8P190MB12051DDBD84CD88E71C40AD7873F2@AS8P190MB1205.EURP190.PROD.OUTLOOK.COM # [1]
Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
---
 drivers/net/wireless/ath/ath12k/core.h |  4 ++
 drivers/net/wireless/ath/ath12k/mac.c  | 76 ++++++++++++++++++++++++++++++----
 drivers/net/wireless/ath/ath12k/wmi.h  |  1 +
 3 files changed, 74 insertions(+), 7 deletions(-)

diff --git a/drivers/net/wireless/ath/ath12k/core.h b/drivers/net/wireless/ath/ath12k/core.h
index 941db6e49d6eaeb03783f7714d433259d887820b..eeaaa0616e48c3cf34f2769a1979e2f67888ac25 100644
--- a/drivers/net/wireless/ath/ath12k/core.h
+++ b/drivers/net/wireless/ath/ath12k/core.h
@@ -345,6 +345,10 @@ struct ath12k_link_vif {
 	bool is_sta_assoc_link;
 
 	struct ath12k_reg_tpc_power_info reg_tpc_info;
+
+	bool group_key_valid;
+	struct wmi_vdev_install_key_arg group_key;
+	bool pairwise_key_done;
 };
 
 struct ath12k_vif {
diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c
index eb3c6d10e116b098d44cd94ba8e0257a77b54af8..05a17ad2eaeea00c938b16d22fb8e7605dfb4007 100644
--- a/drivers/net/wireless/ath/ath12k/mac.c
+++ b/drivers/net/wireless/ath/ath12k/mac.c
@@ -4731,14 +4731,13 @@ static int ath12k_install_key(struct ath12k_link_vif *arvif,
 		.key_len = key->keylen,
 		.key_data = key->key,
 		.key_flags = flags,
+		.ieee80211_key_cipher = key->cipher,
 		.macaddr = macaddr,
 	};
 	struct ath12k_vif *ahvif = arvif->ahvif;
 
 	lockdep_assert_wiphy(ath12k_ar_to_hw(ar)->wiphy);
 
-	reinit_completion(&ar->install_key_done);
-
 	if (test_bit(ATH12K_FLAG_HW_CRYPTO_DISABLED, &ar->ab->dev_flags))
 		return 0;
 
@@ -4747,7 +4746,7 @@ static int ath12k_install_key(struct ath12k_link_vif *arvif,
 		/* arg.key_cipher = WMI_CIPHER_NONE; */
 		arg.key_len = 0;
 		arg.key_data = NULL;
-		goto install;
+		goto check_order;
 	}
 
 	switch (key->cipher) {
@@ -4775,19 +4774,82 @@ static int ath12k_install_key(struct ath12k_link_vif *arvif,
 		key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV |
 			      IEEE80211_KEY_FLAG_RESERVE_TAILROOM;
 
+check_order:
+	if (ahvif->vdev_type == WMI_VDEV_TYPE_STA &&
+	    arg.key_flags == WMI_KEY_GROUP) {
+		if (cmd == SET_KEY) {
+			if (arvif->pairwise_key_done) {
+				ath12k_dbg(ar->ab, ATH12K_DBG_MAC,
+					   "vdev %u pairwise key done, go install group key\n",
+					   arg.vdev_id);
+				goto install;
+			} else {
+				/* WCN7850 firmware requires pairwise key to be installed
+				 * before group key. In case group key comes first, cache
+				 * it and return. Will revisit it once pairwise key gets
+				 * installed.
+				 */
+				arvif->group_key = arg;
+				arvif->group_key_valid = true;
+				ath12k_dbg(ar->ab, ATH12K_DBG_MAC,
+					   "vdev %u group key before pairwise key, cache and skip\n",
+					   arg.vdev_id);
+
+				ret = 0;
+				goto out;
+			}
+		} else {
+			arvif->group_key_valid = false;
+		}
+	}
+
 install:
-	ret = ath12k_wmi_vdev_install_key(arvif->ar, &arg);
+	reinit_completion(&ar->install_key_done);
 
+	ret = ath12k_wmi_vdev_install_key(arvif->ar, &arg);
 	if (ret)
 		return ret;
 
 	if (!wait_for_completion_timeout(&ar->install_key_done, 1 * HZ))
 		return -ETIMEDOUT;
 
-	if (ether_addr_equal(macaddr, arvif->bssid))
-		ahvif->key_cipher = key->cipher;
+	if (ether_addr_equal(arg.macaddr, arvif->bssid))
+		ahvif->key_cipher = arg.ieee80211_key_cipher;
+
+	if (ar->install_key_status) {
+		ret = -EINVAL;
+		goto out;
+	}
+
+	if (ahvif->vdev_type == WMI_VDEV_TYPE_STA &&
+	    arg.key_flags == WMI_KEY_PAIRWISE) {
+		if (cmd == SET_KEY) {
+			arvif->pairwise_key_done = true;
+			if (arvif->group_key_valid) {
+				/* Install cached GTK */
+				arvif->group_key_valid = false;
+				arg = arvif->group_key;
+				ath12k_dbg(ar->ab, ATH12K_DBG_MAC,
+					   "vdev %u pairwise key done, group key ready, go install\n",
+					   arg.vdev_id);
+				goto install;
+			}
+		} else {
+			arvif->pairwise_key_done = false;
+		}
+	}
+
+out:
+	if (ret) {
+		/* In case of failure userspace may not do DISABLE_KEY
+		 * but triggers re-connection directly, so manually reset
+		 * status here.
+		 */
+		arvif->group_key_valid = false;
+		arvif->pairwise_key_done = false;
+	}
 
-	return ar->install_key_status ? -EINVAL : 0;
+	return ret;
 }
 
 static int ath12k_clear_peer_keys(struct ath12k_link_vif *arvif,
diff --git a/drivers/net/wireless/ath/ath12k/wmi.h b/drivers/net/wireless/ath/ath12k/wmi.h
index ac18f75e04492b62594acb159e3b43b81bd6c392..63302302cf87058a87ba99c294810823f714779b 100644
--- a/drivers/net/wireless/ath/ath12k/wmi.h
+++ b/drivers/net/wireless/ath/ath12k/wmi.h
@@ -3746,6 +3746,7 @@ struct wmi_vdev_install_key_arg {
 	u32 key_idx;
 	u32 key_flags;
 	u32 key_cipher;
+	u32 ieee80211_key_cipher;
 	u32 key_len;
 	u32 key_txmic_len;
 	u32 key_rxmic_len;

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH ath-next 0/2] wifi: ath12k: install pairwise key first
  2025-05-23  3:49 [PATCH ath-next 0/2] wifi: ath12k: install pairwise key first Baochen Qiang
  2025-05-23  3:49 ` [PATCH ath-next 1/2] wifi: ath12k: avoid bit operation on key flags Baochen Qiang
  2025-05-23  3:49 ` [PATCH ath-next 2/2] wifi: ath12k: install pairwise key first Baochen Qiang
@ 2025-06-23  5:44 ` Vasanthakumar Thiagarajan
  2025-06-23 14:48 ` Jeff Johnson
  2025-06-25  9:51 ` Johan Hovold
  4 siblings, 0 replies; 13+ messages in thread
From: Vasanthakumar Thiagarajan @ 2025-06-23  5:44 UTC (permalink / raw)
  To: Baochen Qiang, Jeff Johnson; +Cc: linux-wireless, ath12k, linux-kernel



On 5/23/2025 9:19 AM, Baochen Qiang wrote:
> We got report that WCN7850 is not working with IWD [1][2]. Debug
> shows the reason is that IWD installs group key before pairwise
> key, which goes against WCN7850's firmware.
> 
> Reorder key install to workaround this.
> 
> [1] https://bugzilla.kernel.org/show_bug.cgi?id=218733
> [2] https://lore.kernel.org/all/AS8P190MB12051DDBD84CD88E71C40AD7873F2@AS8P190MB1205.EURP190.PROD.OUTLOOK.COM
> 
> Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
> ---
> ---
> Baochen Qiang (2):
>        wifi: ath12k: avoid bit operation on key flags
>        wifi: ath12k: install pairwise key first
> 
>   drivers/net/wireless/ath/ath12k/core.h |  4 ++
>   drivers/net/wireless/ath/ath12k/mac.c  | 80 ++++++++++++++++++++++++++++++----
>   drivers/net/wireless/ath/ath12k/wmi.h  |  1 +
>   3 files changed, 76 insertions(+), 9 deletions(-)

Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH ath-next 0/2] wifi: ath12k: install pairwise key first
  2025-05-23  3:49 [PATCH ath-next 0/2] wifi: ath12k: install pairwise key first Baochen Qiang
                   ` (2 preceding siblings ...)
  2025-06-23  5:44 ` [PATCH ath-next 0/2] " Vasanthakumar Thiagarajan
@ 2025-06-23 14:48 ` Jeff Johnson
  2025-06-25  9:51 ` Johan Hovold
  4 siblings, 0 replies; 13+ messages in thread
From: Jeff Johnson @ 2025-06-23 14:48 UTC (permalink / raw)
  To: Jeff Johnson, Baochen Qiang; +Cc: linux-wireless, ath12k, linux-kernel


On Fri, 23 May 2025 11:49:00 +0800, Baochen Qiang wrote:
> We got report that WCN7850 is not working with IWD [1][2]. Debug
> shows the reason is that IWD installs group key before pairwise
> key, which goes against WCN7850's firmware.
> 
> Reorder key install to workaround this.
> 
> [1] https://bugzilla.kernel.org/show_bug.cgi?id=218733
> [2] https://lore.kernel.org/all/AS8P190MB12051DDBD84CD88E71C40AD7873F2@AS8P190MB1205.EURP190.PROD.OUTLOOK.COM
> 
> [...]

Applied, thanks!

[1/2] wifi: ath12k: avoid bit operation on key flags
      commit: 49375e11819b0d0f59ba59726d8e0b47656f5406
[2/2] wifi: ath12k: install pairwise key first
      commit: 66e865f9dc78d00e6d1c8c6624cb0c9004e5aafb

Best regards,
-- 
Jeff Johnson <jeff.johnson@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH ath-next 0/2] wifi: ath12k: install pairwise key first
  2025-05-23  3:49 [PATCH ath-next 0/2] wifi: ath12k: install pairwise key first Baochen Qiang
                   ` (3 preceding siblings ...)
  2025-06-23 14:48 ` Jeff Johnson
@ 2025-06-25  9:51 ` Johan Hovold
  2025-06-25 10:15   ` Baochen Qiang
  4 siblings, 1 reply; 13+ messages in thread
From: Johan Hovold @ 2025-06-25  9:51 UTC (permalink / raw)
  To: Baochen Qiang
  Cc: Jeff Johnson, linux-wireless, ath12k, linux-kernel, Gregoire,
	Sebastian Reichel

[ +CC: Gregoire ]

On Fri, May 23, 2025 at 11:49:00AM +0800, Baochen Qiang wrote:
> We got report that WCN7850 is not working with IWD [1][2]. Debug
> shows the reason is that IWD installs group key before pairwise
> key, which goes against WCN7850's firmware.
> 
> Reorder key install to workaround this.
> 
> [1] https://bugzilla.kernel.org/show_bug.cgi?id=218733
> [2] https://lore.kernel.org/all/AS8P190MB12051DDBD84CD88E71C40AD7873F2@AS8P190MB1205.EURP190.PROD.OUTLOOK.COM
> 
> Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
> ---
> ---
> Baochen Qiang (2):
>       wifi: ath12k: avoid bit operation on key flags
>       wifi: ath12k: install pairwise key first

Thanks for fixing this, Baochen.

I noticed the patches weren't clearly marked as fixes. Do you think we
should ask the stable team to backport these once they are in mainline
(e.g. after 6.17-rc1 is out)? Or do you think they are too intrusive and
risky to backport or similar?

[ Also please try to remember to CC any (public) reporters. I only found
  out today that this had been addressed in linux-next. ]

Johan

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH ath-next 0/2] wifi: ath12k: install pairwise key first
  2025-06-25  9:51 ` Johan Hovold
@ 2025-06-25 10:15   ` Baochen Qiang
  2025-06-25 14:48     ` Jeff Johnson
  0 siblings, 1 reply; 13+ messages in thread
From: Baochen Qiang @ 2025-06-25 10:15 UTC (permalink / raw)
  To: Johan Hovold
  Cc: Jeff Johnson, linux-wireless, ath12k, linux-kernel, Gregoire,
	Sebastian Reichel



On 6/25/2025 5:51 PM, Johan Hovold wrote:
> [ +CC: Gregoire ]
> 
> On Fri, May 23, 2025 at 11:49:00AM +0800, Baochen Qiang wrote:
>> We got report that WCN7850 is not working with IWD [1][2]. Debug
>> shows the reason is that IWD installs group key before pairwise
>> key, which goes against WCN7850's firmware.
>>
>> Reorder key install to workaround this.
>>
>> [1] https://bugzilla.kernel.org/show_bug.cgi?id=218733
>> [2] https://lore.kernel.org/all/AS8P190MB12051DDBD84CD88E71C40AD7873F2@AS8P190MB1205.EURP190.PROD.OUTLOOK.COM
>>
>> Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
>> ---
>> ---
>> Baochen Qiang (2):
>>       wifi: ath12k: avoid bit operation on key flags
>>       wifi: ath12k: install pairwise key first
> 
> Thanks for fixing this, Baochen.
> 
> I noticed the patches weren't clearly marked as fixes. Do you think we
> should ask the stable team to backport these once they are in mainline
> (e.g. after 6.17-rc1 is out)? Or do you think they are too intrusive and
> risky to backport or similar?

Yeah, I think they should be backported.

> 
> [ Also please try to remember to CC any (public) reporters. I only found
>   out today that this had been addressed in linux-next. ]

Thanks, will keep in mind.

> 
> Johan


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH ath-next 0/2] wifi: ath12k: install pairwise key first
  2025-06-25 10:15   ` Baochen Qiang
@ 2025-06-25 14:48     ` Jeff Johnson
  2025-06-25 14:57       ` Johan Hovold
                         ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Jeff Johnson @ 2025-06-25 14:48 UTC (permalink / raw)
  To: stable
  Cc: Jeff Johnson, linux-wireless, ath12k, linux-kernel, Gregoire,
	Sebastian Reichel, Baochen Qiang, Johan Hovold

On 6/25/2025 3:15 AM, Baochen Qiang wrote:
> 
> 
> On 6/25/2025 5:51 PM, Johan Hovold wrote:
>> [ +CC: Gregoire ]
>>
>> On Fri, May 23, 2025 at 11:49:00AM +0800, Baochen Qiang wrote:
>>> We got report that WCN7850 is not working with IWD [1][2]. Debug
>>> shows the reason is that IWD installs group key before pairwise
>>> key, which goes against WCN7850's firmware.
>>>
>>> Reorder key install to workaround this.
>>>
>>> [1] https://bugzilla.kernel.org/show_bug.cgi?id=218733
>>> [2] https://lore.kernel.org/all/AS8P190MB12051DDBD84CD88E71C40AD7873F2@AS8P190MB1205.EURP190.PROD.OUTLOOK.COM
>>>
>>> Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
>>> ---
>>> ---
>>> Baochen Qiang (2):
>>>       wifi: ath12k: avoid bit operation on key flags
>>>       wifi: ath12k: install pairwise key first
>>
>> Thanks for fixing this, Baochen.
>>
>> I noticed the patches weren't clearly marked as fixes. Do you think we
>> should ask the stable team to backport these once they are in mainline
>> (e.g. after 6.17-rc1 is out)? Or do you think they are too intrusive and
>> risky to backport or similar?
> 
> Yeah, I think they should be backported.
> 
>>
>> [ Also please try to remember to CC any (public) reporters. I only found
>>   out today that this had been addressed in linux-next. ]
> 
> Thanks, will keep in mind.

+Stable team,
Per the above discussion please backport the series:
https://msgid.link/20250523-ath12k-unicast-key-first-v1-0-f53c3880e6d8@quicinc.com

This is a 0-day issue so ideally this should be backported from 6.6+

/jeff

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH ath-next 0/2] wifi: ath12k: install pairwise key first
  2025-06-25 14:48     ` Jeff Johnson
@ 2025-06-25 14:57       ` Johan Hovold
  2025-06-25 22:49         ` Jeff Johnson
  2025-06-26  7:29       ` Greg KH
  2025-08-12 15:58       ` Stable Request: " Jeff Johnson
  2 siblings, 1 reply; 13+ messages in thread
From: Johan Hovold @ 2025-06-25 14:57 UTC (permalink / raw)
  To: Jeff Johnson
  Cc: stable, Jeff Johnson, linux-wireless, ath12k, linux-kernel,
	Gregoire, Sebastian Reichel, Baochen Qiang

On Wed, Jun 25, 2025 at 07:48:54AM -0700, Jeff Johnson wrote:
> On 6/25/2025 3:15 AM, Baochen Qiang wrote:
> > On 6/25/2025 5:51 PM, Johan Hovold wrote:
> >> On Fri, May 23, 2025 at 11:49:00AM +0800, Baochen Qiang wrote:

> >>> We got report that WCN7850 is not working with IWD [1][2]. Debug
> >>> shows the reason is that IWD installs group key before pairwise
> >>> key, which goes against WCN7850's firmware.
> >>>
> >>> Reorder key install to workaround this.
> >>>
> >>> [1] https://bugzilla.kernel.org/show_bug.cgi?id=218733
> >>> [2] https://lore.kernel.org/all/AS8P190MB12051DDBD84CD88E71C40AD7873F2@AS8P190MB1205.EURP190.PROD.OUTLOOK.COM
> >>>
> >>> Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
> >>> ---
> >>> ---
> >>> Baochen Qiang (2):
> >>>       wifi: ath12k: avoid bit operation on key flags
> >>>       wifi: ath12k: install pairwise key first
> >>
> >> Thanks for fixing this, Baochen.
> >>
> >> I noticed the patches weren't clearly marked as fixes. Do you think we
> >> should ask the stable team to backport these once they are in mainline
> >> (e.g. after 6.17-rc1 is out)? Or do you think they are too intrusive and
> >> risky to backport or similar?
> > 
> > Yeah, I think they should be backported.

> +Stable team,
> Per the above discussion please backport the series:
> https://msgid.link/20250523-ath12k-unicast-key-first-v1-0-f53c3880e6d8@quicinc.com

These are currently only in linux-next but would need to be in Linus's
tree before they can be backported, so we'll need to send another
requested once they are in mainline.

> This is a 0-day issue so ideally this should be backported from 6.6+

By "0-day" you mean it has been there since the driver was added, right
(and not that it's exploitable or similar)?

Johan

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH ath-next 0/2] wifi: ath12k: install pairwise key first
  2025-06-25 14:57       ` Johan Hovold
@ 2025-06-25 22:49         ` Jeff Johnson
  0 siblings, 0 replies; 13+ messages in thread
From: Jeff Johnson @ 2025-06-25 22:49 UTC (permalink / raw)
  To: Johan Hovold
  Cc: stable, Jeff Johnson, linux-wireless, ath12k, linux-kernel,
	Gregoire, Sebastian Reichel, Baochen Qiang

On 6/25/2025 7:57 AM, Johan Hovold wrote:
> On Wed, Jun 25, 2025 at 07:48:54AM -0700, Jeff Johnson wrote:
>> This is a 0-day issue so ideally this should be backported from 6.6+
> 
> By "0-day" you mean it has been there since the driver was added, right
> (and not that it's exploitable or similar)?

correct

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH ath-next 0/2] wifi: ath12k: install pairwise key first
  2025-06-25 14:48     ` Jeff Johnson
  2025-06-25 14:57       ` Johan Hovold
@ 2025-06-26  7:29       ` Greg KH
  2025-08-12 15:58       ` Stable Request: " Jeff Johnson
  2 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2025-06-26  7:29 UTC (permalink / raw)
  To: Jeff Johnson
  Cc: stable, Jeff Johnson, linux-wireless, ath12k, linux-kernel,
	Gregoire, Sebastian Reichel, Baochen Qiang, Johan Hovold

On Wed, Jun 25, 2025 at 07:48:54AM -0700, Jeff Johnson wrote:
> On 6/25/2025 3:15 AM, Baochen Qiang wrote:
> > 
> > 
> > On 6/25/2025 5:51 PM, Johan Hovold wrote:
> >> [ +CC: Gregoire ]
> >>
> >> On Fri, May 23, 2025 at 11:49:00AM +0800, Baochen Qiang wrote:
> >>> We got report that WCN7850 is not working with IWD [1][2]. Debug
> >>> shows the reason is that IWD installs group key before pairwise
> >>> key, which goes against WCN7850's firmware.
> >>>
> >>> Reorder key install to workaround this.
> >>>
> >>> [1] https://bugzilla.kernel.org/show_bug.cgi?id=218733
> >>> [2] https://lore.kernel.org/all/AS8P190MB12051DDBD84CD88E71C40AD7873F2@AS8P190MB1205.EURP190.PROD.OUTLOOK.COM
> >>>
> >>> Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
> >>> ---
> >>> ---
> >>> Baochen Qiang (2):
> >>>       wifi: ath12k: avoid bit operation on key flags
> >>>       wifi: ath12k: install pairwise key first
> >>
> >> Thanks for fixing this, Baochen.
> >>
> >> I noticed the patches weren't clearly marked as fixes. Do you think we
> >> should ask the stable team to backport these once they are in mainline
> >> (e.g. after 6.17-rc1 is out)? Or do you think they are too intrusive and
> >> risky to backport or similar?
> > 
> > Yeah, I think they should be backported.
> > 
> >>
> >> [ Also please try to remember to CC any (public) reporters. I only found
> >>   out today that this had been addressed in linux-next. ]
> > 
> > Thanks, will keep in mind.
> 
> +Stable team,
> Per the above discussion please backport the series:
> https://msgid.link/20250523-ath12k-unicast-key-first-v1-0-f53c3880e6d8@quicinc.com

<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read:
    https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.

</formletter>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Stable Request: wifi: ath12k: install pairwise key first
  2025-06-25 14:48     ` Jeff Johnson
  2025-06-25 14:57       ` Johan Hovold
  2025-06-26  7:29       ` Greg KH
@ 2025-08-12 15:58       ` Jeff Johnson
  2025-08-12 16:27         ` Greg KH
  2 siblings, 1 reply; 13+ messages in thread
From: Jeff Johnson @ 2025-08-12 15:58 UTC (permalink / raw)
  To: stable
  Cc: Jeff Johnson, linux-wireless, ath12k, linux-kernel, Gregoire,
	Sebastian Reichel, Baochen Qiang, Johan Hovold

Stable team,

Per https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
Option 2 (since the patch was merged before being identified for -stable)
Please consider the following for -stable

subject of the patch:
wifi: ath12k: install pairwise key first

commit ID:
66e865f9dc78d00e6d1c8c6624cb0c9004e5aafb

why you think it should be applied:
This issue impacts all products that use iwd (instead of wpa_supplicant) for
WLAN driver management

what kernel versions you wish it to be applied to:
All LTS kernels from 6.6+

Thanks!
/jeff

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Stable Request: wifi: ath12k: install pairwise key first
  2025-08-12 15:58       ` Stable Request: " Jeff Johnson
@ 2025-08-12 16:27         ` Greg KH
  0 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2025-08-12 16:27 UTC (permalink / raw)
  To: Jeff Johnson
  Cc: stable, Jeff Johnson, linux-wireless, ath12k, linux-kernel,
	Gregoire, Sebastian Reichel, Baochen Qiang, Johan Hovold

On Tue, Aug 12, 2025 at 08:58:52AM -0700, Jeff Johnson wrote:
> Stable team,
> 
> Per https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
> Option 2 (since the patch was merged before being identified for -stable)
> Please consider the following for -stable
> 
> subject of the patch:
> wifi: ath12k: install pairwise key first
> 
> commit ID:
> 66e865f9dc78d00e6d1c8c6624cb0c9004e5aafb
> 
> why you think it should be applied:
> This issue impacts all products that use iwd (instead of wpa_supplicant) for
> WLAN driver management
> 
> what kernel versions you wish it to be applied to:
> All LTS kernels from 6.6+

It only applied cleanly to 6.16.y, so if you want it backported to older
kernels, please provide a working backport.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-08-12 16:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-23  3:49 [PATCH ath-next 0/2] wifi: ath12k: install pairwise key first Baochen Qiang
2025-05-23  3:49 ` [PATCH ath-next 1/2] wifi: ath12k: avoid bit operation on key flags Baochen Qiang
2025-05-23  3:49 ` [PATCH ath-next 2/2] wifi: ath12k: install pairwise key first Baochen Qiang
2025-06-23  5:44 ` [PATCH ath-next 0/2] " Vasanthakumar Thiagarajan
2025-06-23 14:48 ` Jeff Johnson
2025-06-25  9:51 ` Johan Hovold
2025-06-25 10:15   ` Baochen Qiang
2025-06-25 14:48     ` Jeff Johnson
2025-06-25 14:57       ` Johan Hovold
2025-06-25 22:49         ` Jeff Johnson
2025-06-26  7:29       ` Greg KH
2025-08-12 15:58       ` Stable Request: " Jeff Johnson
2025-08-12 16:27         ` Greg KH

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).