patch 'net/iavf: fix leak on IPsec init failure' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:00:38 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.5

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/08/26. 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/f2432e0c4c4c86ee55faf9ca05d1dac710c5de9c

Thanks.

Kevin

---
>From f2432e0c4c4c86ee55faf9ca05d1dac710c5de9c Mon Sep 17 00:00:00 2001
From: Anatoly Burakov <anatoly.burakov at intel.com>
Date: Tue, 15 Sep 2026 09:37:00 +0100
Subject: [PATCH] net/iavf: fix leak on IPsec init failure

[ upstream commit 2f99eaab75a8197cd89d1923144f525dfc5f25f4 ]

Currently, during `dev_init`, we try to create a security context. At that
point we have already initialized the rte_flow engines, so any subsequent
failures must trigger flow engines uninit. However, if we fail to create a
security context (or if its initialization fails), we do not uninit the
rte_flow engines. Fix the code to do so on failure.

Fixes: 45570d7e4439 ("net/iavf: fix resource leak on probing failure")

Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
Acked-by: Radu Nicolau <radu.nicolau at intel.com>
---
 drivers/net/intel/iavf/iavf_ethdev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/intel/iavf/iavf_ethdev.c b/drivers/net/intel/iavf/iavf_ethdev.c
index d3cb635dc6..301d70e050 100644
--- a/drivers/net/intel/iavf/iavf_ethdev.c
+++ b/drivers/net/intel/iavf/iavf_ethdev.c
@@ -3052,5 +3052,5 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
 		if (ret) {
 			PMD_INIT_LOG(ERR, "failed to create ipsec crypto security instance");
-			goto flow_init_err;
+			goto security_init_err;
 		}
 
@@ -3082,4 +3082,5 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
 security_init_err:
 	iavf_security_ctx_destroy(adapter);
+	iavf_flow_uninit(adapter);
 
 flow_init_err:
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:42.475758132 +0000
+++ 0112-net-iavf-fix-leak-on-IPsec-init-failure.patch	2026-12-03 12:52:39.107938636 +0000
@@ -1 +1 @@
-From 2f99eaab75a8197cd89d1923144f525dfc5f25f4 Mon Sep 17 00:00:00 2001
+From f2432e0c4c4c86ee55faf9ca05d1dac710c5de9c Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 2f99eaab75a8197cd89d1923144f525dfc5f25f4 ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -22 +23 @@
-index bdebd74629..a8abe0154c 100644
+index d3cb635dc6..301d70e050 100644
@@ -25 +26 @@
-@@ -3157,5 +3157,5 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
+@@ -3052,5 +3052,5 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
@@ -32 +33 @@
-@@ -3187,4 +3187,5 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
+@@ -3082,4 +3082,5 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)



More information about the stable mailing list