patch 'net/nfp: fix null dereference in flower ctrl NFD3 Tx' has been queued to stable release 25.11.3

Kevin Traynor ktraynor at redhat.com
Thu Jul 23 19:15:49 CEST 2026


Hi,

FYI, your patch has been queued to stable release 25.11.3

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

Thanks.

Kevin

---
>From 76da533bbcf6299716b438df85333330ca09c264 Mon Sep 17 00:00:00 2001
From: Denis Sergeev <denserg.edu at gmail.com>
Date: Wed, 3 Jun 2026 08:51:56 +0300
Subject: [PATCH] net/nfp: fix null dereference in flower ctrl NFD3 Tx

[ upstream commit 86252c32586d37dfb401a57ad53d46e0c121e10c ]

In nfp_flower_ctrl_vnic_nfd3_xmit(), when txq is NULL, goto xmit_end
leads to unconditional dereference of txq->qcp_q in nfp_qcp_ptr_add().
The same goto from the "no free descriptors" path incorrectly increments
the hardware write pointer despite no descriptor being written.

Replace both gotos with early return, removing the unused xmit_end label.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: a36634e87e16 ("net/nfp: add flower ctrl VNIC Rx/Tx")

Signed-off-by: Denis Sergeev <denserg.edu at gmail.com>
---
 .mailmap                                 | 1 +
 drivers/net/nfp/flower/nfp_flower_ctrl.c | 5 ++---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.mailmap b/.mailmap
index 3c1a9e36f6..1f12a4cb46 100644
--- a/.mailmap
+++ b/.mailmap
@@ -375,4 +375,5 @@ Dengdui Huang <huangdengdui at huawei.com>
 Denis Lyulin <lyulin.2003 at mail.ru>
 Denis Pryazhennikov <denis.pryazhennikov at arknetworks.am>
+Denis Sergeev <denserg.edu at gmail.com>
 Dennis Marinus <dmarinus at amazon.com>
 Derek Chickles <derek.chickles at caviumnetworks.com>
diff --git a/drivers/net/nfp/flower/nfp_flower_ctrl.c b/drivers/net/nfp/flower/nfp_flower_ctrl.c
index 6ac2caf367..1fa751a106 100644
--- a/drivers/net/nfp/flower/nfp_flower_ctrl.c
+++ b/drivers/net/nfp/flower/nfp_flower_ctrl.c
@@ -169,5 +169,5 @@ nfp_flower_ctrl_vnic_nfd3_xmit(struct nfp_app_fw_flower *app_fw_flower,
 		 */
 		PMD_TX_LOG(ERR, "Ctrl dev TX Bad queue.");
-		goto xmit_end;
+		return 0;
 	}
 
@@ -184,5 +184,5 @@ nfp_flower_ctrl_vnic_nfd3_xmit(struct nfp_app_fw_flower *app_fw_flower,
 	if (unlikely(free_descs == 0)) {
 		PMD_TX_LOG(ERR, "Ctrl dev no free descs.");
-		goto xmit_end;
+		return 0;
 	}
 
@@ -208,5 +208,4 @@ nfp_flower_ctrl_vnic_nfd3_xmit(struct nfp_app_fw_flower *app_fw_flower,
 	app_fw_flower->ctrl_vnic_tx_count++;
 
-xmit_end:
 	rte_wmb();
 	nfp_qcp_ptr_add(txq->qcp_q, NFP_QCP_WRITE_PTR, 1);
-- 
2.55.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-07-23 17:58:01.125558590 +0100
+++ 0086-net-nfp-fix-null-dereference-in-flower-ctrl-NFD3-Tx.patch	2026-07-23 17:57:58.713173067 +0100
@@ -1 +1 @@
-From 86252c32586d37dfb401a57ad53d46e0c121e10c Mon Sep 17 00:00:00 2001
+From 76da533bbcf6299716b438df85333330ca09c264 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 86252c32586d37dfb401a57ad53d46e0c121e10c ]
+
@@ -16 +17,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index 0b3197f9da..d1d9cd1743 100644
+index 3c1a9e36f6..1f12a4cb46 100644
@@ -28 +29 @@
-@@ -378,4 +378,5 @@ Dengdui Huang <huangdengdui at huawei.com>
+@@ -375,4 +375,5 @@ Dengdui Huang <huangdengdui at huawei.com>



More information about the stable mailing list