patch 'net/i40e: fix raw flow item validation' has been queued to stable release 25.11.1

Kevin Traynor ktraynor at redhat.com
Fri Mar 27 11:01:08 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.1

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

Thanks.

Kevin

---
>From d730c6720ecbe3ad3309f779542b7c502a228a83 Mon Sep 17 00:00:00 2001
From: Ciara Loftus <ciara.loftus at intel.com>
Date: Tue, 24 Mar 2026 15:56:27 +0000
Subject: [PATCH] net/i40e: fix raw flow item validation

[ upstream commit d181b00172f0b7fc9a559df153518a4e20eb14a6 ]

Commit c138a6c3bd0a ("net/i40e: validate raw flow items before
dereferencing") rejected raw flow items when spec and mask length
fields differ, intending to prevent out-of-bounds pattern access.

This breaks flows using the default rte_flow_item_raw_mask, which
sets mask.length to 0xffff regardless of the spec pattern size. Remove
the erroneous check.

Fixes: c138a6c3bd0a ("net/i40e: validate raw flow items before dereferencing")

Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/net/intel/i40e/i40e_flow.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/net/intel/i40e/i40e_flow.c b/drivers/net/intel/i40e/i40e_flow.c
index 4624edc758..420d983c86 100644
--- a/drivers/net/intel/i40e/i40e_flow.c
+++ b/drivers/net/intel/i40e/i40e_flow.c
@@ -2366,11 +2366,4 @@ i40e_flow_parse_fdir_pattern(struct rte_eth_dev *dev,
 					return -rte_errno;
 				}
-				if (raw_spec->length != raw_mask->length) {
-					rte_flow_error_set(error, EINVAL,
-							   RTE_FLOW_ERROR_TYPE_ITEM,
-							   item,
-							   "RAW spec and mask length mismatch");
-					return -rte_errno;
-				}
 			}
 
-- 
2.53.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-03-27 09:58:26.390774205 +0000
+++ 0008-net-i40e-fix-raw-flow-item-validation.patch	2026-03-27 09:58:26.124625509 +0000
@@ -1 +1 @@
-From d181b00172f0b7fc9a559df153518a4e20eb14a6 Mon Sep 17 00:00:00 2001
+From d730c6720ecbe3ad3309f779542b7c502a228a83 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit d181b00172f0b7fc9a559df153518a4e20eb14a6 ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -24 +25 @@
-index 84cfddb92d..78191a2d22 100644
+index 4624edc758..420d983c86 100644
@@ -27 +28 @@
-@@ -2361,11 +2361,4 @@ i40e_flow_parse_fdir_pattern(struct rte_eth_dev *dev,
+@@ -2366,11 +2366,4 @@ i40e_flow_parse_fdir_pattern(struct rte_eth_dev *dev,



More information about the stable mailing list