From: Leon Romanovsky <leon@kernel.org>
To: Mohamad Pishdar <mohamadpishdar@gmail.com>
Cc: security@kernel.org, jgg@ziepe.ca, linux-rdma@vger.kernel.org,
shiraz.saleem@intel.com, tatyana.e.nikolova@intel.com
Subject: Re: [PATCH] RDMA/irdma: Restore original PD on rereg_user_mr failure
Date: Tue, 3 Nov 2026 14:12:46 +0200 [thread overview]
Message-ID: <20261103121246.GF264423@unreal> (raw)
In-Reply-To: <CAAAp7fgvKfLqxsZrvmq2+xtq=_AuGOmKLYijAsMk=bKCJFkSGQ@mail.gmail.com>
On Wed, Oct 28, 2026 at 11:07:01AM +0100, Mohamad Pishdar wrote:
> Hi,
>
> While auditing the memory-region re-registration path in the irdma driver I
> found a case where irdma_rereg_user_mr() can leave a struct ib_mr pointing
> at a PD that the uverbs core no longer considers it to hold a reference on,
> if the reregistration itself fails partway through. I think this is worth a
> look before someone hits it in the field, so I'm sending the analysis and a
> proposed fix together rather than just the report.
Thanks for the bug report. Please submit a patch following the guidance in
Documentation/process/submitting-patches.rst. There is no need to CC the
security@ mailing list; this is a regular bug.
Thanks
next parent reply other threads:[~2026-11-03 12:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAAAp7fgvKfLqxsZrvmq2+xtq=_AuGOmKLYijAsMk=bKCJFkSGQ@mail.gmail.com>
2026-11-03 12:12 ` Leon Romanovsky [this message]
2026-11-03 13:39 ` [PATCH] RDMA/irdma: Restore original PD on rereg_user_mr failure Jacob Moroni
2026-11-03 19:42 ` Leon Romanovsky
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=20261103121246.GF264423@unreal \
--to=leon@kernel.org \
--cc=jgg@ziepe.ca \
--cc=linux-rdma@vger.kernel.org \
--cc=mohamadpishdar@gmail.com \
--cc=security@kernel.org \
--cc=shiraz.saleem@intel.com \
--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