patch 'net/ice: fix DDP package double free on init failure' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:05:22 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/e3db747b591e2e4c8d4ec5d2305f31d11c8371c4
Thanks.
Kevin
---
>From e3db747b591e2e4c8d4ec5d2305f31d11c8371c4 Mon Sep 17 00:00:00 2001
From: Anurag Mandal <anurag.mandal at intel.com>
Date: Mon, 2 Nov 2026 08:10:31 +0000
Subject: [PATCH] net/ice: fix DDP package double free on init failure
[ upstream commit 346fb7d00fab2da4a331e1bcf72f544f26f974dc ]
When ice_init_hw_tbls() fails, ice_dev_init() frees the DDP package
copy but leaves hw->pkg_copy and hw->seg pointing into it. Without
safe mode, the error path then calls ice_deinit_hw(), which frees
the package copy again through ice_free_seg().
Use ice_free_seg(), which also clears these pointers.
Fixes: 9c4f15901ada ("net/ice: free memory with matching allocator")
Fixes: 7f7cbf80bdb7 ("net/ice: factorize firmware loading")
Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
drivers/net/intel/ice/ice_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/intel/ice/ice_ethdev.c b/drivers/net/intel/ice/ice_ethdev.c
index 2f72235317..6cc6d12175 100644
--- a/drivers/net/intel/ice/ice_ethdev.c
+++ b/drivers/net/intel/ice/ice_ethdev.c
@@ -2695,5 +2695,5 @@ ice_dev_init(struct rte_eth_dev *dev)
if (ret) {
PMD_INIT_LOG(ERR, "ice_init_hw_tbls failed: %d", ret);
- rte_free(hw->pkg_copy);
+ ice_free_seg(hw);
}
}
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:50.388519164 +0000
+++ 0396-net-ice-fix-DDP-package-double-free-on-init-failure.patch 2026-12-03 12:52:39.302938792 +0000
@@ -1 +1 @@
-From 346fb7d00fab2da4a331e1bcf72f544f26f974dc Mon Sep 17 00:00:00 2001
+From e3db747b591e2e4c8d4ec5d2305f31d11c8371c4 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 346fb7d00fab2da4a331e1bcf72f544f26f974dc ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -24 +25 @@
-index d2ba64efb6..4c21356736 100644
+index 2f72235317..6cc6d12175 100644
@@ -27 +28 @@
-@@ -2786,5 +2786,5 @@ ice_dev_init(struct rte_eth_dev *dev)
+@@ -2695,5 +2695,5 @@ ice_dev_init(struct rte_eth_dev *dev)
@@ -30 +31 @@
-- ice_free(hw, hw->pkg_copy);
+- rte_free(hw->pkg_copy);
More information about the stable
mailing list