From: sashiko-bot@kernel.org
To: "Jerome Mohm" <jrmmhm.kernel@eldare.de>
Cc: "Eugenio Perez" <eperezma@redhat.com>,
virtualization@lists.linux.dev, bpf@vger.kernel.org,
"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [PATCH net v2] vsock/bpf: release sock lock while waiting for data in recvmsg
Date: Fri, 02 Oct 2026 09:13:48 +0000 [thread overview]
Message-ID: <20261002091348.DA10A1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20261001-kbh3-1-022-fix-v2-v1-1-cfae958a1976@eldare.de>
> From: Jerome Mohm <jrmmhm.kernel@eldare.de>
>
> vsock_bpf_recvmsg() takes lock_sock(sk) and holds it across the receive
> loop, including vsock_msg_wait_data(), which slept in wait_woken() without
> dropping the lock. When data arrived the transport's delivery context (the
> vsock-loopback worker, or the virtio/vhost rx path) called
> virtio_transport_recv_pkt() -> lock_sock() on the same socket and blocked,
> so neither side made progress and a blocking recv() hung; the hung-task
> watchdog reported the delivery worker in D state.
>
> Dropping the socket lock around the wait is necessary but not sufficient:
> vsock_msg_wait_data() also did not loop and checked too few conditions,
> which left three further problems in the same helper.
>
> - It did not loop. Once the lock is dropped, a wakeup that is not for new
> [ ... ]
>
> Fixes: 634f1a7110b4 ("vsock: support sockmap")
> Cc: stable@vger.kernel.org
> Assisted-by: LLM
> Signed-off-by: Jerome Mohm <jrmmhm.kernel@eldare.de>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261001-kbh3-1-022-fix-v2-v1-1-cfae958a1976@eldare.de?part=1
next prev parent reply other threads:[~2026-10-02 9:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-01 21:16 [PATCH net v2] vsock/bpf: release sock lock while waiting for data in recvmsg Jerome Mohm via B4 Relay
2026-10-02 9:13 ` sashiko-bot [this message]
2026-10-05 21:26 ` netdev-bot+sashiko
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=20261002091348.DA10A1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=eperezma@redhat.com \
--cc=jrmmhm.kernel@eldare.de \
--cc=mst@redhat.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=virtualization@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