patch 'net/iavf: fix memory leak on error when adding flow parser' has been queued to stable release 24.11.7

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Jul 13 19:17:57 CEST 2026


Hi,

FYI, your patch has been queued to stable release 24.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 07/15/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/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/5ffda3ffca0ed69cffd82c12f7573886a9c8e7b3

Thanks.

Luca Boccassi

---
>From 5ffda3ffca0ed69cffd82c12f7573886a9c8e7b3 Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Fri, 10 Jul 2026 11:34:00 +0100
Subject: [PATCH] net/iavf: fix memory leak on error when adding flow parser

[ upstream commit 2bc0171b147b2f501232e2ef0a28ee551ebdf278 ]

In iavf_register_parser, the final "else" branch is an error leg which
returns immediately, without adding the newly allocated parser_node to a
TAILQ. Add a free call for that parser_node in the error case to avoid
leaking memory.

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

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
Acked-by: Ciara Loftus <ciara.loftus at intel.com>
---
 drivers/net/iavf/iavf_generic_flow.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/iavf/iavf_generic_flow.c b/drivers/net/iavf/iavf_generic_flow.c
index 42ecc90d1d..2ce5488cff 100644
--- a/drivers/net/iavf/iavf_generic_flow.c
+++ b/drivers/net/iavf/iavf_generic_flow.c
@@ -1904,6 +1904,7 @@ iavf_register_parser(struct iavf_flow_parser *parser,
 		list = &vf->dist_parser_list;
 		TAILQ_INSERT_HEAD(list, parser_node, node);
 	} else {
+		rte_free(parser_node);
 		return -EINVAL;
 	}
 
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-07-13 18:17:06.210087683 +0100
+++ 0017-net-iavf-fix-memory-leak-on-error-when-adding-flow-p.patch	2026-07-13 18:17:05.586283053 +0100
@@ -1 +1 @@
-From 2bc0171b147b2f501232e2ef0a28ee551ebdf278 Mon Sep 17 00:00:00 2001
+From 5ffda3ffca0ed69cffd82c12f7573886a9c8e7b3 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 2bc0171b147b2f501232e2ef0a28ee551ebdf278 ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -17 +18 @@
- drivers/net/intel/iavf/iavf_generic_flow.c | 1 +
+ drivers/net/iavf/iavf_generic_flow.c | 1 +
@@ -20,5 +21,5 @@
-diff --git a/drivers/net/intel/iavf/iavf_generic_flow.c b/drivers/net/intel/iavf/iavf_generic_flow.c
-index 84bb161bd1..92ca20031c 100644
---- a/drivers/net/intel/iavf/iavf_generic_flow.c
-+++ b/drivers/net/intel/iavf/iavf_generic_flow.c
-@@ -1911,6 +1911,7 @@ iavf_register_parser(struct iavf_flow_parser *parser,
+diff --git a/drivers/net/iavf/iavf_generic_flow.c b/drivers/net/iavf/iavf_generic_flow.c
+index 42ecc90d1d..2ce5488cff 100644
+--- a/drivers/net/iavf/iavf_generic_flow.c
++++ b/drivers/net/iavf/iavf_generic_flow.c
+@@ -1904,6 +1904,7 @@ iavf_register_parser(struct iavf_flow_parser *parser,


More information about the stable mailing list