From: Jason Gunthorpe <jgg@nvidia.com>
To: linux-rdma@vger.kernel.org
Cc: Chiara Meiohas <cmeiohas@nvidia.com>,
Leon Romanovsky <leon@kernel.org>,
patches@lists.linux.dev, stable@vger.kernel.org,
Zhu Yanjun <yanjun.zhu@linux.dev>,
Yishai Hadas <yishaih@nvidia.com>
Subject: Re: [PATCH rc] RDMA/core: Validate the passed in fops for ib_get_ucaps()
Date: Tue, 2 Jun 2026 10:04:46 -0300 [thread overview]
Message-ID: <20260602130446.GA910183@nvidia.com> (raw)
In-Reply-To: <0-v1-fd9482545e37+1e25-ib_ucaps_fd_ops_jgg@nvidia.com>
On Tue, May 26, 2026 at 12:40:25PM -0300, Jason Gunthorpe wrote:
> Sashiko pointed out it is not safe to rely only on the devt because
> char/block alias so if the user finds a block device with the same dev_t
> it can masquerade as a ucap cdev fd.
>
> Test the f_ops to only accept authentic cdevs.
>
> Cc: stable@vger.kernel.org
> Fixes: 61e51682816d ("RDMA/uverbs: Introduce UCAP (User CAPabilities) API")
> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
> ---
> drivers/infiniband/core/ucaps.c | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
Applied to for-rc
Jason
prev parent reply other threads:[~2026-06-02 13:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-26 15:40 [PATCH rc] RDMA/core: Validate the passed in fops for ib_get_ucaps() Jason Gunthorpe
2026-06-02 13:04 ` 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=20260602130446.GA910183@nvidia.com \
--to=jgg@nvidia.com \
--cc=cmeiohas@nvidia.com \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=patches@lists.linux.dev \
--cc=stable@vger.kernel.org \
--cc=yanjun.zhu@linux.dev \
--cc=yishaih@nvidia.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 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.