patch 'raw/ntb: fix memory window bound in address remapping' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:05:58 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/86ab9fb9e94ff2e8110175b8c18aa381d6b0e047

Thanks.

Kevin

---
>From 86ab9fb9e94ff2e8110175b8c18aa381d6b0e047 Mon Sep 17 00:00:00 2001
From: Raghavendra Ningoji <raghavendra.ningoji at amd.com>
Date: Wed, 11 Nov 2026 12:36:37 +0530
Subject: [PATCH] raw/ntb: fix memory window bound in address remapping

[ upstream commit be5e9874b72b162c73be8fa57e3fd918b8eb035f ]

When translating a peer address into the local mapping of a memory
window, the end of the window was included in the accepted range,
so an address one byte past the window was mapped.

Exclude the end of the window.

Fixes: 11b5c7daf019 ("raw/ntb: add enqueue and dequeue functions")
Fixes: d6dc5a7f8b06 ("raw/ntb: support AMD NTB")

Signed-off-by: Raghavendra Ningoji <raghavendra.ningoji at amd.com>
---
 drivers/raw/ntb/ntb_hw_intel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/raw/ntb/ntb_hw_intel.c b/drivers/raw/ntb/ntb_hw_intel.c
index 956f411ea3..30009c8f64 100644
--- a/drivers/raw/ntb/ntb_hw_intel.c
+++ b/drivers/raw/ntb/ntb_hw_intel.c
@@ -312,5 +312,5 @@ intel_ntb_ioremap(const struct rte_rawdev *dev, uint64_t addr)
 	for (i = 0; i < hw->peer_used_mws; i++) {
 		if (addr >= hw->peer_mw_base[i] &&
-		    addr <= hw->peer_mw_base[i] + hw->mw_size[i]) {
+		    addr < hw->peer_mw_base[i] + hw->mw_size[i]) {
 			base = intel_ntb_get_peer_mw_addr(dev, i);
 			mapped = (void *)(size_t)(addr - hw->peer_mw_base[i] +
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:51.412127669 +0000
+++ 0432-raw-ntb-fix-memory-window-bound-in-address-remapping.patch	2026-12-03 12:52:39.334106698 +0000
@@ -1 +1 @@
-From be5e9874b72b162c73be8fa57e3fd918b8eb035f Mon Sep 17 00:00:00 2001
+From 86ab9fb9e94ff2e8110175b8c18aa381d6b0e047 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit be5e9874b72b162c73be8fa57e3fd918b8eb035f ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -18 +18,0 @@
- drivers/raw/ntb/ntb_hw_amd.c   | 2 +-
@@ -20 +20 @@
- 2 files changed, 2 insertions(+), 2 deletions(-)
+ 1 file changed, 1 insertion(+), 1 deletion(-)
@@ -22,11 +21,0 @@
-diff --git a/drivers/raw/ntb/ntb_hw_amd.c b/drivers/raw/ntb/ntb_hw_amd.c
-index dba5b03671..64075501c2 100644
---- a/drivers/raw/ntb/ntb_hw_amd.c
-+++ b/drivers/raw/ntb/ntb_hw_amd.c
-@@ -167,5 +167,5 @@ amd_ntb_ioremap(const struct rte_rawdev *dev, uint64_t addr)
- 	for (i = 0; i < ntb->peer_used_mws; i++) {
- 		if (addr >= ntb->peer_mw_base[i] &&
--				addr <= ntb->peer_mw_base[i] + ntb->mw_size[i]) {
-+				addr < ntb->peer_mw_base[i] + ntb->mw_size[i]) {
- 			base = amd_ntb_get_peer_mw_addr(dev, i);
- 			mapped = (void *)(size_t)(addr - ntb->peer_mw_base[i] + (size_t)base);
@@ -34 +23 @@
-index 78fce9ffac..47d5d39339 100644
+index 956f411ea3..30009c8f64 100644
@@ -37 +26 @@
-@@ -313,5 +313,5 @@ intel_ntb_ioremap(const struct rte_rawdev *dev, uint64_t addr)
+@@ -312,5 +312,5 @@ intel_ntb_ioremap(const struct rte_rawdev *dev, uint64_t addr)



More information about the stable mailing list