From: Jason Gunthorpe <jgg@ziepe.ca>
To: Jacob Moroni <jmoroni@google.com>
Cc: leon@kernel.org, linux-rdma@vger.kernel.org
Subject: Re: [PATCH] RDMA/mthca: Check for null udata during reg_user_mr
Date: Tue, 30 Jun 2026 14:43:33 -0300 [thread overview]
Message-ID: <20260630174333.GL7525@ziepe.ca> (raw)
In-Reply-To: <CAHYDg1TOGxRGZrS69d4Y--Shj_DZv0nJuM73iHUBwBM70g_t3Q@mail.gmail.com>
On Tue, Jun 30, 2026 at 12:04:45PM -0400, Jacob Moroni wrote:
> For irdma at least, I was able to trigger it with a one-off test binary
> that directly invokes the UVERBS_METHOD_REG_MR ioctl.
>
> The handler in the kernel then calls ops.reg_user_mr with null as
> the last argument.
>
> drivers/infiniband/core/uverbs_std_types_mr.c#L366
I think that is a bug, would need to research why it turned out like
that.
"user mr" should always have an attrs.
Jason
prev parent reply other threads:[~2026-06-30 17:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 15:55 [PATCH] RDMA/mthca: Check for null udata during reg_user_mr Jacob Moroni
2026-06-30 15:59 ` Jason Gunthorpe
2026-06-30 16:04 ` Jacob Moroni
2026-06-30 17:43 ` Jason Gunthorpe [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=20260630174333.GL7525@ziepe.ca \
--to=jgg@ziepe.ca \
--cc=jmoroni@google.com \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.