🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16409

Re: [PATCH bpf-next v3 0/8] bpf, sockmap: Restrict iter-context sockmap updates to sockmap iterators

#16409
From: "Alexei Starovoitov"
Date: Sat, 14 Nov 2026 18:45
23 lines
11692 bytes
On Sat Nov 7, 2026 at 5:58 PM UTC, Michal Luczaj wrote:
> Follow-up to Sashiko's report [1] and the decision to restrict which
> iterator may perform sockmap updates [2]. Series started short: remove
> about-to-be-stale test, restrict updates, add a negative test. Then it
> expanded: mark bpf_iter__sockmap::sk as PTR_TRUSTED, restrict
> bpf_sock_destroy() callers to iter/{tcp,udp}, few little tweaks.
>
> [1]: https://msgid.link/20260626205814.BAC3C1F000E9@smtp.kernel.org
> [2]: https://msgid.link/87echn2fhd.fsf@cloudflare.com
>
> Signed-off-by: Michal Luczaj <mhal@rbox.co>
> ---
> Changes in v3:
> - Drop RFC prefix
> - Update bpf_iter_reg::feature docs
> - Fix tcp_request_sock BTF build error
> - Restrict allowed callers of bpf_sock_destroy() to iter/{tcp,udp} (Alexei)
> - Link to v2: https://patch.msgid.link/20261102-sockmap-update-limit-iter-v2-0-e96a63c43b39@rbox.co

