From: sashiko-bot@kernel.org
To: "Abhijit Gangurde" <abhijit.gangurde@amd.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [for-next v4 4/4] RDMA/ionic: Accept QP SQ and RQ rings as ioctl umem attributes
Date: Thu, 03 Dec 2026 11:32:34 +0000 [thread overview]
Message-ID: <sashiko-outbox-247673@kernel.org> (raw)
In-Reply-To: <20261203110805.2577721-5-abhijit.gangurde@amd.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] RDMA/ionic: IONIC_CTX_CMASK_CQ_QP_BUF_UMEM advertised before
QP UMEM support
--
commit 4841c6bccd16b459b89d301915faa2eb394b51fd
Author: Abhijit Gangurde <abhijit.gangurde@amd.com>
RDMA/ionic: Accept QP SQ and RQ rings as ioctl umem attributes
This commit updates ionic_get_user_q_umem() to pin QP SQ and RQ rings
from the UVERBS_ATTR_CREATE_QP_SQ_BUF_UMEM and
UVERBS_ATTR_CREATE_QP_RQ_BUF_UMEM ioctl attributes when present, falling
back to the qdesc virtual address otherwise.
> Userspace passes each QP ring to create_qp as a
> struct ib_uverbs_buffer_desc on the core attributes
> UVERBS_ATTR_CREATE_QP_SQ_BUF_UMEM and
> UVERBS_ATTR_CREATE_QP_RQ_BUF_UMEM. Those attributes are already
> optional on UVERBS_METHOD_QP_CREATE. The get_context bit
> IONIC_CTX_CMASK_CQ_QP_BUF_UMEM tells userspace it may send them.
[Severity: Medium]
Should enabling IONIC_CTX_CMASK_CQ_QP_BUF_UMEM in ionic_alloc_ucontext()
be moved from commit "RDMA/ionic: Accept CQ ring buffers as ioctl umem
attributes" into this commit?
The preceding commit already sets IONIC_CTX_CMASK_CQ_QP_BUF_UMEM while
ionic_get_user_q_umem() still pins q->addr with ib_umem_get_va(). On
that commit, userspace passing QP rings via ioctl attributes with zero
qdesc addresses fails QP creation with -EFAULT, breaking bisectability.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203110805.2577721-1-abhijit.gangurde@amd.com?part=4
next prev parent reply other threads:[~2026-12-03 11:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 11:08 [for-next v4 0/4] RDMA/ionic: Accept CQ, SQ, and RQ rings as umem attributes Abhijit Gangurde
2026-12-03 11:08 ` [for-next v4 1/4] RDMA/ionic: Bound user queue depth and stride before shifting Abhijit Gangurde
2026-12-03 11:08 ` [for-next v4 2/4] RDMA/ionic: Check user ring alignment on the pinned umem Abhijit Gangurde
2026-12-03 11:08 ` [for-next v4 3/4] RDMA/ionic: Accept CQ ring buffers as ioctl umem attributes Abhijit Gangurde
2026-12-03 11:31 ` sashiko-bot
2026-12-03 11:08 ` [for-next v4 4/4] RDMA/ionic: Accept QP SQ and RQ rings " Abhijit Gangurde
2026-12-03 11:32 ` sashiko-bot [this message]
2026-12-03 11:32 ` [for-next v4 0/4] RDMA/ionic: Accept CQ, SQ, and RQ rings as " sashiko-bot
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=sashiko-outbox-247673@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=abhijit.gangurde@amd.com \
--cc=linux-rdma@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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