From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796297555; b=E+K87yRXf+MRwK+T9tcsIsOV+mKrfzjiBR3r6nnbBSEdvGDCMqUNkIra/LzwLjFwuEJs lmiSrYEcWTBijNUGL3R4i75h98OMa54zDH27IVLIu3IV6JI+nMgTQvVVeeOP4K4fMyePd UK5NFfMfetFq2oPi9iDS0JvNhT8LEPwZSYyAEdGZJoi/DKzLGprk5UNZifkIc35VNcgyb xrq4zjZf6Fn6Fl6w/zfEN8115MtNPULIVK/507WHmE+pfT9qH5a4qgMHruCLlU4RIT0PI y9O2lKZmuGoxOYv9GR05GnMR4jrI/7vHXjuWhTFWSguL0i+Ju6Vd3/KoN3qi7PzSVbw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796297555; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Q8Cuiuv2ElKx1n9bDATYu96mWC1p2WucQhLX9PifzHs=; b=LjaHNOFJZbNVEC8CnnKALbtqrGTb8e/k7c48qxaA55cyOOy+JTe0bp+rjeipY2K2L6l7 yllCbAm2u5xe4rPt0PUHKOSS+9WKPAwo/eolGklEoTb4BJUdg1Z3tWHDrgSi/KYxMc0Jh SxZxTAwMojxJBn4t9KIMu9mhMu5zsoa+P+jm/iUpW8y8Y7GvARa3Rim3+6BREqpgf+OqV BbSq98u/ngAcRX746UH9wHXBPuXfMGMzYf7DpUccypdiIGdeS0zgUdFzIFuEYNiPT2o3V 3sy2tHjilkzLtfdVCJd/gUXHsausJQdpUZ/MyC50qaOb0UjeUNJGeymTa7sDI2DJATA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fuGJfmm3; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F92F606A336 for ; Thu, 3 Dec 2026 11:32:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fuGJfmm3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2AE61F00896; Thu, 3 Dec 2026 11:32:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796297554; bh=Q8Cuiuv2ElKx1n9bDATYu96mWC1p2WucQhLX9PifzHs=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=fuGJfmm3qF9a+6s9jZBbVXvY0A86+WAm4WBz6tyAQ9icI9b02pxl5Tu3pcyHvQxCG csZknFK2zDBtulGBdDWP6YR/u1t97NQRkwDzav76reMRSiQC3LG1Wlo7cGEzheZdxK P5tjFhDPs6aWDlx81UcIM89gY5qVDZmQIwEn/sJ8i9e2lCxli8/jguQLOvxT1+4sgB 87LYpyYct8nji0ma7ug5ue+v+j4S+TueyprBfGLO+mD6ONxO9e2qdYWrmTnJ0RZyUD UhTUpQXEBPlu7rsNbLoiv16mUgtFRKy1ulZdhrWZhOIxC68ivcLexnZ5vGIGUshHDP 31zE41FU7D98Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [for-next v4 4/4] RDMA/ionic: Accept QP SQ and RQ rings as ioctl umem attributes Reply-To: sashiko-reviews@lists.linux.dev To: "Abhijit Gangurde" Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261203110805.2577721-5-abhijit.gangurde@amd.com> References: <20261203110805.2577721-1-abhijit.gangurde@amd.com> <20261203110805.2577721-5-abhijit.gangurde@amd.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 11:32:34 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203110805.2577= 721-1-abhijit.gangurde@amd.com?part=3D4