patch 'net/iavf: fix generic flow error-path leaks' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:03:31 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/b30352fb75248822229b51c99b052f0f78166fb3

Thanks.

Kevin

---
>From b30352fb75248822229b51c99b052f0f78166fb3 Mon Sep 17 00:00:00 2001
From: Anatoly Burakov <anatoly.burakov at intel.com>
Date: Fri, 23 Oct 2026 10:32:25 +0100
Subject: [PATCH] net/iavf: fix generic flow error-path leaks

[ upstream commit d65a1652303adfbd7271fb95c2db0eda9050c6a9 ]

If a flow engine fails to initialize, parsers registered by earlier
engines remain allocated. Pattern matching also leaks its item array
when allocation of the match result fails.

Unwind registered parsers on flow initialization failure and free the
item array on match-result allocation failure.

Fixes: ff2d0c345c3b ("net/iavf: support generic flow API")

Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/net/intel/iavf/iavf_generic_flow.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/drivers/net/intel/iavf/iavf_generic_flow.c b/drivers/net/intel/iavf/iavf_generic_flow.c
index ac928e03e7..cd9a88010b 100644
--- a/drivers/net/intel/iavf/iavf_generic_flow.c
+++ b/drivers/net/intel/iavf/iavf_generic_flow.c
@@ -1815,5 +1815,6 @@ iavf_flow_init(struct iavf_adapter *ad)
 			PMD_INIT_LOG(ERR, "Invalid engine type (%d)",
 				     engine->type);
-			return -ENOTSUP;
+			ret = -ENOTSUP;
+			goto err;
 		}
 
@@ -1822,8 +1823,12 @@ iavf_flow_init(struct iavf_adapter *ad)
 			PMD_INIT_LOG(ERR, "Failed to initialize engine %d",
 				     engine->type);
-			return ret;
+			goto err;
 		}
 	}
 	return 0;
+
+err:
+	iavf_flow_uninit(ad);
+	return ret;
 }
 
@@ -2080,4 +2085,5 @@ iavf_search_pattern_match_item(const struct rte_flow_item pattern[],
 		rte_flow_error_set(error, ENOMEM, RTE_FLOW_ERROR_TYPE_HANDLE,
 				   NULL, "Failed to allocate memory.");
+		rte_free(items);
 		return NULL;
 	}
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:47.298403689 +0000
+++ 0285-net-iavf-fix-generic-flow-error-path-leaks.patch	2026-12-03 12:52:39.227050973 +0000
@@ -1 +1 @@
-From d65a1652303adfbd7271fb95c2db0eda9050c6a9 Mon Sep 17 00:00:00 2001
+From b30352fb75248822229b51c99b052f0f78166fb3 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit d65a1652303adfbd7271fb95c2db0eda9050c6a9 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index 14242e6ebb..cd4d4a012b 100644
+index ac928e03e7..cd9a88010b 100644
@@ -26 +27 @@
-@@ -1822,5 +1822,6 @@ iavf_flow_init(struct iavf_adapter *ad)
+@@ -1815,5 +1815,6 @@ iavf_flow_init(struct iavf_adapter *ad)
@@ -34 +35 @@
-@@ -1829,8 +1830,12 @@ iavf_flow_init(struct iavf_adapter *ad)
+@@ -1822,8 +1823,12 @@ iavf_flow_init(struct iavf_adapter *ad)
@@ -48 +49 @@
-@@ -2048,4 +2053,5 @@ iavf_search_pattern_match_item(const struct rte_flow_item pattern[],
+@@ -2080,4 +2085,5 @@ iavf_search_pattern_match_item(const struct rte_flow_item pattern[],



More information about the stable mailing list