From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=67.231.153.30 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796315192; b=Mh12D8jBtS8z7Vebytr8J8zOfTqXnEatT0bwCeffSIhVgYBw6GC2EwigaBgEI378j7OR hqi7rS4JCJ3m5t7zabQT5GBimjO8k+0xCgKoCeXfHhYembUcknG79dzkAnxOpwDiDw+hI 8YA1OzK725CJn/jmHakHWxi/2mSVTGMNZK+TG/I2LvpjZGB7btlL+oq/q7N7O2gJ+eLX/ q2WM3H+x77mJiEn3Z5whuO8qRKZnFRpGC1TJP+/ETATlP8c8L/6IDVFcp5qemeqYuRm1b TnouXB4H6buE/wLvboA6pDYAZRrJJMx6CCc5Mb02pXvt7Pwn+07p8tDcT8f+H/rZ5pw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796315192; h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Date:From:To: CC:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:X-Originating-IP: X-Proofpoint-Spam-Info:X-Proofpoint-GUID:X-Authority-Analysis: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-ORIG-GUID: X-Proofpoint-Virus-Version; bh=+V49upMGjRWy7WXINhjdDpgdKxz6nxwYKpu3XH0f03o=; b=yUGVLw8ce2NlN20Fsi1k0o5UIwCJHiLN7uoFIomGYiui+Ud857T3NGKgjtzHutzbXSmP Wlpvqk8dqJeBdgdZHy2EpOZ1tIr6dvzzuvjpifOO6swa5bg9b+91KkOkp/brCbc834Opk n7owCQ9dKOaLiXtvDQuLLzpzMM905ieBizRjSUD4FZWMKjLJA0RMed+WRTTvoKb8njLOq qPd77b2V4y5PPa3B9Rvw8/FLZklrMwTu5ChJpqwNHCOTj88T39+ZMwMrQ333r7VGYprDy Max//6SgSuuvXh5y7ikV3hPt/VJVsEuMCxppkXEYSihi0J3A3yOahrSv5utlFJysvog== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=meta.com; spf=pass smtp.mailfrom=meta.com; dkim=pass header.d=meta.com header.i=@meta.com header.a=rsa-sha256 header.s=pps82601-s2048-2026-q3 header.b=nAmQx8ig; arc=none smtp.remote-ip=67.231.153.30 Received: from mx0a-00082601.pphosted.com (mx0b-00082601.pphosted.com [67.231.153.30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09043606A322 for ; Thu, 3 Dec 2026 16:26:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 09043606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=meta.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=meta.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=meta.com header.i=@meta.com header.a=rsa-sha256 header.s=pps82601-s2048-2026-q3 header.b=nAmQx8ig Received: from pps.filterd (m0001303.ppops.net [127.0.0.1]) by m0001303.ppops.net (8.18.1.11/8.18.1.11) with ESMTP id 6B3FoXxo2954897; Thu, 3 Dec 2026 08:26:10 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meta.com; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=pps82601-s2048-2026-q3; bh=+V49upMGjRW y7WXINhjdDpgdKxz6nxwYKpu3XH0f03o=; b=nAmQx8iga6K3Hv9Obmf/K9+ibGq qf/mrJ31YSrS56jG1L9CqfkMvzXtDcpn/L8GRtF/Rb+o+SRpRGQBz9qKLd1uYjqh mAnPVmWRm/WKsKIX/jj4RfC6Vez49HtYnWGu0PcfNekqsfuttpEUBAYWlVnbzc9C dB+4VDzHmV91MB1KLP0HfwdqJ64qKBwzdLKSPfiXXIc4zRuqZvx0e/iAR81QHant dgtmXOCQMHvOw2Wxrte4G7EsCP8oHbhhMPOWWTRwsRTuKmI7cRuMrkIcquKXUBqG YAcvjm2PImW61akkM/1JhGCHsqxFGgtWUxNmJTk2jpkpmNnls71RSXWg8lQ== Received: from mail.thefacebook.com ([163.114.134.16]) by m0001303.ppops.net (PPS) with ESMTPS id 4jawr7vqfb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 03 Dec 2026 08:26:10 -0800 (PST) Received: from localhost (2620:10d:c085:108::4) by mail.thefacebook.com (2620:10d:c08b:78::2ac9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.57; Thu, 3 Dec 2026 16:25:56 +0000 Date: Thu, 3 Dec 2026 08:25:56 -0800 From: Bobby Eshleman To: CC: Stefano Garzarella , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , Simon Horman , "Michael S. Tsirkin" , Alexei Starovoitov , Michal Luczaj , , , , , Sashiko , Subject: Re: [PATCH net] vsock/bpf: do not count psock->ingress_skb as data to read Message-ID: References: <20261201-kup7-ingress-skb-send-v1-1-54ae8d4bf0a7@eldare.de> <179628461880.7.9850109758188110811.1829254461@eldare.de> X-Mailing-List: virtualization@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <179628461880.7.9850109758188110811.1829254461@eldare.de> X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAzMDA2NSBTYWx0ZWRfX2OT6KLEgDeIE /pPRT4muN7466kfs1KRCGkRfO7NzSEWP+iLXtwxkEo6DwnJnaL3nCjyD0D4ZBsOF34fkIESE0SU Cx94Q5trKU/kVhIf16wUdIa12sPQktM= X-Proofpoint-GUID: u-fdmybjq3sM6oHjygmt0UjdhxbUNiTJ X-Authority-Analysis: v=2.4 cv=Woy+otfv c=1 sm=1 tr=0 ts=6b119822 cx=c_pps a=CB4LiSf2rd0gKozIdrpkBw==:117 a=CB4LiSf2rd0gKozIdrpkBw==:17 a=kj9zAlcOel0A:10 a=pUM-KoujPXoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=7x6HtfJdh03M6CCDgxCd:22 a=_78whYxrdx1mplLwxq1U:22 a=PuHwaXIBNscIcK2IwSsA:9 a=CjuIK1q_8ugA:10 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAzMDA2NSBTYWx0ZWRfX0sdKU5CqYcih vC5BUtIrld3ZNHGPZguSvghp2C+i5vjitZbnMJtoF5ZYf3cOaia9MgK3HSU0DtT8q9OaZorBIz0 0ruLneK5IEsHarh+8SEyJTVfMoTSnzRDajHrhJFMksNlixMA6NqC448W+jo1KKsxnm3qw1pV3wC gv5/r2+o0skKzZCXzoqt8E90uUWxHZ40Sw9CyaH24gbkfuAvrl7pd8vD8ZoMnVorSaPTojJFvOG /g/xhkRZzoSeToDgrJF57VzFKZHKreNr/2Yv61+lXxBX4YGM83xCX4qyaLfANJgq0WIWOnD6jfp 6cbaa8iqnNgarwA5jqJbmPmZh2hoYlUacmWz9SQ4ipPGm+5K3Z0SgB/bYZEzlaGXIQiPfS1eulf Jjlv1/6eW9XKLOZstA5pqKrA4cfN/kd1rEM4FIBLZfd8wcSzrejFUA89ivwHaO3JxjcuFt+ULMT B43geGNR5ueWkOElLhg== X-Proofpoint-ORIG-GUID: u-fdmybjq3sM6oHjygmt0UjdhxbUNiTJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-03_04,2026-12-03_04,2025-10-01_01 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