From: sashiko-bot@kernel.org
To: "Chuck Lever" <cel@kernel.org>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH 1/5] SUNRPC: Reject add_xprt on a backchannel xprt_switch
Date: Wed, 04 Nov 2026 17:59:59 +0000 [thread overview]
Message-ID: <sashiko-outbox-197807@kernel.org> (raw)
In-Reply-To: <20261104-liange-v1-1-f097e10cea1b@kernel.org>
> The add_xprt sysfs file clones the main transport of an xprt_switch,
> including its bc_xprt. On the xprt_switch of an NFSv4.1 callback
> client, the clone runs a backchannel setup routine against the main
> transport's svc_xprt. xs_setup_bc_tcp() overwrites xpt_bc_xprt
> without releasing the reference the original rpc_xprt held there, so
> the original rpc_xprt leaks along with its netns and module
> references. On an RDMA callback client the same write oopses
> instead, because the RDMA backchannel transport leaves xprt_class
> NULL.
>
> A backchannel transport rides on its svc_xprt and has no connection
> of its own to clone. Return -EOPNOTSUPP when the main transport has
> a bc_xprt, before reading its xprt_class, as
> rpc_sysfs_xprt_dstaddr_store() does for transports other than TCP
> and RDMA.
>
> Fixes: df210d9b0951 ("sunrpc: Add a sysfs file for adding a new xprt")
> Cc: stable@vger.kernel.org
> Signed-off-by: Chuck Lever <cel@kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-liange-v1-0-f097e10cea1b@kernel.org?part=1
next prev parent reply other threads:[~2026-11-04 18:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 17:49 [PATCH 0/5] SUNRPC: Fix backchannel transport lifetime bugs Chuck Lever
2026-11-04 17:49 ` [PATCH 1/5] SUNRPC: Reject add_xprt on a backchannel xprt_switch Chuck Lever
2026-11-04 17:59 ` sashiko-bot [this message]
2026-11-04 17:49 ` [PATCH 2/5] svcrdma: drop the extra reference on the backchannel transport Chuck Lever
2026-11-04 18:03 ` sashiko-bot
2026-11-04 17:49 ` [PATCH 3/5] svcrdma: Hold a module reference for " Chuck Lever
2026-11-04 18:04 ` sashiko-bot
2026-11-04 17:49 ` [PATCH 4/5] svcrdma: Set xprt_class on " Chuck Lever
2026-11-04 17:53 ` sashiko-bot
2026-11-04 17:49 ` [PATCH 5/5] SUNRPC: Set up the servername before the transport is created Chuck Lever
2026-11-04 17:54 ` 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-197807@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=cel@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