Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5941512rwl; Mon, 9 Jan 2023 01:51:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXvkdwKQChcGnM++RPWfhCTzCfPNzWJgbjv70eM/LXgm4aCrKK0cGCk7tj/bw3te9Sg6eM7t X-Received: by 2002:a17:906:9c85:b0:7c1:27a:80ed with SMTP id fj5-20020a1709069c8500b007c1027a80edmr55467548ejc.0.1673257862803; Mon, 09 Jan 2023 01:51:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673257862; cv=none; d=google.com; s=arc-20160816; b=lu9dB5Wli+fWj3ys96XFb4HDxwEEhgidZ4NZjOf5oLPFS9tH/i/UdqgyaBl08SfBA4 /xpmchInq5YG8AD+hMp1fze7DFeVzOsw198t8bFhtoTbNvJ6YJUfohWCyezxk1DyhmTh m4NRZ02UI9bogPvQnNvNxJP1qPB+OFnOMA2CKP3t2EIP2XqSTuWvpjERS2Lu4m422BSI zlwmXekQ9+BzO0OJQ7229XniCKfAjfRL6osev7xDyVftWkM4z0VcU9vfw96kXDIv+kjI i0JuqwuDpNmXG96F7PYKIq0SY2TXTgHwN3XgZBNRezKarKloKu0r6bpheAUkbjnB8Zve 3lVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :dkim-signature; bh=yqqk2EzZfeChfMWrB1gzEFSlZdqXxGS89cKk9izFgVY=; b=B/POXJFcBAk2zzxKr9FWEAhCV7mXQ8nM+PlijJMkOsKA6eDnOS/fKrcvBjM+Suc/v/ 8rfcOBjMYUE77yGpOoX5csUDmk83EZ99OvWvE9miZk/PaT6IXdHrtvB95ScH3kMdw9js pDEK6PBpWM7BSIy04N3waA9Yy9IHxzM3zVG0Hax2IULy/JrGPGV+bOHsWqM+wfEv0LV1 DsD58iBNLvrr6ejq4uIgr5vs4t5SBTh1EfdqlvetF+0Iej93VlF8n+sLaJ4DAQ2NzrVG hQsLSLpUAetH9MiXVzpoHJCc0IRzGhKXV1YEn89etjs/O+kRflbn96uqvRxURanfB40F ImLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ugue+L0h; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt9-20020a170907728900b00839f873bf75si9595764ejc.511.2023.01.09.01.50.46; Mon, 09 Jan 2023 01:51:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ugue+L0h; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236978AbjAIJuP (ORCPT + 65 others); Mon, 9 Jan 2023 04:50:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237048AbjAIJtV (ORCPT ); Mon, 9 Jan 2023 04:49:21 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6A5995AE for ; Mon, 9 Jan 2023 01:48:30 -0800 (PST) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3098oGSs002826; Mon, 9 Jan 2023 09:48:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : to : cc : from : subject : content-type : content-transfer-encoding; s=qcppdkim1; bh=yqqk2EzZfeChfMWrB1gzEFSlZdqXxGS89cKk9izFgVY=; b=Ugue+L0hOlXcLo+DKbUPbEbFRP77du/E495phwwnoyZJW9VipWzuYp8cR8d4wFfoZJ5y wQf2tOxDhE7DTibE0gooH9bCr+8JgqeX+0+Ev5EVZvj88kjZxAdFj0WFvLm5sppeqMaT hFmnDyPuwuGBGxoooDeyqM+MQUkw14bK5osqmD3UibaD2ZKkciM6rKEDS0TnvxTsc278 D6zvxUCF252TvKiZIQsB/gTF8uhJhQybSk3nVRbxM91HhuU1nWSt2H4F8CU59giGymB+ 1ggmSpNhaW+8tlpDC3SmY+9tj+qf7btqqSldCsVXJmcFDRD2tJOEpYXNQYEdHxnCA4XP 1w== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3my0yaasnc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 Jan 2023 09:48:20 +0000 Received: from nasanex01a.na.qualcomm.com (corens_vlan604_snip.qualcomm.com [10.53.140.1]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3099mKqZ006922 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 9 Jan 2023 09:48:20 GMT Received: from [10.253.34.122] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 9 Jan 2023 01:48:19 -0800 Message-ID: Date: Mon, 9 Jan 2023 17:48:16 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Content-Language: en-US To: , CC: From: Wen Gong Subject: authentication timed out by "wifi: mac80211: do link->MLD address translation on RX" Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: PTJ2GypClcugAyHHyzlm3V0Qdho-t7kl X-Proofpoint-ORIG-GUID: PTJ2GypClcugAyHHyzlm3V0Qdho-t7kl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-09_03,2023-01-06_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=861 adultscore=0 malwarescore=0 clxscore=1015 phishscore=0 bulkscore=0 priorityscore=1501 mlxscore=0 impostorscore=0 spamscore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301090069 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Johannes, When the rx packet is skb_copy(), the hdr is not re-assign the new skb value, and lead the operation of "translate to MLD addresses" take effect on the original skb, and lead the check "if (!ether_addr_equal(ifmgd->auth_data->ap_addr, mgmt->bssid))" fail in ieee80211_rx_mgmt_auth(), and thus happened "authentication timed out". After below change, issue not happen again. --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -4854,6 +4854,8 @@ static bool ieee80211_prepare_and_rx_handle(struct ieee80211_rx_data *rx,                         return true;                 } +               hdr = (void *)rx->skb->data; +                 /* skb_copy() does not copy the hw timestamps, so copy it                  * explicitly                  */ commit: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?id=42fb9148c078004d07b4c39bd7b1086b6165780c wifi: mac80211: do link->MLD address translation on RX