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 A4E2F45BB6 for ; Wed, 23 Oct 2024 23:17:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A056140261; Wed, 23 Oct 2024 23:17:16 +0200 (CEST) Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by mails.dpdk.org (Postfix) with ESMTP id E16A640261 for ; Wed, 23 Oct 2024 23:17:14 +0200 (CEST) Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-43155abaf0bso2238335e9.0 for ; Wed, 23 Oct 2024 14:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729718234; x=1730323034; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CLOrpdjZsavdxUS5QbE+7jLJ5BHWK70AbNi7pYpKC1A=; b=enSMeFmoHDhvNEe0GkKUlHPNUf1q+keVR3S87B6LWtGdeB8XohN0pf6j3msjkc8Ls9 KW7R6xW3+nsm5FwNsquU8za+5qNC7ixfDmz8nhF3AAtQLOhIwwweQMfsIo5gV88cEJ6p rhfvwcPTC3ICXBVFJx9LztFzm792OMGEtthjYGT7hdHRaPdwchNjaONygH2ydQ7NvkFV 4pW1z+49nHMnbga40rhjg5NrD3u7j5Y7kTV8A4JMHW3tyBuAVYIiFRuowHLtYftmKdAH RYhEnc7pGA1M/J3cCoVvqftoD8C0XRiQ16NTk1eRarlOku3eUd2zWz/duBrPKxXwTYbb RIxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729718234; x=1730323034; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CLOrpdjZsavdxUS5QbE+7jLJ5BHWK70AbNi7pYpKC1A=; b=rMxhpBzq4LkdIww2zQmk4N8ll0ZV3TOZnv2IKK6tn939isJI4DoamkIrgbNcczRYRG Y33qYMhT+P7mjGAB6k4KQWg2e9QubgH+HE+q+BiU7zhktZmtLDCM47qV3cPH+upq76b9 xqAb9baLbn0cj2g73/RDav6HWANtufYn0vISIHrbE5M/4Wca3zA80hzeQpSERZPFw6jv DBMKpQ0LuvapjStxwMk3a28xWSBb3fheyO9My0FQ5kfgyAdhxFr64mOX0KkzQBWtAC1f /cnKxZq2ED3rnDvvxXolgYWgnmsHdMq/qZ8dmMF+4bhk0EMtkN1qYVmjtS/A+z4wJRi2 vAwg== X-Gm-Message-State: AOJu0YzjB2NRrDI34RHYKXggSRonV3w4+v+DvOOJ+TfKPTUaUYpdPoGe PU2kMTUi+n5WlTlzR/7M/ncNODiHVCrUU/SWOSpKMkepK/R3Ym/TPSvjQQ== X-Google-Smtp-Source: AGHT+IF8+zfFQhxWnxPkVIVZEgrWHDE2T8jjtK91uGV2OCvZSFkV/ICjN0IH8HQg1LPJfRB0cB71Cg== X-Received: by 2002:a05:600c:1d1f:b0:426:6308:e2f0 with SMTP id 5b1f17b1804b1-4318424e986mr34417965e9.26.1729718234158; Wed, 23 Oct 2024 14:17:14 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:21cd:def0:a01d:d2aa]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43186c508ddsm26913075e9.40.2024.10.23.14.17.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 14:17:13 -0700 (PDT) From: luca.boccassi@gmail.com To: Gagandeep Singh Cc: dpdk stable Subject: patch 'crypto/dpaa2_sec: fix memory leak' has been queued to stable release 22.11.7 Date: Wed, 23 Oct 2024 22:15:44 +0100 Message-ID: <20241023211704.1216956-4-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241023211704.1216956-1-luca.boccassi@gmail.com> References: <20241023211704.1216956-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 22.11.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 10/25/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/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/3ae58cc9a3bec71daf039a8e0db505edc5d327cd Thanks. Luca Boccassi --- >From 3ae58cc9a3bec71daf039a8e0db505edc5d327cd 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 eab7091251..a8c99bc4af 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -3444,6 +3444,7 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev, } } else { DPAA2_SEC_ERR("Invalid crypto type"); + rte_free(priv); return -EINVAL; } -- 2.45.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-10-23 22:16:40.710814823 +0100 +++ 0004-crypto-dpaa2_sec-fix-memory-leak.patch 2024-10-23 22:16:40.431940095 +0100 @@ -1 +1 @@ -From 9c0abd27c3fe7a8b842d6fc254ac1241f4ba8b65 Mon Sep 17 00:00:00 2001 +From 3ae58cc9a3bec71daf039a8e0db505edc5d327cd 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 eab7091251..a8c99bc4af 100644 @@ -21 +22 @@ -@@ -3422,6 +3422,7 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev, +@@ -3444,6 +3444,7 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,