Linux virtualization list
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jerome Mohm" <jrmmhm.kernel@eldare.de>
Cc: virtualization@lists.linux.dev,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH net v3 2/2] vsock/bpf: fix zero-length, MSG_OOB and MSG_ERRQUEUE reads in recvmsg
Date: Wed, 28 Oct 2026 18:14:35 +0000	[thread overview]
Message-ID: <sashiko-outbox-188271@kernel.org> (raw)
In-Reply-To: <20261028-kbh3-1-022-fix-v2-v3-2-bc0752b2d3db@eldare.de>

> From: Jerome Mohm <jrmmhm.kernel@eldare.de>
> 
> vsock_bpf_recvmsg() sends every read that cannot be served from the
> transport's own queue through sk_msg_recvmsg() and its wait loop. Three
> kinds of read do not fit that path:
> 
>  - len == 0: with data queued in the psock ingress queue (for example
>    after an SK_PASS verdict), sk_msg_recvmsg() copies nothing and
>    returns 0, and the wait reports data ready at once, so the loop spins
>    with lock_sock() held. The vsock delivery worker then blocks on the
>    same lock and all rx on the transport stops (hung-task).
>    tcp_bpf, udp_bpf and unix_bpf return 0 early, and
>    __vsock_connectible_recvmsg() handles len == 0 too.
> 
>  - MSG_ERRQUEUE: the read only reaches sock_recv_errqueue() when the
> [ ... ]
> sockmap_basic and the 240 AF_VSOCK cases of sockmap_redir).
> 
> Fixes: 634f1a7110b4 ("vsock: support sockmap")
> Cc: stable@vger.kernel.org
> Signed-off-by: Jerome Mohm <jrmmhm.kernel@eldare.de>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261028-kbh3-1-022-fix-v2-v3-0-bc0752b2d3db@eldare.de?part=2


  reply	other threads:[~2026-10-28 18:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-28 17:55 [PATCH net v3 0/2] vsock/bpf: fix waiting and flag handling in recvmsg Jerome Mohm via B4 Relay
2026-10-28 17:55 ` [PATCH net v3 1/2] vsock/bpf: release sock lock while waiting for data " Jerome Mohm via B4 Relay
2026-10-28 18:14   ` sashiko-bot
2026-10-30 14:18   ` Stefano Garzarella
2026-11-04 16:48     ` jrmmhm.kernel
2026-11-05 10:22       ` Stefano Garzarella
2026-10-28 17:55 ` [PATCH net v3 2/2] vsock/bpf: fix zero-length, MSG_OOB and MSG_ERRQUEUE reads " Jerome Mohm via B4 Relay
2026-10-28 18:14   ` sashiko-bot [this message]
2026-10-30 14:25   ` Stefano Garzarella
2026-11-04 16:52     ` jrmmhm.kernel

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-188271@kernel.org \
    --to=sashiko-bot@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