From: Mahanta Jambigi <mjambigi@linux.ibm.com>
To: Leon Romanovsky <leon@kernel.org>
Cc: linux-rdma@vger.kernel.org, Jason Gunthorpe <jgg@ziepe.ca>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH rdma-next] RDMA/mlx5: Read the CQ consumer index under cq->lock when arming
Date: Fri, 27 Nov 2026 13:18:48 +0530 [thread overview]
Message-ID: <ae1cb21a-7277-4e78-95ec-ab932dc14e70@linux.ibm.com> (raw)
In-Reply-To: <20261126185902.GW774860@unreal>
On 27/11/26 12:29 am, Leon Romanovsky wrote:
> On Wed, Nov 25, 2026 at 09:40:54AM +0100, Mahanta Jambigi wrote:
>> mlx5_ib_arm_cq() reads cq->mcq.cons_index after dropping cq->lock, while
>> the poll path advances the index under that lock. A ULP that arms the CQ
>> from process context while the completion tasklet polls races on the
>> index, as SMC-R does from smc_wr_tx_send():
>>
>> BUG: KCSAN: data-race in mlx5_ib_arm_cq [mlx5_ib] / mlx5_poll_one
>> [mlx5_ib]
>
> Please add full non-trimmed dmesg stack trace to the commit message and
> resend.
Hi Leon,
v3 adds the full untrimmed report to the commit message: both access
stacks, the locks held, and the value transition (0x63d -> 0x63e). It
is from the unpatched kernel.
The code is unchanged from v2; only the message differs.
prev parent reply other threads:[~2026-11-27 7:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 8:40 Mahanta Jambigi
2026-11-26 18:59 ` Leon Romanovsky
2026-11-27 7:48 ` Mahanta Jambigi [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=ae1cb21a-7277-4e78-95ec-ab932dc14e70@linux.ibm.com \
--to=mjambigi@linux.ibm.com \
--cc=jgg@ziepe.ca \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®