patch 'net/i40e: fix raw flow item validation' has been queued to stable release 24.11.5
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Thu Mar 26 13:57:40 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.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 03/28/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/829c05816a20d0d25f898309b81a71bff1fed08d
Thanks.
Luca Boccassi
---
>From 829c05816a20d0d25f898309b81a71bff1fed08d 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/i40e/i40e_flow.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c
index 08b392b39d..d969a84a9b 100644
--- a/drivers/net/i40e/i40e_flow.c
+++ b/drivers/net/i40e/i40e_flow.c
@@ -2365,13 +2365,6 @@ i40e_flow_parse_fdir_pattern(struct rte_eth_dev *dev,
"NULL RAW mask pattern");
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;
- }
}
for (i = 0; i < raw_spec->length; i++) {
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-03-26 12:56:33.686893606 +0000
+++ 0006-net-i40e-fix-raw-flow-item-validation.patch 2026-03-26 12:56:33.409543115 +0000
@@ -1 +1 @@
-From d181b00172f0b7fc9a559df153518a4e20eb14a6 Mon Sep 17 00:00:00 2001
+From 829c05816a20d0d25f898309b81a71bff1fed08d Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit d181b00172f0b7fc9a559df153518a4e20eb14a6 ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
- drivers/net/intel/i40e/i40e_flow.c | 7 -------
+ drivers/net/i40e/i40e_flow.c | 7 -------
@@ -23,5 +24,5 @@
-diff --git a/drivers/net/intel/i40e/i40e_flow.c b/drivers/net/intel/i40e/i40e_flow.c
-index 84cfddb92d..78191a2d22 100644
---- a/drivers/net/intel/i40e/i40e_flow.c
-+++ b/drivers/net/intel/i40e/i40e_flow.c
-@@ -2360,13 +2360,6 @@ i40e_flow_parse_fdir_pattern(struct rte_eth_dev *dev,
+diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c
+index 08b392b39d..d969a84a9b 100644
+--- a/drivers/net/i40e/i40e_flow.c
++++ b/drivers/net/i40e/i40e_flow.c
+@@ -2365,13 +2365,6 @@ i40e_flow_parse_fdir_pattern(struct rte_eth_dev *dev,
More information about the stable
mailing list