From: sashiko-bot@kernel.org
To: "Mahanta Jambigi" <mjambigi@linux.ibm.com>
Cc: linux-s390@vger.kernel.org, linux-rdma@vger.kernel.org,
"Heiko Carstens" <hca@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"Alexander Gordeev" <agordeev@linux.ibm.com>,
"Christian Borntraeger" <borntraeger@linux.ibm.com>
Subject: Re: [PATCH net-next v3 1/3] net/smc: keep clcsock until socket release
Date: Wed, 02 Dec 2026 07:59:02 +0000 [thread overview]
Message-ID: <sashiko-outbox-245103@kernel.org> (raw)
In-Reply-To: <20261201075815.2159547-2-mjambigi@linux.ibm.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] net/smc: missing Fixes trailers for clcsock asynchronous release
fix
--
commit 08763129cf10acd72cc917830436afbc4ff7796a
Author: Mahanta Jambigi <mjambigi@linux.ibm.com>
> net/smc: keep clcsock until socket release
>
> The clcsock of an SMC socket can be freed from asynchronous contexts:
> link group termination reaches smc_close_active_abort() and peer close
> reaches smc_close_passive_work(), and both can run while the socket is
> referenced by an open file. A task that uses the fd then operates on a
> released socket; this was found by code inspection, not from a reported
> regression.
>
> Free the clcsock only when no socket file can reference it: from the
> release paths, and from the abnormal close paths only once the socket
> has no file left. __smc_release() now tears the connection down before
> releasing the clcsock, which is safe because smc_conn_kill() and
> smc_close_passive_work() return early once conn->freed is set, so a
> clcsock can stay allocated until the application closes the socket.
>
> Signed-off-by: Mahanta Jambigi <mjambigi@linux.ibm.com>
[Severity: Low]
This fixes premature asynchronous release of smc->clcsock in
__smc_release(), smc_close_passive_work(), and smc_close_active_abort().
Should this include:
Fixes: b03faa1fafc8 ("net/smc: postpone release of clcsock")
Fixes: 81cf4f4707af ("net/smc: remove close abort worker")
Fixes: 42bfba9eaa33 ("net/smc: immediate termination for SMCD link groups")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201075815.2159547-1-mjambigi@linux.ibm.com?part=1
next prev parent reply other threads:[~2026-12-02 7:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 7:58 [PATCH net-next v3 0/3] net/smc: fix clcsock lifetime vs asynchronous paths Mahanta Jambigi
2026-12-01 7:58 ` [PATCH net-next v3 1/3] net/smc: keep clcsock until socket release Mahanta Jambigi
2026-12-02 7:59 ` sashiko-bot [this message]
2026-12-01 7:58 ` [PATCH net-next v3 2/3] net/smc: remove the clcsock release lock Mahanta Jambigi
2026-12-01 7:58 ` [PATCH net-next v3 3/3] net/smc: document the clcsock lifetime Mahanta Jambigi
2026-12-01 8:05 ` [PATCH net-next v3 0/3] net/smc: fix clcsock lifetime vs asynchronous paths netdev-bot+sinfo
2026-12-01 10:46 ` Mahanta Jambigi
2026-12-02 7:59 ` 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-245103@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=linux-rdma@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=mjambigi@linux.ibm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.