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: 702825 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 2209DEB64DA for ; Fri, 14 Jul 2023 05:59:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232770AbjGNF7V (ORCPT ); Fri, 14 Jul 2023 01:59:21 -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 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 [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(-)