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

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Nov 16 23:52: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/1e728bd99bf5e8db133ae27f61012dd05c153e1d

Thanks.

Luca Boccassi

---
>From 1e728bd99bf5e8db133ae27f61012dd05c153e1d 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 9b4465176a..5f9b8765ee 100644
--- a/drivers/raw/ntb/ntb_hw_intel.c
+++ b/drivers/raw/ntb/ntb_hw_intel.c
@@ -312,7 +312,7 @@ 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] +
 				 (size_t)base);
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-16 22:52:19.158499913 +0000
+++ 0067-raw-ntb-fix-memory-window-bound-in-address-remapping.patch	2026-11-16 22:52:16.532234650 +0000
@@ -1 +1 @@
-From be5e9874b72b162c73be8fa57e3fd918b8eb035f Mon Sep 17 00:00:00 2001
+From 1e728bd99bf5e8db133ae27f61012dd05c153e1d 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,13 +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
-@@ -166,7 +166,7 @@ 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);
- 			break;
@@ -36 +23 @@
-index 78fce9ffac..47d5d39339 100644
+index 9b4465176a..5f9b8765ee 100644


More information about the stable mailing list