mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: zyjzyj2000@gmail.com, jgg@ziepe.ca,
	 Cygnus Qiu <eritque-arcus@ikuyo.dev>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
	 yanjun.zhu@linux.dev, stable@vger.kernel.org
Subject: Re: [PATCH v3] RDMA/rxe: reject MRs whose iova range wraps, keep ODP lengths unsigned
Date: Thu, 26 Nov 2026 13:51:13 -0500	[thread overview]
Message-ID: <179571907313.1292280.17538889277660912578.b4-ty@kernel.org> (raw)
In-Reply-To: <20261125204024.517458-1-eritque-arcus@ikuyo.dev>


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@kernel.org>


      reply	other threads:[~2026-11-26 18:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 20:40 Cygnus Qiu
2026-11-26 18:51 ` Leon Romanovsky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179571907313.1292280.17538889277660912578.b4-ty@kernel.org \
    --to=leon@kernel.org \
    --cc=eritque-arcus@ikuyo.dev \
    --cc=jgg@ziepe.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=yanjun.zhu@linux.dev \
    --cc=zyjzyj2000@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®