From: sashiko-bot@kernel.org
To: "Li Xiasong" <lixiasong1@huawei.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [RFC PATCH 6.6.y] xprtrdma: Fix endpoint leak after address change and device removal
Date: Thu, 05 Nov 2026 12:29:39 +0000 [thread overview]
Message-ID: <sashiko-outbox-199032@kernel.org> (raw)
In-Reply-To: <20261105124224.4051975-1-lixiasong1@huawei.com>
> Commit a562485c359d ("xprtrdma: Fix ep kref imbalance on ADDR_CHANGE")
> is the linux-6.6.y backport of af9b65b29af34. It leaves the ESTABLISHED
> reference outstanding after ADDR_CHANGE and relies on a subsequent
> DISCONNECTED event to release it.
>
> However, linux-6.6.y still handles DEVICE_REMOVAL in the CM event
> handler. Consider the following sequence on an established connection:
>
> ESTABLISHED: acquire the connection reference, status = 1
> ADDR_CHANGE: set status = -ENODEV and request asynchronous close
> DEVICE_REMOVAL: observe status = -ENODEV, skip the disconnected path
>
> Before invoking the DEVICE_REMOVAL callback, the CMA sets the CM ID state
> to RDMA_CM_DEVICE_REMOVAL. cma_ib_handler() then filters subsequent
> IB CM disconnect events. The DEVICE_REMOVAL handler has skipped the
> [ ... ]
> The flag is initially clear in the zero-initialized endpoint, and
> all accesses are serialized by the CM ID's handler mutex.
>
> Fixes: a562485c359d ("xprtrdma: Fix ep kref imbalance on ADDR_CHANGE")
> Signed-off-by: Li Xiasong <lixiasong1@huawei.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261105124224.4051975-1-lixiasong1@huawei.com?part=1
prev parent reply other threads:[~2026-11-05 12:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 12:42 [RFC PATCH 6.6.y] xprtrdma: Fix endpoint leak after address change and device removal Li Xiasong
2026-11-05 12:29 ` sashiko-bot [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=sashiko-outbox-199032@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=lixiasong1@huawei.com \
--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