Re: [PATCH net] vsock/bpf: do not count psock->ingress_skb as data to read

From: Bobby Eshleman

Date: Thu Dec 03 2026 - 11:26:54 EST


On Thu, Dec 03, 2026 at 07:56:53AM +0000, jrmmhm.kernel@xxxxxxxxx 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