Article View: linux.kernel.netdev
Article #12936Re: [PATCH bpf-next v3 1/8] selftests/bpf: Remove sockmap update from bpf_iter_unix
From: Jiayuan Chen
Date: Mon, 09 Nov 2026 02:14
Date: Mon, 09 Nov 2026 02:14
48 lines
9637 bytes
9637 bytes
On 11/8/26 1:58 AM, Michal Luczaj wrote:
> BPF iterator programs that can update sockmaps will be limited to
> iter/sockmap. Remove the update from the unix selftest.
>
> This reverts commit 997b8483d44c ("selftests/bpf: Extend bpf_iter_unix to
> attempt deadlocking").
>
> Signed-off-by: Michal Luczaj <mhal@rbox.co>
Reviewed-by: Jiayuan Chen <jiayuan.chen@linux.dev>
> ---
> tools/testing/selftests/bpf/progs/bpf_iter_unix.c | 10 ----------
> 1 file changed, 10 deletions(-)
>
> diff --git a/tools/testing/selftests/bpf/progs/bpf_iter_unix.c b/tools/testing/selftests/bpf/progs/bpf_iter_unix.c
> index 3061b148f338..90beada0386d 100644
> --- a/tools/testing/selftests/bpf/progs/bpf_iter_unix.c
> +++ b/tools/testing/selftests/bpf/progs/bpf_iter_unix.c
> @@ -7,13 +7,6 @@
>
> char _license[] SEC("license") = "GPL";
>
> -SEC(".maps") struct {
> - __uint(type, BPF_MAP_TYPE_SOCKMAP);
> - __uint(max_entries, 1);
> - __type(key, __u32);
> - __type(value, __u64);
> -} sockmap;
> -
> static long sock_i_ino(const struct sock *sk)
> {
> const struct socket *sk_socket = sk->sk_socket;
> @@ -82,8 +75,5 @@ int dump_unix(struct bpf_iter__unix *ctx)
>
> BPF_SEQ_PRINTF(seq, "\n");
>
> - /* Test for deadlock. */
> - bpf_map_update_elem(&sockmap, &(int){0}, sk, 0);
> -
> return 0;
> }
>
Technical Details
Message-ID:
<65d109ab-3dca-4521-bc1d-bb1f8810bb14@linux.dev>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358968-linux-kernel-netdev=dewy.ruReferences:
<20261107-sockmap-update-limit-iter-v3-0-7c0bad1ad036@rbox.co> <20261107-sockmap-update-limit-iter-v3-1-7c0bad1ad036@rbox.co>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358968-linux-kernel-netdev=dewy.ru From: jiayuan.chen@linux.dev (Jiayuan Chen) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH bpf-next v3 1/8] selftests/bpf: Remove sockmap update from bpf_iter_unix Date: Mon, 9 Nov 2026 10:14:57 +0800 Organization: Usenet Network Message-ID: <65d109ab-3dca-4521-bc1d-bb1f8810bb14@linux.dev> References: <20261107-sockmap-update-limit-iter-v3-0-7c0bad1ad036@rbox.co> <20261107-sockmap-update-limit-iter-v3-1-7c0bad1ad036@rbox.co> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="251339"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:80/T4DigQPRAyun86o8OFORw0Do= sha256:UUVDm6nzeWfrEDbYFq6wVUY8noz52+V+2g6r1O3o9zc= sha1:BBI6fPc/E/iiNICWjZ7fR/nWFpY= sha256:YJDrUyKJXBDCWIYjHqex/ubNQfqh6ltcui9s89xLljA= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id E84CD11369A; Mon, 9 Nov 2026 05:16:11 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.051 X-Spam-Status: No, score=-2.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HK_RANDOM_FROM=1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linux.dev X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JiwUv6oakBMY; Mon, 9 Nov 2026 05:16:06 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358968-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 89EB5113698; Mon, 9 Nov 2026 05:15:56 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 0158F80A2A; Mon, 9 Nov 2026 02:15:18 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794190516; b=ktdNgIFoHgo6n7RyYt36xsl1EuuW2RFJOzG+kecbtQISkFaBCpYcq7U0Y8ZWusx/znRU K2931wgV7Bm8S9Tho3OkCxZfkaM8BBGvkhVpAc1OhPunhW18VsJbWT4tKp/98kasgPwQ0 saiZ/SEo8ZntoPj9aI2Rmaq4sbZPcXtLJDYG9tG514rldKyF3ZFaWGwhBkBeNIjLokr96 xxlFFw8P9MoZpyR93LhGkiLYfWH9fPomUiWuKl6mfZaWmADHes46FivIt8mJfgLrfi0IA iC0fuQdOhWNh1+r25NYwbVxh5BLz2dmNaKmGETgb8fDsq5Ie7IT7VBSRqpQbt7tRPGw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794190516; h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature: X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent: Subject:To:Cc:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=bIloYSK3+4K/KkpgHLmr3ED9jzQvebQcrpQM//1CZGo=; b=BW27YTiXtn0Zif9KFgqyBKd4DGZc+c/H7W8uOJ8Fm5K14nx8ucJP7qtZ2b3+pug4JyDO mS6gFni8bqO7UbL5df6cfdp4qB7W8bzX5f7q0bSGOpTvlk81f1kH60jyJpdoagPyYNj22 xAXDwnFn7LSGjTuSC0JVMdHsUFD7roTtJte1gTiEYVOFPnNM1R+mCv0YkFIfGQNqZcMTV IFwP3IelyYASNsXxe+YxX1PXV4YgJQELnBweBcYlV4WHzpK6qc+7oOeWReE/pN9oZ2WFX 0qsgXkR2U2+5oUdF5Ce+Hvol46Q0CyhQ19Se6hnTFIQ7KKTuo3pbS/1d3vESQ8/+Q8g== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=Xa1Jr9pq; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C11FD606A333; Mon, 9 Nov 2026 02:15:16 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=Xa1Jr9pq X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.88 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794190515; b=RggaUg68/W9gmrtNvSbKquJXeVUVq9Oft+/4iS1KuztCCPiavx7QmYGg4mzW7+d35rC3 2tz4lqcDz0mdSYHZNIPEH40zuIYvdvBu8Qqp6kyM1+e937Nwr/SB7ZeHAengUWV1sfbPJ Idm1IFy1ugBjUumbaSNq8/a/STPECs7EhWKWNcfQpFW86Sj99S7oFEa/Iq1KIGVCc0I5k YIcJUsSO2Cf5uhDmCaXHUifETOFjrJbGNlDh3CkCsNuSeGJYhvw0UCzIKqyPE35CWLK+F PVompzU0qjLajP7rDR3wNthkc8vnRnRyuRj3VTNs7M17qSTHIZzfbMg5fxFzjE26DSA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794190515; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=bIloYSK3+4K/KkpgHLmr3ED9jzQvebQcrpQM//1CZGo=; b=ff89Z+0poLqNsWh57pNveEBo7DoQuZtiOXFp7SIZj3rY00FtkGRmTp4Ib0EgI/EasPLP pVbas+eGu3CvnNLooS/C7FIFXe36tYOQBSTe3xptaHOXJiLouYI0oZ6rKTfNpldQG8D2E RhFo5wCwSdotN0RvyUkEnIxupGGgJPhIHiwJzQgqt9J2Zwc389lpQA/z+u4VX1+B3ULqY 7K3Ksc5tjcxUMpWXlUgrqRLWK9ldN3rhs2q+X4Q3f80CEJnB3dpccQWhbPLcVGJEKNPHJ z/FtPtXQ+C66BeGMgSKkvwbCBTx8TxaJVvlvrOhd5PWZMwptajGqpLRoUyACaFIXXug== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=Xa1Jr9pq; arc=none smtp.remote-ip=95.215.58.88 X-Received: from mta1.migadu.com (out-88.mta1.migadu.com [95.215.58.88]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C28BB606A326 for <netdev@vger.kernel.org>; Mon, 9 Nov 2026 02:15:13 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C28BB606A326 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: netdev@vger.kernel.org X-DKIM-Signature: a=rsa-sha256; bh=8n8V1yRl+iYZ7zK/bT1eTEsTmfpO4TUveKPsBFyRf8k=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1794190511; v=1; x=1794795311; b=Xa1Jr9pqz1vr1rqOZrFS0+WmpycF+gQF5QftMAeWPB9sFvpuO4IeHLZLxsBioaslsF2tXWUH 64HHIz9xOEMmMctAASxPTKtUGNKqcuxlQSNGlNGKU7HN3Yecn/SoQRS9vWLWaKb2FzCUZ5mPR+3 aEOTp+nUxZJiQVqxrg2/+1F4= X-Envelope-To: netdev@vger.kernel.org X-Received: by smtp.migadu.com with ESMTPS id e4b351546fe3877f; Mon, 09 Nov 2026 02:15:07 +0000 X-Mizu-Trace-ID: e4b351546fe3877f X-Migadu-Flow: FLOW_OUT X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-User-Agent: Mozilla Thunderbird X-Cc: bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org X-In-Reply-To: <20261107-sockmap-update-limit-iter-v3-1-7c0bad1ad036@rbox.co>