Re: [PATCH RFC v2] RDMA/rxe: Fix iova-to-va conversion for MR page sizes != PAGE_SIZE
From: Leon Romanovsky
Date: Sun Jan 25 2026 - 08:41:58 EST
On Fri, 16 Jan 2026 11:27:53 +0800, Li Zhijian wrote:
> The current implementation incorrectly handles memory regions (MRs) with
> page sizes different from the system PAGE_SIZE. The core issue is that
> rxe_set_page() is called with mr->page_size step increments, but the
> page_list stores individual struct page pointers, each representing
> PAGE_SIZE of memory.
>
> ib_sg_to_page() has ensured that when i>=1 either
> a) SG[i-1].dma_end and SG[i].dma_addr are contiguous
> or
> b) SG[i-1].dma_end and SG[i].dma_addr are mr->page_size aligned.
>
> [...]
Applied, thanks!
[1/1] RDMA/rxe: Fix iova-to-va conversion for MR page sizes != PAGE_SIZE
https://git.kernel.org/rdma/rdma/c/12985e5915a0b8
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>