patch 'net/iavf: fix memory leak on uninit' has been queued to stable release 24.11.5
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Fri Feb 20 15:56:45 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.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 02/22/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/80b7d58f343912a6fb751f49d63ce3f339fec3eb
Thanks.
Luca Boccassi
---
>From 80b7d58f343912a6fb751f49d63ce3f339fec3eb Mon Sep 17 00:00:00 2001
From: Anatoly Burakov <anatoly.burakov at intel.com>
Date: Fri, 13 Feb 2026 09:10:11 +0000
Subject: [PATCH] net/iavf: fix memory leak on uninit
[ upstream commit c7f7b3ab32fd8da9023599c363b448d54f6c9a09 ]
When IPsec is initialized, parsers and engines are registered into the
common infrastructure. However, during deinitialization, they are not
cleaned up. Fix it by including IPsec engines in the cleanup.
Fixes: 6bc987ecb860 ("net/iavf: support IPsec inline crypto")
Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
Acked-by: Radu Nicolau <radu.nicolau at intel.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>
---
drivers/net/iavf/iavf_generic_flow.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/net/iavf/iavf_generic_flow.c b/drivers/net/iavf/iavf_generic_flow.c
index 02917f863d..42ecc90d1d 100644
--- a/drivers/net/iavf/iavf_generic_flow.c
+++ b/drivers/net/iavf/iavf_generic_flow.c
@@ -1859,6 +1859,11 @@ iavf_flow_uninit(struct iavf_adapter *ad)
TAILQ_REMOVE(&vf->dist_parser_list, p_parser, node);
rte_free(p_parser);
}
+
+ while ((p_parser = TAILQ_FIRST(&vf->ipsec_crypto_parser_list))) {
+ TAILQ_REMOVE(&vf->ipsec_crypto_parser_list, p_parser, node);
+ rte_free(p_parser);
+ }
}
int
@@ -1920,6 +1925,8 @@ iavf_unregister_parser(struct iavf_flow_parser *parser,
else if ((parser->engine->type == IAVF_FLOW_ENGINE_FDIR) ||
(parser->engine->type == IAVF_FLOW_ENGINE_FSUB))
list = &vf->dist_parser_list;
+ else if (parser->engine->type == IAVF_FLOW_ENGINE_IPSEC_CRYPTO)
+ list = &vf->ipsec_crypto_parser_list;
if (list == NULL)
return;
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-02-20 14:55:47.155256561 +0000
+++ 0103-net-iavf-fix-memory-leak-on-uninit.patch 2026-02-20 14:55:43.356193651 +0000
@@ -1 +1 @@
-From c7f7b3ab32fd8da9023599c363b448d54f6c9a09 Mon Sep 17 00:00:00 2001
+From 80b7d58f343912a6fb751f49d63ce3f339fec3eb Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit c7f7b3ab32fd8da9023599c363b448d54f6c9a09 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -17 +18 @@
- drivers/net/intel/iavf/iavf_generic_flow.c | 7 +++++++
+ drivers/net/iavf/iavf_generic_flow.c | 7 +++++++
@@ -20 +21 @@
-diff --git a/drivers/net/intel/iavf/iavf_generic_flow.c b/drivers/net/intel/iavf/iavf_generic_flow.c
+diff --git a/drivers/net/iavf/iavf_generic_flow.c b/drivers/net/iavf/iavf_generic_flow.c
@@ -22,2 +23,2 @@
---- a/drivers/net/intel/iavf/iavf_generic_flow.c
-+++ b/drivers/net/intel/iavf/iavf_generic_flow.c
+--- a/drivers/net/iavf/iavf_generic_flow.c
++++ b/drivers/net/iavf/iavf_generic_flow.c
More information about the stable
mailing list