All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jiayi Zhang" <zhangjiayi1014@gmail.com>
Cc: linux-rdma@vger.kernel.org, linux-s390@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] net/smc: close non-accepted sockets without holding the listen lock
Date: Wed, 02 Dec 2026 18:06:27 +0000	[thread overview]
Message-ID: <sashiko-outbox-246404@kernel.org> (raw)
In-Reply-To: <20261202175908.4136866-1-zhangjiayi1014@gmail.com>

> syzbot reports a possible deadlock when a listening SMC socket is
> closed:
> 
>   WARNING: possible circular locking dependency detected
>   ...
>   is trying to acquire lock:
>   ((work_completion)(&new_smc->smc_listen_work)), at: __flush_work
>   but task is already holding lock:
>   (sk_lock-AF_SMC/1), at: smc_release+0x3a5/0x620 net/smc/af_smc.c:353
>   ...
>   -> #1 (sk_lock-AF_SMC/1):
>          lock_sock_nested+0x41/0xf0 net/core/sock.c:3909
>          smc_listen_out+0xf2/0x4b0 net/smc/af_smc.c:1941
>          ...
>          smc_listen_work+0x445/0x5040 net/smc/af_smc.c:2595
> [ ... ]
> 
> Fixes: fd57770dd198 ("net/smc: wait for pending work before clcsock release_sock")
> Reported-by: syzbot+621fd56ba002faba6392@syzkaller.appspotmail.com
> Closes: https://syzkaller.appspot.com/bug?extid=621fd56ba002faba6392
> Signed-off-by: Jiayi Zhang <zhangjiayi1014@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202175908.4136866-1-zhangjiayi1014@gmail.com?part=1

      reply	other threads:[~2026-12-02 18:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 17:59 [PATCH net] net/smc: close non-accepted sockets without holding the listen lock Jiayi Zhang
2026-12-02 18:06 ` 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=sashiko-outbox-246404@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=sashiko-reviews@lists.linux.dev \
    --cc=zhangjiayi1014@gmail.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 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.