Sorry for the delay. Applied.
Technical Details
Message-ID: <DMV5NLOEYFGF.C7ITHCRCNA7P@gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363413-linux-kernel-netdev=dewy.ru
References: <20261107-sockmap-update-limit-iter-v3-0-7c0bad1ad036@rbox.co>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363413-linux-kernel-netdev=dewy.ru
From: alexei.starovoitov@gmail.com ("Alexei Starovoitov")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH bpf-next v3 0/8] bpf, sockmap: Restrict iter-context sockmap updates to sockmap iterators
Date: Sat, 14 Nov 2026 18:45:49 +0000
Organization: Usenet Network
Message-ID: <DMV5NLOEYFGF.C7ITHCRCNA7P@gmail.com>
References: <20261107-sockmap-update-limit-iter-v3-0-7c0bad1ad036@rbox.co>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network; logging-data="1636305"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:gsD4U9bCh3tKTy+qp9EsbRSfcb8= sha256:ala423d3P24RS25w/hjFS8RBMt+BPRbU9Z+RFTOuJPs= sha1:1J/xlfCTlIwqduKnMQgcuQpb77A= sha256:cAkkpRAq3X5OZKtwgqiYG9xaimXK553cEaAZoLc348w=
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 EDF0F114894; Sat, 14 Nov 2026 21:46:22 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 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, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 1zd3WL6O_CTB; Sat, 14 Nov 2026 21:46:17 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-363413-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 32B8D11488C; Sat, 14 Nov 2026 21:46:08 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 750EE374EC; Sat, 14 Nov 2026 18:46:02 +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=1794681956; b=fkAizW4NZsMZUmV4mokC1bMk/pbahJVbj6+0+PkvVwERKUoEEasOVSJEuPUn55TZUkQl 75eb+uDbSSn0d0ZDiElGNzft9zzYFlkTTG2DiPzDvwJymsMwjMjktpZ5H+xXbAnDqlVkZ 40fuba20i/WGr94zfYzjKy4uihqNF2VCthY0ralMaY6iZvShu0QFU1P95NfP36WiO5NOg 9NtyVKTWAAxtqZx7jIAXLqcKR5al1dUHyN2wp6w/P4P0fOhQsilBgVfbqHg4ewXcvAeJh iOnlKN3SU2OBxBRMrOYvPPezuygKNzNqIzykYLcq0ME+gpT/ztDkoiT7OJbfuNoyMKA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794681956; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature: X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State: X-Gm-Gg:X-Received:Received:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: Mime-Version:Content-Transfer-Encoding:Content-Type:Date:Message-Id: To:Cc:Subject:From:X-Mailer:References:In-Reply-To; bh=mhjMuwlcmmA6xmnk85ku3gy5AP9/nFkfmboSqD/BPaw=; b=jC1HKM1CDG/JhvvKsAsuWdZaUevxU0yTtQ4CeBRDc7aS5Odno5f1099dH0AxQQBy4STy EvjIgu5PSOOn2f7d2Fq7tcqI/bB++MbEjITkIutSjPnTNlGeUJ46UZ2NGEL35va8KHbIn BiCiIBH91OUqtrDedd0e7JorsOeAb+R0UunUykUtd1p+R08Pk7TkCDjCH9Dy0cSPbrYbH rXU5TN2VsGtCDWq8wgjz7sPpQ7UEFzw7sP92n401tQQZXME9XUNe7BbgnOaBPsS8SOCdE JxEnacNp2QtXl+yNK9Xxkn7W+0nEIinB1Sb5FRnxB3n8gElaQb1E3HotQnL3AXjhj6g==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=JUeDpqG+; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; 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 E4AFE606A33F; Sat, 14 Nov 2026 18:45:55 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=JUeDpqG+
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.176
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794681955; b=c2YSOqYou/fuKt6kv27Z+yt9tUpASvNSA1JBCQ7Yo4MLk/041PZ/oYtLQF4NI6tRC8SN CaEmgvfZxcvQDCa+HHEcyBVBhZjR1CTIrb399uqfO88rKNS+qLY8BFQZ9hRtj8BrCbHcO 4yactuQH6PaCCqrdHosW4+boCXp5LE6esMNM/uoO5+cMz2oz1wGaW/c1dI26sC8fC8MnF fS1AjqZKPsR8hjVcTCStso9aZ3HWLVtctoJT4QmrhFa1T30gmmS+PMaFM25AGsHInOWo0 yXTpXbdNltQK2Li7k1zMgzdf6wrZqyXfOV8Wt0J/wYQirE7XGVcXQf8L23TvdUp+xCA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794681955; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Mime-Version:Content-Transfer-Encoding:Content-Type:Date:Message-Id: To:Cc:Subject:From:X-Mailer:References:In-Reply-To; bh=mhjMuwlcmmA6xmnk85ku3gy5AP9/nFkfmboSqD/BPaw=; b=k/yKVOIHx+L/6iwAdHj1MPrYcfCVL+k0UNw9fRuUhy8DumzdAgcgMRjfFes5UCFntrLN 7lSPpagXKmutrmXqfjtKU4OhsqadjYgaPhVKm8q6ByyO2GsCKyb5oUuUK9Oq/5nuWMisl nRpRBPXpVaJOY2L/c2Sdu9cfrA6nQpFR4Sk2z4hEROgGjclelOdnLiV4ZPXfOIT5fAJr2 cJFWRV8ID36WoYTTRdGTUFp9ObR4aIu+eanW/cxpHU2U1v9mTIT2v5IZ5hpe3wfAEy4B+ xbNne8aJ0wj/NBv3uaWi6KISoofl0yMnGIrfvoDG/tRYtJDu9RGebgwIBzxJcuP1Z6g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=JUeDpqG+; arc=none smtp.remote-ip=209.85.222.176
X-Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) (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 B800A606A330 for <netdev@vger.kernel.org>; Sat, 14 Nov 2026 18:45:54 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B800A606A330
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-qk1-f176.google.com with SMTP id af79cd13be357-93f1e5d7450so295484785a.2 for <netdev@vger.kernel.org>; Sat, 14 Nov 2026 10:45:54 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794681954; x=1795286754; darn=vger.kernel.org; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=mhjMuwlcmmA6xmnk85ku3gy5AP9/nFkfmboSqD/BPaw=; b=JUeDpqG++mf++7m4owPYQY97vDM1BdXIWpPWR9xMWUZo/jdQTQsMwApPcqakMIy9T4 bxBTvAMMz8cKj90Y6hp8UVgQ08iHpVMTDGMkUDTTZhVtpCSlyDuLv23ZnhonAuYDQgX8 oKPmJkcSN/LwL2vss6NxVKCVeiDgu6Jb9i1asyhayqdGhm3Z2qCoxUSeMlF0vthK2ck5 xAz0/N+HElRMTaHFWZq2OAQvjEq5u87HjKalMvOkcw0cuyITO7+1Q1tMelM41VswOSma eUXZCNlTSp9PzhYqOD42jYE7WEurOcBwmyk9tMnP0YI2OkSYeC7Oqkb+p2tb0NKGtJCS ZZBQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794681954; x=1795286754; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=mhjMuwlcmmA6xmnk85ku3gy5AP9/nFkfmboSqD/BPaw=; b=BzXg4au/1XEVhZJ8SolM3VpOaxhbqIg5htEsmDTpK7t5oPxyQ92QQlsMO9y9dftE0N YwmhKUTdXnrlyfV/8K92dCbEOhWsOdVycLbSqmRBFjgXdwDnDFAZX06aSKedL0DrAtsm nj9wjRIdL5WR1G4BxOkA9IcAFx1+iKs2Yj071XFaNYaov3ebK8tneo+t2JOOma/3Vaae sh8qu3EhqvI+6IGYS6zTBjT5I3VHhkgUOs3sFly9Ff4gy6GfDnAqjIeG9P5CcuOVKKMn 8TlPy4MGe8bPJSFj6BRgNdqTrcpmk2SDtjLqDLQRv+cbYQDhazL9V7lDBQ69UBDuIGKD CUWw==
X-Forwarded-Encrypted: i=1; AL+hErFjwLPAe60J3PrGK7F+dGpi2GtrkoOhrDBRJAQbCUVP1NWAENYM+AETjLHXX8LnlAquLeTgNvM=@vger.kernel.org
X-Gm-Message-State: APuU4Z9OzEjkgMD9vxAB02cqrQYmYmaHj6Q3sgP+4CsLcHxi+a7JPibw pT94ao36Vl9MqVs+2aKOfmzBre10UOjOkdJsQbE7yBJIWKA9fZZnmYJUslgtDA==
X-Gm-Gg: AYBFou0KXQ/tpQ0VNHJxJa6iEdb9KdxbG99LGqdDdvlFkwJSEi8TXbCCQl06m9Z1QYx iAVEVCYVrGb1RFu6iOUKa2L9kGezw8pP57AvZfW6j5KAl63LsGmFZ+8SnifzH0asFDE66ASnva0 w5M63FVjE4lKFGK52vm+bTs/krFoju7naC5SRFjFaJqzo+tdmPiLCutWy6Zd3jcrqifxRoJx8zs niHPBxvSBu4bOmW/Ofpk2rJ2iKjeDqwYUDKm1LC7026jcUU+llpGfEnZBm4jn3g78oG3DzuxVmQ LyV1gLzTN8g3Skv8OcUsLgUpyAutr6SbnpErhx30oJ5GtwWiJ7uEBUVENJZRwnjHV7PZzzcSzTC KhnD8xcM3N8l7TM70Uno4a7r9pVQcbP/oreJ3vLmQh6N5PPmcWwtO2mjNHNZVUYxUfznaK7vXqX LCgdqpANAhwtLyRsR3CO8IfpnkY6vrS5Zw0wDs2GtTqmtIwsdQ/GE13xFiNBlczCiT2QjIDOB+N Qg9tQaXk8EtUVjo4VcKFRPHQMo1Y9OTFDg+IGcNDjy07u3KsHSb7C6ZjoiDtTfX6/1ASX9BmDg9 nUW33TrgZ7gD1ggbd+nZ1+zn5cxI1cPAk7594KOB74mVKCrBgu4zewzls/Ms7JjNkEDPp9R22u9 4Eet3sGUwSbgT+CsPFqUaBn+CstcF0M7MUA==
X-Received: by 2002:a05:620a:25c6:b0:93f:1936:b229 with SMTP id af79cd13be357-9494bbfe4ecmr937435085a.77.1794681953514; Sat, 14 Nov 2026 10:45:53 -0800 (PST)
X-Received: from localhost ([153.61.198.243]) by smtp.gmail.com with ESMTPSA id af79cd13be357-9495a5ef5c4sm338706085a.6.2026.11.14.10.45.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 Nov 2026 10:45:52 -0800 (PST)
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-Cc: <bpf@vger.kernel.org>, <linux-kselftest@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>, <linux-doc@vger.kernel.org>, "Sashiko" <sashiko-bot@kernel.org>
X-Mailer: aerc 0.20.1-355-gf870624f6c37
X-In-Reply-To: <20261107-sockmap-update-limit-iter-v3-0-7c0bad1ad036@rbox.co>