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 409B545DB9 for ; Wed, 27 Nov 2024 18:19:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3CC94402AB; Wed, 27 Nov 2024 18:19:36 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 8ED17402AB for ; Wed, 27 Nov 2024 18:19:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1732727974; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RNS0Wi1Udsr61zgYMIqqJs1c1lK1wUA55mmdf+uWJOg=; b=ftDQpQTXIm3GDNAe3V09c4I640ipdn5tl0rn2sFD0u0hRLh+3iC6GZsuy3Z9OKprCV2O7+ xsTG8yTO2ZZSt7j1SA+BNoRNK/SEOfIqsNVzTYYeYZ3kaF2UYnWAHXXgXM/a7YFxTqnkdr 73Ed7OrpXxWk2RyHZ47VJHbGK7r88XM= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-616-arcrry5FOPiLPwwZZaqsEw-1; Wed, 27 Nov 2024 12:19:32 -0500 X-MC-Unique: arcrry5FOPiLPwwZZaqsEw-1 X-Mimecast-MFC-AGG-ID: arcrry5FOPiLPwwZZaqsEw Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C48E519560A1; Wed, 27 Nov 2024 17:19:31 +0000 (UTC) Received: from rh.redhat.com (unknown [10.39.192.52]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 89BB9300019E; Wed, 27 Nov 2024 17:19:30 +0000 (UTC) From: Kevin Traynor To: Gagandeep Singh Cc: dpdk stable Subject: patch 'crypto/dpaa2_sec: fix memory leak' has been queued to stable release 21.11.9 Date: Wed, 27 Nov 2024 17:17:11 +0000 Message-ID: <20241127171916.690404-4-ktraynor@redhat.com> In-Reply-To: <20241127171916.690404-1-ktraynor@redhat.com> References: <20241127171916.690404-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 6QNxt2zRaDiuvZ4vaUbotQX-B4lTEmspXgDgAJLVYXk_1732727971 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true 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 21.11.9 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/02/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://github.com/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/62527cb4bb813cf67951fa2e456516eae02e81dc Thanks. Kevin --- >From 62527cb4bb813cf67951fa2e456516eae02e81dc 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 [ 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 4e4fe4a54c..90bc9adfdc 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -3187,4 +3187,5 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev, } else { DPAA2_SEC_ERR("Invalid crypto type"); + rte_free(priv); return -EINVAL; } -- 2.47.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-27 17:17:38.473848492 +0000 +++ 0004-crypto-dpaa2_sec-fix-memory-leak.patch 2024-11-27 17:17:38.153269000 +0000 @@ -1 +1 @@ -From 9c0abd27c3fe7a8b842d6fc254ac1241f4ba8b65 Mon Sep 17 00:00:00 2001 +From 62527cb4bb813cf67951fa2e456516eae02e81dc Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 9c0abd27c3fe7a8b842d6fc254ac1241f4ba8b65 ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -18 +19 @@ -index 2cdf9308f8..e4109e8f0a 100644 +index 4e4fe4a54c..90bc9adfdc 100644 @@ -21 +22 @@ -@@ -3423,4 +3423,5 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev, +@@ -3187,4 +3187,5 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,