Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Sasha Levin <sashal@kernel.org>,
	kuba@kernel.org, Mahanta Jambigi <mjambigi@linux.ibm.com>
Subject: Re: [PATCH 5.15.y] net/smc: fix link group ownership in handshake abort
Date: Fri, 27 Nov 2026 12:01:30 -0500	[thread overview]
Message-ID: <2026-11-26-1-daily-reply-0042@kernel.org> (raw)
In-Reply-To: <20261126060536.642851-1-mjambigi@linux.ibm.com>

> [ 5.15 adaptation: there is no link group refcount here, so the lgr
>   hold/put around the abort is omitted.

Without that hold I don't see what keeps the lgr alive across smc_conn_abort()
on 5.15. This makes smc_conn_free() unregister the connection unconditionally,
and 5.15 has no conn->lgr reference either: 61f434b0280e ("net/smc: Resolve the
race between link group access and termination") is v5.17. So far the
connection's entry in lgr->conns_all is what keeps a link group claimed by
another context alive, since the terminator has to lock_sock() the handshake
socket before it can call smc_lgr_free(). With the connection unregistered
first, terminate_work can free the lgr while the abort path still reads
lgr->conns_num, arms lgr->free_work and terminates the group again.

How does the lgr stay alive there on 5.15? If it needs a 5.15-specific pin,
could you send a v2 with it? Please also keep the Link: and Jakub's
Signed-off-by from the upstream commit in the v2.

-- 
Thanks,
Sasha

      reply	other threads:[~2026-11-27 17:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 17:07 FAILED: patch "[PATCH] net/smc: fix link group ownership in handshake abort" failed to apply to 5.15-stable tree gregkh
2026-11-26  6:05 ` [PATCH 5.15.y] net/smc: fix link group ownership in handshake abort Mahanta Jambigi
2026-11-27 17:01   ` Sasha Levin [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=2026-11-26-1-daily-reply-0042@kernel.org \
    --to=sashal@kernel.org \
    --cc=kuba@kernel.org \
    --cc=mjambigi@linux.ibm.com \
    --cc=stable@vger.kernel.org \
    /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