Re: [PATCH v3] RDMA/rxe: reject MRs whose iova range wraps, keep ODP lengths unsigned

From: Leon Romanovsky

Date: Thu Nov 26 2026 - 13:51:19 EST



On Wed, 25 Nov 2026 15:40:24 -0500, Cygnus Qiu wrote:
> rxe_check_pagefault() bounds the ODP page index against the umem inside
> a loop over the pages of the access. When the access ends at 2^64,
> iova + length is 0 and the loop does not run, so neither that bound nor
> the HMM_PFN_VALID and HMM_PFN_WRITE checks apply. mr_check_range()
> admits such an access when the MR's own iova range ends at 2^64, which
> rxe_reg_user_mr() accepts. __rxe_odp_mr_copy() and the atomic write and
> flush helpers then index map.pfn_list[] with (iova - ib_umem_start()) >>
> page_shift, which the registrant controls, and the page derived from the
> entry past pfn_list[] is copied to or from the peer.
>
> [...]

Applied, thanks!

[1/1] RDMA/rxe: reject MRs whose iova range wraps, keep ODP lengths unsigned
https://git.kernel.org/rdma/rdma/c/2e8b1764bc69d5

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>