From patchwork Fri Jul 14 05:58:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Viswanathan X-Patchwork-Id: 12036 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2300829vqm; Thu, 13 Jul 2023 23:09:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlGT1Tjs3JrQFUwUanXP/6sZckkQj+xnred897iwDPx/xbukRy7Ke7acU90bPK3r/JpDwIgA X-Received: by 2002:a05:6512:3ba9:b0:4fb:7381:4c69 with SMTP id g41-20020a0565123ba900b004fb73814c69mr3007934lfv.28.1689314991602; Thu, 13 Jul 2023 23:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689314991; cv=none; d=google.com; s=arc-20160816; b=LBIXE51xbLbj06+n3WghcVcvcWLodimR1z6wSVXKbFGEWi7V9cowwxz3a570op1rrx SHkA1GriU8MQ1PBPLTxQlHqWEhf2ofsS3Yuy0uO8N0p4KxlLU0alLT0l0xl1iRpL1MFW qhVl3pWWTYt8SR2omy71jJtUVCt1Pjlxbb43WWi+iGUqVv3wHNpFLqCsgp/4YK2FnRSG KZLlHJFTlsReIYVWYmXVPtN/sWilqod4ISAOH7nkKb5PpmhBQyjGnGh3KQ3jJZuhDBiE UyWBBqwN8KQgzfNIIhIOsuGkc5SiZCoXIjissn9w5gr6/03aWdv+XlqIJt3Ug0cMMCmD Eg4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=eFQIAsWe3SZj548ldD3oEMJLjtlMkPmMbqc3OtPGkuk=; fh=xHrKp8+bUxvfI02f9POZGuAxmAt/WwBN7skM37uOXYU=; b=ojAdKrdsSO8b/kRlzx+PfgoJmQodDO3Rc6GQDd7Qqk02KAP6h8/eGeyLG7pfvuVz64 vWtWvXfqCq3/EWe/UbRQXrR+dZXqswmA8q2+iE/LzDQrZd7ieev32WKdZ+TgBH/SWcI6 ia2vdz3haLqsa8TpqMJF4HjP1xtbvMoVhevyxOx/EUOsrB6TvS8mdYIMfOAik+gNTOcS D0qxacEA9swHZjzml2WzDLGkOHXyKmeUY8/tnhBk1eH0h66Zje0m0y+UKNbh7/iB+gQx HHwr/A13KkqzYY3dHZJ+vi1aIQ5xYTnKrdBFYDKh6fbPoQazDT0Ff1yo4AR/JMA142m+ 9nrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=F3gVCEGM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t22-20020aa7d4d6000000b0051a4adabcb5si8945999edr.618.2023.07.13.23.09.26; Thu, 13 Jul 2023 23:09:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=F3gVCEGM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S234803AbjGNF7W (ORCPT + 99 others); Fri, 14 Jul 2023 01:59:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbjGNF7T (ORCPT ); Fri, 14 Jul 2023 01:59:19 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D7FD2D45; Thu, 13 Jul 2023 22:59:17 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36E4g40t007206; Fri, 14 Jul 2023 05:59:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=eFQIAsWe3SZj548ldD3oEMJLjtlMkPmMbqc3OtPGkuk=; b=F3gVCEGMDtMAewbrnVzgOwIgi6d1esR/+u+/oZXzk++tCZ73Wg9jGkv8A7fmprWLfLRs 3x/4KpW3D6zM+xf3FpVa1X75mW1dvsuevlOkDuVGNIIUR7EVVOAosTHFiGWVY2BWTDsg Vo4ML6JHi4dR5et7kKP0BjkT7gy5izIS7ogDucqQn0q5JWSmKXq/QgPeMgtlZQhS07Xh jXvOshsgDGu6fYjcDLmvvkqW5tYGni8UY54CWddc9jEjqzzswZB4cNEceuykfdwKxByj kfJCAs4/jXVw9RYW+L66cdJbOacrw7dGkJxEMcxqYkw2/EcDjdKrUr7bvpWe7NzC/HLv Xw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rtptw107w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Jul 2023 05:59:10 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36E5x9sW006656 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Jul 2023 05:59:09 GMT Received: from hu-viswanat-blr.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Thu, 13 Jul 2023 22:59:04 -0700 From: Vignesh Viswanathan To: , , , , , , , CC: , , Vignesh Viswanathan Subject: [PATCH V2 net-next 0/3] net: qrtr: Few fixes in QRTR Date: Fri, 14 Jul 2023 11:28:43 +0530 Message-ID: <20230714055846.1481015-1-quic_viswanat@quicinc.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: JpqEz4vKajHxPf0jmoLL0hKhsO4V_-N0 X-Proofpoint-GUID: JpqEz4vKajHxPf0jmoLL0hKhsO4V_-N0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-14_02,2023-07-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 suspectscore=0 phishscore=0 malwarescore=0 spamscore=0 clxscore=1015 impostorscore=0 mlxscore=0 mlxlogscore=431 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307140055 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,T_SCC_BODY_TEXT_LINE,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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771375156547133341 X-GMAIL-MSGID: 1771375156547133341 Add fixes in QRTR ns to change server and nodes radix tree to xarray to avoid a use-after-free while iterating through the server or nodes radix tree. Also fix the destination port value for IPCR control buffer on older targets. Vignesh Viswanathan (3): net: qrtr: ns: Change servers radix tree to xarray net: qrtr: ns: Change nodes radix tree to xarray net: qrtr: Handle IPCR control port format of older targets [Changes in V2]: Addressed minor comments from Simon and picked up R-b tag. net/qrtr/af_qrtr.c | 5 ++ net/qrtr/ns.c | 139 +++++++++------------------------------------ 2 files changed, 32 insertions(+), 112 deletions(-)