Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Bobby Eshleman <bobbyeshleman@meta.com>
To: <jrmmhm.kernel@eldare.de>
Cc: Stefano Garzarella <sgarzare@redhat.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Willem de Bruijn <willemb@google.com>,
	Simon Horman <horms@kernel.org>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Alexei Starovoitov <ast@kernel.org>, Michal Luczaj <mhal@rbox.co>,
	<linux-kernel@vger.kernel.org>, <virtualization@lists.linux.dev>,
	<netdev@vger.kernel.org>, <bpf@vger.kernel.org>,
	Sashiko <sashiko-bot@kernel.org>, <stable@vger.kernel.org>
Subject: Re: [PATCH net] vsock/bpf: do not count psock->ingress_skb as data to read
Date: Thu, 3 Dec 2026 08:25:56 -0800	[thread overview]
Message-ID: <axGYFHiXNu7+T7gR@devvm29614.prn0.facebook.com> (raw)
In-Reply-To: <179628461880.7.9850109758188110811.1829254461@eldare.de>

On Thu, Dec 03, 2026 at 07:56:53AM +0000, jrmmhm.kernel@eldare.de wrote:
> On Tue, Dec 01, 2026 at 05:36:24PM -0800, Bobby Eshleman wrote:
> > I remember modeling this after unix (and I think udp?) which seems to
> > still use ingress_skb too. I wonder if the issue exists there too?
> 
> Thanks for asking, I tried unix and udp with test programs in a VM on
> the base this patch was sent on (net 656683f2e292). unix is affected:
> with data only in ingress_skb, a blocking recv() on a stream or datagram
> socket (seqpacket cannot be in a sockmap) returns -EAGAIN at once, and a
> reader that slept first sleeps until its timeout although its data
> becomes readable once the backlog has run. udp does not hang but spins
> at full CPU and ignores its timeout, which Yuan Chen already reported on
> bpf-next on 2026-09-29, where Alexei sent his fix back for changes. I
> tested no fix for either, and all of this is from one build on one
> machine. I can prepare a unix patch if that is welcome.
> 
> Jerome
> 

Thanks for checking, I'd probably submit a follow up to unix too. Maybe
some tests to the sockmap selftests too if it is simple enough to add
there?

Best,
Bobby

  reply	other threads:[~2026-12-03 16:26 UTC|newest]

Thread overview: 6+ 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 via B4 Relay
2026-12-02  1:36 ` Bobby Eshleman
2026-12-03  7:56   ` jrmmhm.kernel
2026-12-03 16:25     ` Bobby Eshleman [this message]
2026-12-02  9:15 ` Stefano Garzarella
2026-12-03  7:57   ` 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=axGYFHiXNu7+T7gR@devvm29614.prn0.facebook.com \
    --to=bobbyeshleman@meta.com \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=jrmmhm.kernel@eldare.de \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mhal@rbox.co \
    --cc=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sashiko-bot@kernel.org \
    --cc=sgarzare@redhat.com \
    --cc=stable@vger.kernel.org \
    --cc=virtualization@lists.linux.dev \
    --cc=willemb@google.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox