From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B9BD445CE3 for ; Mon, 11 Nov 2024 07:30:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF9044067A; Mon, 11 Nov 2024 07:30:04 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2061.outbound.protection.outlook.com [40.107.94.61]) by mails.dpdk.org (Postfix) with ESMTP id F1D514067A for ; Mon, 11 Nov 2024 07:30:03 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dKGL/BOPHp/D19MZlFpMqoz2NtBjxEaGaJEjS2UOwh4a0cwHTiNJu+TMmGPoXkunDeM+bRWdm7vRjpimu5PcPctyo6j9KBTaaisGw5otxlV/YkUg5DbowpgKzmI99p2vMfsmjUfUw4N4u9k+CzpWQM70sRcdG2tPsWi+AS6jIAShRsLjNNGDWbyYoTUAUh0YaH6HovRvf1ztU3JU4k3RrVo+S9R/yzHKsARf+EvCHDNAR+PF5zP1fv3bTn7cieHlRSK97A+yYFAMVxqbTzZc3Bb6r1z55JveCrSvcuYamfU4t6DDQ+FC6gnXJFssIIyIhScXLqdOVZ4HfhgkEW51Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LfJJilqkouG6TRW8HTBqJtrwchT2DBxpZjkn8+JueQg=; b=yvx0nNYStgUb64ONf9YoMmdMBMOz+ZOZmG0tDxnCvYLPxx0r2HsKgmjko65q2A7honkRh7IisHnszE3PcjKHkmwn1+kOV1vathUVKbJwvSdiizNXIWMNf14q9J37DnkuCyso5phLCbdpwQrevCEOi8PoMGK4YgkMpuITQZlo7EePck5ZuSKKNZ/3nNDVHpEjZQjIe/4syXDo/UEMWJiNASYNiU4XLQk2q6a45Gjcfl8rBrK7D23XLbrfFkOYfAGsjDZxjsJsBTsifV0TNMas8iJse5dJJ8nEGDK9HXXvROHCJ4SG+jLZQABZ3+/r3OS8CRAr5VWXvvcs0jp/iY1byQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=nxp.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LfJJilqkouG6TRW8HTBqJtrwchT2DBxpZjkn8+JueQg=; b=pszousKqiAzMtB0QZepKjiwTdJS3VhJhgBuLjikmOn00aDtHRfMoJSb1RDWNplN2NM2/82Q/KUs4QK1sXdCbiD5fJciE2MtiDB32OzfUXPWR7o9+QKz4JX7KysWh7tYrlbRsGLMIyHAtmptfBpAmTuWzgv7w4dQcsl9scOYfCT1dcYkeswjwVcUSLvmttsbzuyUSPOKA08N2t/n2X7ToGwQB568L6EOGlxTtk3r9I9bjkotqdGYdf/LKo9t0yQSUOjESoIPMHGr0ShfwlJzWjE5YE1yV7cDoeCllktXej76kTL2IB0GGbRxUO9OWCXZP/VKFpxyTTNDjwL7VyKTSJw== Received: from BLAP220CA0015.NAMP220.PROD.OUTLOOK.COM (2603:10b6:208:32c::20) by MN0PR12MB6173.namprd12.prod.outlook.com (2603:10b6:208:3c6::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 06:30:01 +0000 Received: from BN2PEPF000055DF.namprd21.prod.outlook.com (2603:10b6:208:32c:cafe::8b) by BLAP220CA0015.outlook.office365.com (2603:10b6:208:32c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.27 via Frontend Transport; Mon, 11 Nov 2024 06:30:00 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN2PEPF000055DF.mail.protection.outlook.com (10.167.245.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.1 via Frontend Transport; Mon, 11 Nov 2024 06:30:00 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 10 Nov 2024 22:29:47 -0800 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 10 Nov 2024 22:29:45 -0800 From: Xueming Li To: Gagandeep Singh CC: , dpdk stable Subject: patch 'crypto/dpaa2_sec: fix memory leak' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:26:54 +0800 Message-ID: <20241111062847.216344-9-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241111062847.216344-1-xuemingl@nvidia.com> References: <20241111062847.216344-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF000055DF:EE_|MN0PR12MB6173:EE_ X-MS-Office365-Filtering-Correlation-Id: 87b6ec80-e26a-4443-4863-08dd021a4516 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?vLNjb2q619myquLcZfGXRMS+3FST51ntU9mPvMRnufYhl61jT0ALpLOHlziY?= =?us-ascii?Q?cKerL9hb2gf78cbZrgtTf6R+v0PwZvG2S8nHMxvl+7BvUw+A/0/T0r/dsxEE?= =?us-ascii?Q?P2zR7KAMMdHCfDJaB7ksRtoci4wHfQpQb+xdTV0I5pHrsFjdzV8k3XOMkW6X?= =?us-ascii?Q?EvWDCbkWYT1W4Ub90lJj9S2BoqaxF7dvXw7Jboek206Kqco91AL16K1GmjaW?= =?us-ascii?Q?AUoKlHc5is1B/LeFZs6jLezhyOJR+2g0ME7ZunzgBWZpZ0CRgqMOKqPMKs6q?= =?us-ascii?Q?9XLGtm+n0ytiALi8F+K7G+IuQL56aCAfbZwOHkUZeul5kSgEPPc//uxUCNao?= =?us-ascii?Q?6NslhMqXFCMH5RQ4dZTPlOvVewDfCkVbS88sx8q9FzCCUhw/HuWyVJq2AcRB?= =?us-ascii?Q?kBwjk5q9Il+hV4ny4FqvO+tq1cqofR+/FmS4pCUSjHA9iKnyaCPkI6cMVcW4?= =?us-ascii?Q?28H5AyheRP7JWPsmYIgmzRksZ42CgmhDybDtggZyRF+wykDJOfwYBR4a3Bkr?= =?us-ascii?Q?cfVHoNlcRzdS5ObZbD5m1/UuFebAM6vIHR5Gco5HWGLchmAaxYKVYO1wqtuR?= =?us-ascii?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SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230040)(1800799024)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 06:30:00.5940 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 87b6ec80-e26a-4443-4863-08dd021a4516 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN2PEPF000055DF.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6173 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 23.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/30/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=71c5928f9b78def6b0a13fd7e71f5505428b3dd6 Thanks. Xueming Li --- >From 71c5928f9b78def6b0a13fd7e71f5505428b3dd6 Mon Sep 17 00:00:00 2001 From: Gagandeep Singh Date: Tue, 6 Aug 2024 15:57:26 +0530 Subject: [PATCH] crypto/dpaa2_sec: fix memory leak Cc: Xueming Li [ upstream commit 9c0abd27c3fe7a8b842d6fc254ac1241f4ba8b65 ] fixing memory leak while creating the PDCP session with invalid data. Fixes: bef594ec5cc8 ("crypto/dpaa2_sec: support PDCP offload") Signed-off-by: Gagandeep Singh --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index b65bea3b3f..bd5590c02d 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -3466,6 +3466,7 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev, } } else { DPAA2_SEC_ERR("Invalid crypto type"); + rte_free(priv); return -EINVAL; } -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-11 14:23:05.876324924 +0800 +++ 0008-crypto-dpaa2_sec-fix-memory-leak.patch 2024-11-11 14:23:05.012192842 +0800 @@ -1 +1 @@ -From 9c0abd27c3fe7a8b842d6fc254ac1241f4ba8b65 Mon Sep 17 00:00:00 2001 +From 71c5928f9b78def6b0a13fd7e71f5505428b3dd6 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 9c0abd27c3fe7a8b842d6fc254ac1241f4ba8b65 ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -18 +20 @@ -index 2cdf9308f8..e4109e8f0a 100644 +index b65bea3b3f..bd5590c02d 100644 @@ -21 +23 @@ -@@ -3422,6 +3422,7 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev, +@@ -3466,6 +3466,7 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,