All of lore.kernel.org
 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] vsock/bpf: do not count psock->ingress_skb as data to read
Date: Tue, 01 Dec 2026 08:38:47 +0000	[thread overview]
Message-ID: <sashiko-outbox-242861@kernel.org> (raw)
In-Reply-To: <20261201-kup7-ingress-skb-send-v1-1-54ae8d4bf0a7@eldare.de>

> From: Jerome Mohm <jrmmhm.kernel@eldare.de>
> 
> A blocking recv() on a vsock socket in a sockmap can keep sleeping
> after its data has become readable, until its timeout or a signal.
> 
> vsock_sk_has_data() counts skbs in psock->ingress_skb, which recvmsg
> cannot read. With skbs only there, vsock_bpf_recvmsg() falls back to
> __vsock_recvmsg(), which waits for transport data and never looks at
> ingress_msg, where a verdict program puts the data. This happens when
> the socket is the target of an egress redirect and its peer does not
> read: the socket's own data queues behind the redirected skbs.
> 
> Do not count ingress_skb (tcp_bpf does not either), so the reader
> stays in vsock_msg_wait_data() until the backlog has moved the data to
> ingress_msg. Before the prerequisite named in the stable tag that wait
> [ ... ]
> Fixes: 634f1a7110b4 ("vsock: support sockmap")
> Reported-by: Sashiko <sashiko-bot@kernel.org>
> Closes: https://lore.kernel.org/netdev/179123556339.434549.8635789838298158117@kernel.org/
> Cc: stable@vger.kernel.org # cfd56c8720f8: vsock/bpf: release sock lock while waiting for data in recvmsg
> 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/20261201-kup7-ingress-skb-send-v1-1-54ae8d4bf0a7@eldare.de?part=1

  reply	other threads:[~2026-12-01  8:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  8:32 [PATCH net] vsock/bpf: do not count psock->ingress_skb as data to read Jerome Mohm
2026-12-01  8:32 ` Jerome Mohm via B4 Relay
2026-12-01  8:38 ` sashiko-bot [this message]
2026-12-02  1:36 ` Bobby Eshleman

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-242861@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 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.