From: sashiko-bot@kernel.org
To: "Allison Henderson" <achender@kernel.org>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH net v4 2/2] net/rds: don't let the rdma_cm destroy an id RDS still owns on route failure
Date: Sat, 03 Oct 2026 17:56:22 +0000 [thread overview]
Message-ID: <20261003175622.D79EA1F0089F@smtp.kernel.org> (raw)
In-Reply-To: <20261003163408.250568-3-achender@kernel.org>
> rds_rdma_cm_event_handler_cmn() hands the return value of
> rdma_resolve_route() straight back to the rdma_cm on
> RDMA_CM_EVENT_ADDR_RESOLVED. A synchronous failure there - -ENOMEM
> from the route work allocation, an SA query that cannot be set up, a
> RoCE route with no usable device - makes addr_handler() destroy the
> id the event was delivered on. That id is ic->i_cm_id, and nothing
> clears the pointer: the connection sits in RDS_CONN_CONNECTING with a
> freed id until its shutdown calls rdma_disconnect() and
> rdma_destroy_id() on it.
>
> The ROUTE_RESOLVED case already avoids this: rds_ib_cm_initiate_connect()
> forces a zero return while ic->i_cm_id == cm_id, as the comment there
> explains. Do the same here - drop the connection and return 0 - so
> the id stays RDS's to destroy from the shutdown, and the reconnect
> gets a fresh one.
>
> Fixes: 55b7ed0b582f ("RDS: Common RDMA transport code")
> Assisted-by: Claude-Code:claude-fable-5
> Signed-off-by: Allison Henderson <achender@kernel.org>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261003163408.250568-1-achender@kernel.org?part=2
prev parent reply other threads:[~2026-10-03 17:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-03 16:34 [PATCH net v4 0/2] net/rds: RDMA-CM event handler fixes for non-IB devices Allison Henderson
2026-10-03 16:34 ` [PATCH net v4 1/2] net: rds: fix uninitialized trans dereference in CM event handler Allison Henderson
2026-10-03 17:56 ` sashiko-bot
2026-10-03 16:34 ` [PATCH net v4 2/2] net/rds: don't let the rdma_cm destroy an id RDS still owns on route failure Allison Henderson
2026-10-03 17:56 ` 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=20261003175622.D79EA1F0089F@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=achender@kernel.org \
--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