From patchwork Wed Jul 12 11:26:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Viswanathan X-Patchwork-Id: 701927 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF848EB64DD for ; Wed, 12 Jul 2023 11:27:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233184AbjGLL1k (ORCPT ); Wed, 12 Jul 2023 07:27:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233178AbjGLL1i (ORCPT ); Wed, 12 Jul 2023 07:27:38 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A7608F; Wed, 12 Jul 2023 04:27:36 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36CAUs0p030726; Wed, 12 Jul 2023 11:27:28 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=Q/LYQEP/seOsiwDhh79aHPlIPS2WT+AlGOt++dLgaSw=; b=OBzXQH78WovVtQ2nRuEFJrft+6a3aiiR8kfH/zm6C89lIoqK5kJjrlNg8ulH40Uvt4q4 u//1hfJGy4ezDemYS4OadkFTgwlXVuyBWnu/iCrWdNTl9Kzrig1kkcBr1mhp5ceEsvZ2 26vh3Wy5UrYX66bRwbnnPyEImsaELJ442Tige+MfXQdLgz9RV0LgYz4NJdULZkCm5eId 3/NRXuupcJbmNatCtruwWNqAhLYV1BrSEcZ02eqdFGYocvg6nzwMItshKBzufXHN7S5m APY2kpqGDs0mEiXNsfAkjmispNPhGXWqISI8MPQSbUPbS+ON12W16AVmikzlINckoJ25 5g== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rsf51ha33-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Jul 2023 11:27:27 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36CBRQNl005639 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Jul 2023 11:27:26 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; Wed, 12 Jul 2023 04:26:51 -0700 From: Vignesh Viswanathan To: , , , , , , , CC: , , Vignesh Viswanathan Subject: [PATCH net-next 0/3] net: qrtr: Few fixes in QRTR Date: Wed, 12 Jul 2023 16:56:28 +0530 Message-ID: <20230712112631.3461793-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: 5cwDYg0KuKG6o0HZxRzCVK1WaIcPY4tD X-Proofpoint-GUID: 5cwDYg0KuKG6o0HZxRzCVK1WaIcPY4tD 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-12_06,2023-07-11_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 malwarescore=0 mlxlogscore=426 impostorscore=0 spamscore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307120102 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 net/qrtr/af_qrtr.c | 5 ++ net/qrtr/ns.c | 139 +++++++++------------------------------------ 2 files changed, 32 insertions(+), 112 deletions(-) Reviewed-by: Simon Horman Reviewed-by: Simon Horman