patch 'net/gve: validate minimum header length for TSO packets' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Nov 16 23:51:21 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/4a42a2f72dee8e599ca82de1e83261bb65321bef
Thanks.
Luca Boccassi
---
>From 4a42a2f72dee8e599ca82de1e83261bb65321bef Mon Sep 17 00:00:00 2001
From: Joshua Washington <joshwash at google.com>
Date: Mon, 9 Nov 2026 11:43:31 -0800
Subject: [PATCH] net/gve: validate minimum header length for TSO packets
[ upstream commit f11b2495656166c6431bb989ca9f774aa27ffcf3 ]
In addition to the limits added in commit
03b62d39c1c8 ("net/gve: enforce DQO TSO header and length limits"), TSO
packets also have a minimum header length of 16B. Enforce this limit as
well.
Fixes: 403c671a46b6 ("net/gve: support TSO in DQO RDA")
Signed-off-by: Joshua Washington <joshwash at google.com>
---
drivers/net/gve/base/gve_desc_dqo.h | 1 +
drivers/net/gve/gve_tx_dqo.c | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/gve/base/gve_desc_dqo.h b/drivers/net/gve/base/gve_desc_dqo.h
index b8c27dd09d..3897125b95 100644
--- a/drivers/net/gve/base/gve_desc_dqo.h
+++ b/drivers/net/gve/base/gve_desc_dqo.h
@@ -14,6 +14,7 @@
#define GVE_TX_MIN_TSO_MSS_DQO 88
#define GVE_TX_MIN_PKT_SIZE_DQO 17
#define GVE_TX_MAX_PKT_SIZE_DQO 9728
+#define GVE_TX_MIN_TSO_HDR_LEN_DQO 16
#define GVE_TX_MAX_TSO_LEN_DQO ((256 * 1024) - 1)
/* Basic TX descriptor (DTYPE 0x0C) */
diff --git a/drivers/net/gve/gve_tx_dqo.c b/drivers/net/gve/gve_tx_dqo.c
index 0026329dde..c2ebf2fc05 100644
--- a/drivers/net/gve/gve_tx_dqo.c
+++ b/drivers/net/gve/gve_tx_dqo.c
@@ -96,8 +96,9 @@ gve_tx_validate_pkt_limits(const struct rte_mbuf *tx_pkt, bool is_tso)
* contained in the first segment; the payload must not be empty.
*/
headlen = tx_pkt->l2_len + tx_pkt->l3_len + tx_pkt->l4_len;
- if (tx_pkt->l4_len == 0 || headlen > GVE_TX_MAX_HDR_SIZE_DQO ||
- tx_pkt->data_len < headlen || tx_pkt->pkt_len <= headlen)
+ if (tx_pkt->l4_len == 0 || headlen < GVE_TX_MIN_TSO_HDR_LEN_DQO ||
+ headlen > GVE_TX_MAX_HDR_SIZE_DQO || tx_pkt->data_len < headlen ||
+ tx_pkt->pkt_len <= headlen)
return false;
return tx_pkt->pkt_len - headlen <= GVE_TX_MAX_TSO_LEN_DQO &&
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-11-16 22:52:16.820080989 +0000
+++ 0007-net-gve-validate-minimum-header-length-for-TSO-packe.patch 2026-11-16 22:52:16.420231683 +0000
@@ -1 +1 @@
-From f11b2495656166c6431bb989ca9f774aa27ffcf3 Mon Sep 17 00:00:00 2001
+From 4a42a2f72dee8e599ca82de1e83261bb65321bef Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit f11b2495656166c6431bb989ca9f774aa27ffcf3 ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 53e394f01c..c2f7b0caa6 100644
+index b8c27dd09d..3897125b95 100644
@@ -33 +34 @@
-index 78eaef3e3d..72730eb1c5 100644
+index 0026329dde..c2ebf2fc05 100644
@@ -36 +37 @@
-@@ -139,8 +139,9 @@ gve_tx_validate_pkt_limits(const struct rte_mbuf *tx_pkt, bool is_tso)
+@@ -96,8 +96,9 @@ gve_tx_validate_pkt_limits(const struct rte_mbuf *tx_pkt, bool is_tso)
More information about the stable
mailing list