Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5151386rwb; Tue, 8 Aug 2023 22:27:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFpQFHc1TXNqg3xprDAm2FeckbfytcrQI7yRU+QAy8fbCTSBi/lU3NYrCC/urCjygiyO8vK X-Received: by 2002:ac2:5e27:0:b0:4fe:45ca:f8e7 with SMTP id o7-20020ac25e27000000b004fe45caf8e7mr895566lfg.57.1691558870921; Tue, 08 Aug 2023 22:27:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691558870; cv=none; d=google.com; s=arc-20160816; b=cxT4DLiJXY/IEU464yS92GU+eBzEx/ffiUOkgHP9iSUuHIY/ESNkneA5NIg5nvYgbk PsWtZvpZWMuiztZPdDo3QqH32UMjptQZ8XMmLMP6IofZ7+9jEqq84ykCACShxm/h4Ixy 9F6TxeZOzt/Md1mkTfKStKxKKNFHs8R9nGp0YO7OSjg8euC6PuycZzqhUivfDfi7Tg7a 8dS6H2Bp/2sDAjAc/TMGCyuKx/xGRadObkEIPVPBtFOd6+Sspw2pwy1BHf+C9rHjJPlF 1KxFmPDDLfaoFspR802ulFzDUVqUzB1RcTTrpuyvmdT0Tx9da56foQtLxweihAx3YNnG 6h9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=zSMraO1ZfBnQqxcoJNNsj2Xo4IODwLxsQ7cHPDoHClU=; fh=7Zr0xoRuLAFtd9Ofc3hLg83z7J8WxDvtLMprkgFSnWg=; b=m6FSTeYnXEQZsaB5SHca0P7M0bJQxpqGJHhrmVeksikqiJiDPuaScJeOKbzQjYbNBU 0b5WoYpYIjGTWXiiv9Yj0L32jPInRN2zFbkfRkY4n+Pim4yo0SBpIsqj2G5NESvk9rH8 9rY8IqGiI22k08KgIxsn8jv1eGMYu9ptxt7K0GGG+RPULvK713l8twrTvhjLsnXd7K2c 2112VQMr7rIetH1o0kYXrpEc0zIPl3gTktPg7NEL787ASTcSsFKIe26aXQWXQDDDDKDB NikX3djlmRrU84h3O+p5TKg4UfoUn1YIOD1aK3om9AsuGl9UkMe5G+rFEaPoi+mKowjI 747g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=j763HbTz; 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 n8-20020aa7db48000000b00521820ef027si8378230edt.210.2023.08.08.22.27.29; Tue, 08 Aug 2023 22:27:50 -0700 (PDT) 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=j763HbTz; 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 S229783AbjHIE1u (ORCPT + 56 others); Wed, 9 Aug 2023 00:27:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjHIE1u (ORCPT ); Wed, 9 Aug 2023 00:27:50 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8509B19A1 for ; Tue, 8 Aug 2023 21:27:49 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3794N2gh012381; Wed, 9 Aug 2023 04:27:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id; s=qcppdkim1; bh=zSMraO1ZfBnQqxcoJNNsj2Xo4IODwLxsQ7cHPDoHClU=; b=j763HbTzAXywvd5dD116Kvr0HfSxg9gf9M9hBCb5p6OW1SILlRWszrTSlp8M74ZPuSwl N92hK6lokmWj+FvATyPOEqEPysgZC8y7iJKsSE53WQhlRf79uPYk/bbtl42QgiyFN+vt 18GIsElrfj7VhA+uMSWFBj6FpoROARGEJKN50GZc9VZt+DMlGEk7C+gasCqFSpJHsEvE V/Wsd8s6Ixoqekrl1xE+9O4FL29LC2R4KYE4UpqZmxMJN2l/Mh+2FOQwksMLEFswJI3f qs9CaXQf+PPLShDn5iIAYscGC+Y7o4flt1S/DOqBFzgpl7Zy6uwRfkH4iY9qpmyCipGU nw== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3sbmrqhtgd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Aug 2023 04:27:44 +0000 Received: from pps.filterd (NASANPPMTA03.qualcomm.com [127.0.0.1]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 3794RhU1015378; Wed, 9 Aug 2023 04:27:43 GMT Received: from pps.reinject (localhost [127.0.0.1]) by NASANPPMTA03.qualcomm.com (PPS) with ESMTP id 3sbuj0kkb8-1; Wed, 09 Aug 2023 04:27:43 +0000 Received: from NASANPPMTA03.qualcomm.com (NASANPPMTA03.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3794RhBB015372; Wed, 9 Aug 2023 04:27:43 GMT Received: from hprem-linux.qualcomm.com (hprem-linux.qualcomm.com [10.201.162.248]) by NASANPPMTA03.qualcomm.com (PPS) with ESMTP id 3794RguM015366; Wed, 09 Aug 2023 04:27:43 +0000 Received: by hprem-linux.qualcomm.com (Postfix, from userid 4146166) id 3F3ADB00102; Wed, 9 Aug 2023 09:57:41 +0530 (IST) From: Harshitha Prem To: ath12k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Harshitha Prem Subject: [PATCH 0/2] wifi: ath12k: Ignore fragments from uninitialized peer in dp Date: Wed, 9 Aug 2023 09:57:36 +0530 Message-Id: <20230809042738.13394-1-quic_hprem@quicinc.com> X-Mailer: git-send-email 2.17.1 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: mkFtPjyv7EhiKNdwraI1PrhjVGHeNEgN X-Proofpoint-ORIG-GUID: mkFtPjyv7EhiKNdwraI1PrhjVGHeNEgN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-09_01,2023-08-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 malwarescore=0 adultscore=0 mlxscore=0 suspectscore=0 phishscore=0 mlxlogscore=657 impostorscore=0 priorityscore=1501 clxscore=1011 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308090038 X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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 When max virtual ap interfaces are configured in all the bands with ACS and hostapd restart is done every 60s, a crash is observed at random times in dp_rx path. This patch series handles the following: 1. Ignore the fragments of the peer which does not have its datapath initialized. 2. Fix the undefined behavior of __fls which was found during this crash. Harshitha Prem (2): wifi: ath12k: Ignore fragments from uninitialized peer in dp wifi: ath12k: fix undefined behavior with __fls in dp drivers/net/wireless/ath/ath12k/dp.c | 1 + drivers/net/wireless/ath/ath12k/dp_rx.c | 11 ++++++++++- drivers/net/wireless/ath/ath12k/peer.h | 3 +++ 3 files changed, 14 insertions(+), 1 deletion(-) base-commit: 3f257461ab0ab19806bae2bfde4c3cd88dbf050e -- 2.17.1