patch 'net/iavf: fix leak of flex metadata extraction field' has been queued to stable release 24.11.7
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Jul 13 19:17:59 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/73fe1cb56d2ecbaf3edc6da680ee350940c11062
Thanks.
Luca Boccassi
---
>From 73fe1cb56d2ecbaf3edc6da680ee350940c11062 Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Fri, 10 Jul 2026 11:34:02 +0100
Subject: [PATCH] net/iavf: fix leak of flex metadata extraction field
[ upstream commit 94f6e8f48462c24bb401fd93689a1f4574ab3ecc ]
Function iavf_init_proto_xtr() allocates vf->proto_xtr as part of the
device init sequence, but no shutdown function frees this memory again.
Add appropriate free calls to fix this memory leak.
Fixes: 12b435bf8f2f ("net/iavf: support flex desc metadata extraction")
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
Acked-by: Ciara Loftus <ciara.loftus at intel.com>
---
drivers/net/iavf/iavf_ethdev.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c
index 57618e478c..19cc2186dd 100644
--- a/drivers/net/iavf/iavf_ethdev.c
+++ b/drivers/net/iavf/iavf_ethdev.c
@@ -2688,6 +2688,8 @@ iavf_uninit_vf(struct rte_eth_dev *dev)
vf->qos_cap = NULL;
free(vf->qtc_map);
vf->qtc_map = NULL;
+ rte_free(vf->proto_xtr);
+ vf->proto_xtr = NULL;
rte_free(vf->rss_lut);
vf->rss_lut = NULL;
@@ -3046,6 +3048,9 @@ iavf_dev_close(struct rte_eth_dev *dev)
}
}
+ rte_free(vf->proto_xtr);
+ vf->proto_xtr = NULL;
+
rte_free(vf->vf_res);
vf->vsi_res = NULL;
vf->vf_res = NULL;
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-07-13 18:17:06.280548227 +0100
+++ 0019-net-iavf-fix-leak-of-flex-metadata-extraction-field.patch 2026-07-13 18:17:05.590283127 +0100
@@ -1 +1 @@
-From 94f6e8f48462c24bb401fd93689a1f4574ab3ecc Mon Sep 17 00:00:00 2001
+From 73fe1cb56d2ecbaf3edc6da680ee350940c11062 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 94f6e8f48462c24bb401fd93689a1f4574ab3ecc ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -16 +17 @@
- drivers/net/intel/iavf/iavf_ethdev.c | 5 +++++
+ drivers/net/iavf/iavf_ethdev.c | 5 +++++
@@ -19,5 +20,5 @@
-diff --git a/drivers/net/intel/iavf/iavf_ethdev.c b/drivers/net/intel/iavf/iavf_ethdev.c
-index 1cd8c88384..d601ec3b6a 100644
---- a/drivers/net/intel/iavf/iavf_ethdev.c
-+++ b/drivers/net/intel/iavf/iavf_ethdev.c
-@@ -2757,6 +2757,8 @@ iavf_uninit_vf(struct rte_eth_dev *dev)
+diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c
+index 57618e478c..19cc2186dd 100644
+--- a/drivers/net/iavf/iavf_ethdev.c
++++ b/drivers/net/iavf/iavf_ethdev.c
+@@ -2688,6 +2688,8 @@ iavf_uninit_vf(struct rte_eth_dev *dev)
@@ -32 +33 @@
-@@ -3255,6 +3257,9 @@ iavf_dev_close(struct rte_eth_dev *dev)
+@@ -3046,6 +3048,9 @@ iavf_dev_close(struct rte_eth_dev *dev)
More information about the stable
mailing list