From: Qican Ma <goonsomeway@gmail.com>
To: mjambigi@linux.ibm.com
Cc: alibuda@linux.alibaba.com, dust.li@linux.alibaba.com,
sidraya@linux.ibm.com, edumazet@kernel.org, kuba@kernel.org,
pabeni@redhat.com, horms@kernel.org, willemb@google.com,
linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org,
netdev@vger.kernel.org
Subject: Re: [PATCH net v3] net/smc: serialize clcsock release against CDC receive path
Date: Fri, 04 Dec 2026 10:20:46 +0800 [thread overview]
Message-ID: <179635084661.26810.15769092303917006209@gmail.com> (raw)
In-Reply-To: <1bd7af43-7043-4263-9d2f-15c6d6318c9e@linux.ibm.com>
Hi Mahanta,
Thanks for the detailed review.
You are right on both counts. I verified that 46c28dbd4c23 introduced
the clcsock->sk->sk_shutdown write into the tasklet-context receive
path, while b38d732477e4 predates both halves of the race.
I have sent v4 with both issues addressed:
1. The Fixes: tag now points at 46c28dbd4c23.
2. The patch now closes the class rather than only the CDC site:
smc_tx_is_corked() guards on conn->freed (and a NULL clcsock check)
before dereferencing. Since both the writer in smc_conn_free() and
this reader run under lock_sock(), the access is race-free; a dying
connection is reported as corked so that no further RDMA writes are
triggered while teardown is in progress.
I will also review your clcsock lifetime series; as you say it is
net-next hardening and complementary to this targeted stable fix.
Thanks,
Qican Ma
prev parent reply other threads:[~2026-12-04 2:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 6:16 [PATCH net v3] net/smc: serialize clcsock release against CDC receive path Qican Ma
2026-12-02 10:54 ` Mahanta Jambigi
2026-12-04 2:20 ` Qican Ma [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=179635084661.26810.15769092303917006209@gmail.com \
--to=goonsomeway@gmail.com \
--cc=alibuda@linux.alibaba.com \
--cc=dust.li@linux.alibaba.com \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=mjambigi@linux.ibm.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sidraya@linux.ibm.com \
--cc=willemb@google.com \
/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