patch 'net/ice: fix unchecked Tx time context allocation' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:01:54 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/baf298e7bbfc87708db15e1d51272bb3f77a5d0e

Thanks.

Kevin

---
>From baf298e7bbfc87708db15e1d51272bb3f77a5d0e Mon Sep 17 00:00:00 2001
From: Anurag Mandal <anurag.mandal at intel.com>
Date: Wed, 7 Oct 2026 07:58:20 +0000
Subject: [PATCH] net/ice: fix unchecked Tx time context allocation

[ upstream commit 40164fb17be4ed197b8e3db02b864ea0c5e0eb4b ]

ice_tx_queue_start() dereferences the Tx time queue context buffer
returned by ice_malloc() without NULL check.  On allocation failure, the
E830 send-on-timestamp path therefore crashes instead of reporting "No
Memory" error, and also the already allocated txq_elem buffer gets
leaked.

Add the necessary allocation failure check and free txq_elem buffer in
case of failure to avoid the memory leak.

Fixes: 0b6ff09a1f19 ("net/intel: support Tx packet pacing for E830")

Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
 drivers/net/intel/ice/ice_rxtx.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/intel/ice/ice_rxtx.c b/drivers/net/intel/ice/ice_rxtx.c
index 17a618f97f..bcf6739bda 100644
--- a/drivers/net/intel/ice/ice_rxtx.c
+++ b/drivers/net/intel/ice/ice_rxtx.c
@@ -899,4 +899,8 @@ ice_tx_queue_start(struct rte_eth_dev *dev, uint16_t tx_queue_id)
 
 		ts_elem = ice_malloc(hw, ts_buf_len);
+		if (!ts_elem) {
+			ice_free(hw, txq_elem);
+			return -ENOMEM;
+		}
 		ice_setup_txtime_ctx(txq, &txtime_ctx, true);
 		ice_set_ctx(hw, (u8 *)&txtime_ctx,
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:44.600213385 +0000
+++ 0188-net-ice-fix-unchecked-Tx-time-context-allocation.patch	2026-12-03 12:52:39.163848487 +0000
@@ -1 +1 @@
-From 40164fb17be4ed197b8e3db02b864ea0c5e0eb4b Mon Sep 17 00:00:00 2001
+From baf298e7bbfc87708db15e1d51272bb3f77a5d0e Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 40164fb17be4ed197b8e3db02b864ea0c5e0eb4b ]
+
@@ -16 +17,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index 1c90dc22dd..2d3062465f 100644
+index 17a618f97f..bcf6739bda 100644



More information about the stable mailing list