Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: tatyana.e.nikolova@intel.com, jgg@ziepe.ca,
	 Jacob Moroni <jmoroni@google.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH rdma-next 0/4] RDMA/irdma: Prevent premature deregistration of user ring MRs
Date: Sun, 05 Jul 2026 06:45:08 -0400	[thread overview]
Message-ID: <178324830896.903355.7673142526387836159.b4-ty@kernel.org> (raw)
In-Reply-To: <20260618201458.875740-1-jmoroni@google.com>


On Thu, 18 Jun 2026 20:14:54 +0000, Jacob Moroni wrote:
> When a QP/CQ/SRQ is created, a two step process is used where the
> buffer is allocated in userspace and explicitly registered with the
> normal reg_mr mechanism prior to creating the actual QP/CQ/SRQ object.
> 
> Even though these special MRs are internal to the verbs provider,
> nothing actually prevents a custom/malicious user application from
> manually invoking dereg_mr on these regions. If this occurs, the PBL
> is freed and umem is released while the HW may still be accessing it.
> 
> [...]

Applied, thanks!

[1/4] RDMA/irdma: Deduplicate the irdma_del_memlist logic
      https://git.kernel.org/rdma/rdma/c/097f50384e1877
[2/4] RDMA/irdma: Add a refcount to track user ring MR associations
      https://git.kernel.org/rdma/rdma/c/a7d0a6b58256a7
[3/4] RDMA/irdma: Add irdma_cq fields to track pbl allocations
      https://git.kernel.org/rdma/rdma/c/971e99623ed7a0
[4/4] RDMA/irdma: Add refcounting to user ring MRs
      https://git.kernel.org/rdma/rdma/c/f67d8a08f60c92

Best regards,
-- 
Leon Romanovsky <leon@kernel.org>


      parent reply	other threads:[~2026-07-05 14:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-18 20:14 [PATCH rdma-next 0/4] RDMA/irdma: Prevent premature deregistration of user ring MRs Jacob Moroni
2026-06-18 20:14 ` [PATCH rdma-next 1/4] RDMA/irdma: Deduplicate the irdma_del_memlist logic Jacob Moroni
2026-06-18 20:14 ` [PATCH rdma-next 2/4] RDMA/irdma: Add a refcount to track user ring MR associations Jacob Moroni
2026-06-18 20:14 ` [PATCH rdma-next 3/4] RDMA/irdma: Add irdma_cq fields to track pbl allocations Jacob Moroni
2026-06-18 20:14 ` [PATCH rdma-next 4/4] RDMA/irdma: Add refcounting to user ring MRs Jacob Moroni
2026-07-05 10:45 ` 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=178324830896.903355.7673142526387836159.b4-ty@kernel.org \
    --to=leon@kernel.org \
    --cc=jgg@ziepe.ca \
    --cc=jmoroni@google.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=tatyana.e.nikolova@intel.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