Article View: linux.kernel.netdev
Article #5149[PATCH bpf-next 1/3] bpf: Drop unused entries from special_kfunc_list again
From: Sasha Levin
Date: Mon, 19 Oct 2026 21:10
Date: Mon, 19 Oct 2026 21:10
56 lines
10398 bytes
10398 bytes
Commit 6f033615ef8f ("bpf: Trim special_kfunc_list in verifier") dropped
bpf_arena_reserve_pages, bpf_stream_vprintk and bpf_stream_print_stack
from special_kfunc_list once nothing used them anymore, but commit
ab7fff217fd1 ("bpf: Check helper and kfunc arguments in one path")
brought all three back without adding any users.
Besides being dead, the bpf_arena_reserve_pages entry can't be resolved
on 32-bit and !MMU kernels, which don't build arena.o, and since commit
201a454df948 ("resolve_btfids: Fix the --fatal_warnings exit status")
the resulting resolve_btfids warning fails the build with
CONFIG_WERROR=y:
WARN: resolve_btfids: unresolved symbol bpf_arena_reserve_pages
Drop the three entries again.
Fixes: ab7fff217fd1 ("bpf: Check helper and kfunc arguments in one path")
Assisted-by: LLM
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
kernel/bpf/verifier.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
index d138688468236..22f095b9dca2d 100644
--- a/kernel/bpf/verifier.c
+++ b/kernel/bpf/verifier.c
@@ -13549,10 +13549,7 @@ enum special_kfunc_type {
KF_bpf_call_rcu_tasks_trace,
KF_bpf_arena_alloc_pages,
KF_bpf_arena_free_pages,
- KF_bpf_arena_reserve_pages,
KF_bpf_session_is_return,
- KF_bpf_stream_vprintk,
- KF_bpf_stream_print_stack,
};
BTF_ID_LIST(special_kfunc_list)
@@ -13644,14 +13641,11 @@ BTF_ID(func, bpf_call_rcu)
BTF_ID(func, bpf_call_rcu_tasks_trace)
BTF_ID(func, bpf_arena_alloc_pages)
BTF_ID(func, bpf_arena_free_pages)
-BTF_ID(func, bpf_arena_reserve_pages)
#ifdef CONFIG_BPF_EVENTS
BTF_ID(func, bpf_session_is_return)
#else
BTF_ID_UNUSED
#endif
-BTF_ID(func, bpf_stream_vprintk)
-BTF_ID(func, bpf_stream_print_stack)
static bool is_bpf_cast_to_kern_ctx_kfunc(const struct bpf_call_arg_meta *meta)
{
--
2.53.0
Technical Details
Message-ID:
<20261019211006.2574350-2-sashal@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-348847-linux-kernel-netdev=dewy.ruReferences:
<20261019211006.2574350-1-sashal@kernel.org>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-348847-linux-kernel-netdev=dewy.ru From: sashal@kernel.org (Sasha Levin) Newsgroups: linux.kernel.netdev Subject: [PATCH bpf-next 1/3] bpf: Drop unused entries from special_kfunc_list again Date: Mon, 19 Oct 2026 17:10:04 -0400 Organization: Usenet Network Message-ID: <20261019211006.2574350-2-sashal@kernel.org> References: <20261019211006.2574350-1-sashal@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3714824"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:kqGNSHBfKeT7Rd9/UAsfPbfZxbo= sha256:zdscu8XBwUHBNVkYPzONmsxKhJgD0le9ykmHXev0n2E= sha1:jHmTsQp9U9eKsuGeesALMVY4Lyc= sha256:B98EaK13UJQeiE+K8TfHwK723PTxEFMBbe5ity7AJeY= 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 878C2110B3A; Tue, 20 Oct 2026 00:15:29 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.729 X-Spam-Status: No, score=-3.729 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.329, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.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 (2048-bit key) header.d=kernel.org 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 FokhixUAfgHx; Tue, 20 Oct 2026 00:15:27 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-348847-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 08A71110B34; Tue, 20 Oct 2026 00:15:19 +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 C5DD7618F8; Mon, 19 Oct 2026 21:10:28 +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=1792444227; b=Yev/fdXKbuPr8owz3MNDIZCfY8nEjSA8ex9hXZqeNYJftO+sybjSnKeohYUic9cnVrvi RkhG+Q8YFaBrIneb7HVHEJOcSccU+T1CWoE5tI/fdKyFzOWQ/86ZlIRPPm4eLyEH3SVow t12HMefH9JEUpwd+1vdKxYkUNVpw+13vjuqJBtSd6mOd/QxJJJiZewndYiWRNDCaViK0Z HB7fPeq3j1x6i0SbA2WUXjZ6U1R49h0IB5IgWwtIdGFOo4FRP8HUKaU8zzTBdxuSxjhXG VpZiFaA3u8LOGccu8xdSfmAn/PRXGV7YwywoNBbyMFcbbxu5cJKev53SCM6ZdNcp82A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792444227; h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:X-Mailing-List: List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe: List-Owner:Precedence:MIME-Version:Content-Transfer-Encoding; bh=80NgnfNG04biR+Qo1AtgFMLB1GwXNU8ARboCn9v6q3s=; b=YFO7yVI6Mto2kusK/nrGf/xUB6speB8kITrx8Wr7ZfVwcQcZjV8yikLt7Ot8RNtJoEsm +qJ7mbLpzHZUbLokaus7H8RXElBCCfMjkK4rkhG8d/8No+tJTCvAZEgByq7DNo39zpAEo C/nOG6SMDu7hnsnVAxqhV2EJSdmwGj7O+Y64UiRuIFv85MSiD+NnhM0k242CDqc/GUORK D+o/xpIXX/gP4gIO4s94hi6wvaIbckVa4Q2+dfZlDOvfwfoat9hLPXQAdO+rYDmRmt3Ji r5G2TPrmqhnvZgcGCUGPnHotfs3PbXLyzocDJUwxreE3oi3pkLy8cSjqI2+pwIeDpqQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=n0pIR+Xu; 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 B96BA606A32E; Mon, 19 Oct 2026 21:10:27 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=n0pIR+Xu X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792444214; b=tX4cyqy0f/JSvti0gQTIiuL3ilrEMqaAEv1AayMR57og6BJf/m/ex6psJxjzrQlRV/BC JasCmFzU8Aa24zRiSQA2UBvpDnm8LpKKkwAUa5yyx/fAm6dBf6o0WLjdbzNv/4+vmOmpY SnOPUyJjOUR78RSfIstz/Gzowq2TMY+cS0eI3knckx4zRjTtIDirPTwlL580Mf78AcZ0v AGO0oPn0Wh21YbF3Niu+4yCH4Z3Ggk4aqUoPK6uQYrkQNG+5uKkZED8tjGrZSOmvcAbUQ Yjj4Jf210vXR4+FhIJCHS4NE9tlenFfBEoSG23sqxRWrVV4yspMQUfv5057taM3frTw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792444214; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=80NgnfNG04biR+Qo1AtgFMLB1GwXNU8ARboCn9v6q3s=; b=MWCEFVW7GJ18X9WUSWnlQB0OWNXnE49HbZNYb0sRga39AO925LIL4NIY5xCY4iRHj5+T GOOSC4iY41MNV2sXi3gHZVGtYbAslpBMC6vYb+C3qcOsPaL8pzZV7rWNeUtrNhr0q9/ul HJITRNG+GCWoiXrAZ7xXhS0H7n0ASzN9KXrvg3oBvkmZA+7520ModysRg+MdlfDqMSJem l3w9U8X1Zfy6jxradX5b9x/tHjTiYIk2DEnhoPrGgM7DzsKFb0HLkNuX6OY9QTLjhfAln rOulSLGi6rRUd4+F7uGLfF373LXX2FiSjricbozO7m07JtqpcIyzcg62zuLf2mFtQGw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=n0pIR+Xu; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E901C606A31C; Mon, 19 Oct 2026 21:10:13 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A83F1F000C5; Mon, 19 Oct 2026 21:10:11 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792444213; bh=80NgnfNG04biR+Qo1AtgFMLB1GwXNU8ARboCn9v6q3s=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=n0pIR+XuktZH/nh8Q05TRP6NOhEBlS6dKnYDnTogxvCHhCSvyCVxrFdF0wp7rPyHW Fnt61zvh1sL86JFBbBPwSYoqtdC/Qrk9hmhGDbaleGbVN25SXXretNBLXgRWD77CFF q+2ATQAR7c614fp5OwJvTVBk/k2lb65cjIFsWt8uUPzf7kCf9tMEepmpLmf1LG5DW9 EeeUYs0T10jmZuvl8A3W66edym7pX5SNiDVqDqnOn6LP2So2QolXQD9LGsst2Z3yK3 8lZj5XJSd9BqdWFmfMSRgjYD33wLQ5fSQAXflk0JDqzKvxTWz0eLkxLUbsL9z4TjtW W9s0y1PEfmdnw== X-Cc: Sasha Levin <sashal@kernel.org>, Alexei Starovoitov <ast@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, John Fastabend <john.fastabend@gmail.com>, Andrii Nakryiko <andrii@kernel.org>, Eduard Zingerman <eddyz87@gmail.com>, Kumar Kartikeya Dwivedi <memxor@gmail.com>, Martin KaFai Lau <martin.lau@linux.dev>, Song Liu <song@kernel.org>, Yonghong Song <yonghong.song@linux.dev>, Jiri Olsa <jolsa@kernel.org>, Emil Tsalapatis <emil@etsalapatis.com>, Ihor Solodrai <ihor.solodrai@linux.dev>, Eric Dumazet <edumazet@kernel.org>, Kuniyuki Iwashima <kuniyu@google.com>, Paolo Abeni <pabeni@redhat.com>, Willem de Bruijn <willemb@google.com>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Simon Horman <horms@kernel.org>, Amery Hung <ameryhung@gmail.com>, Puranjay Mohan <puranjay@kernel.org>, Stanislav Fomichev <sdf@fomichev.me>, Mahe Tardy <mahe.tardy@gmail.com>, Jiayuan Chen <jiayuan.chen@linux.dev>, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Petr Pavlu <petr.pavlu@suse.com>, Leon Hwang <leon.hwang@linux.dev> X-Mailer: git-send-email 2.53.0 X-In-Reply-To: <20261019211006.2574350-1-sashal@kernel.org> 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