patch 'net/ice: fix DDP package double free on init failure' has been queued to stable release 24.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Nov 16 23:51:45 CET 2026


Hi,

FYI, your patch has been queued to stable release 24.11.9

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/18/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/a19a33b1be3b0da9c11b8207c1ce72bf3d26b3ea

Thanks.

Luca Boccassi

---
>From a19a33b1be3b0da9c11b8207c1ce72bf3d26b3ea 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/ice/ice_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index b54f44c431..30479fdcee 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -2587,7 +2587,7 @@ ice_dev_init(struct rte_eth_dev *dev)
 		ret = ice_init_hw_tbls(hw);
 		if (ret) {
 			PMD_INIT_LOG(ERR, "ice_init_hw_tbls failed: %d", ret);
-			rte_free(hw->pkg_copy);
+			ice_free_seg(hw);
 		}
 	}
 
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-16 22:52:17.744190093 +0000
+++ 0031-net-ice-fix-DDP-package-double-free-on-init-failure.patch	2026-11-16 22:52:16.464232848 +0000
@@ -1 +1 @@
-From 346fb7d00fab2da4a331e1bcf72f544f26f974dc Mon Sep 17 00:00:00 2001
+From a19a33b1be3b0da9c11b8207c1ce72bf3d26b3ea Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 346fb7d00fab2da4a331e1bcf72f544f26f974dc ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
- drivers/net/intel/ice/ice_ethdev.c | 2 +-
+ drivers/net/ice/ice_ethdev.c | 2 +-
@@ -23,5 +24,5 @@
-diff --git a/drivers/net/intel/ice/ice_ethdev.c b/drivers/net/intel/ice/ice_ethdev.c
-index d2ba64efb6..4c21356736 100644
---- a/drivers/net/intel/ice/ice_ethdev.c
-+++ b/drivers/net/intel/ice/ice_ethdev.c
-@@ -2785,7 +2785,7 @@ ice_dev_init(struct rte_eth_dev *dev)
+diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
+index b54f44c431..30479fdcee 100644
+--- a/drivers/net/ice/ice_ethdev.c
++++ b/drivers/net/ice/ice_ethdev.c
+@@ -2587,7 +2587,7 @@ ice_dev_init(struct rte_eth_dev *dev)
@@ -31 +32 @@
--			ice_free(hw, hw->pkg_copy);
+-			rte_free(hw->pkg_copy);


More information about the stable mailing list