From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-234.mta1.migadu.com [95.215.58.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 59128390603 for ; Wed, 12 Aug 2026 16:48:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.234 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786553337; cv=none; b=Ut6nDrMzcLeV6GV1p5GiwYJuOe+dqavrbP+ifrtGHu2nHP9eYipWFUfBi7EleKH8mgCdAd3jZINQQIJqv24wUn+E/9xsRNS+R3VIKSATWgDo4T647RFq/3idTPQS9AfNSpTbKMXQNZhRNA889mRZbL7uWKHOMDvXVJE+K2EyX6M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786553337; c=relaxed/simple; bh=9Zz695qFcJN6tT5kWEDZG+5dsGqvgRv6vroaGOeo9KI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=q6m0G77ZjqPeDHgA0l477vgef0Mit3RTK0DdydeETARprXLG8l66HrOX5hy6seR8eFSeuBq4+fjaKUYg710ARFENZwK6jXBfvkRtFQDOpy8Op3vdXeePTRcjha4X61zARyOGXA0K+t0PJ5ypLs/h9wCYDysko94eY35jeRhjuzI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=xw03RYoh; arc=none smtp.client-ip=95.215.58.234 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="xw03RYoh" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=9Zz695qFcJN6tT5kWEDZG+5dsGqvgRv6vroaGOeo9KI=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1786553331; v=1; x=1787158131; b=xw03RYohMMD1hSX/b4T958tX4iP8fjfsTUrIYEr1+hx6idCGKt7PgfwGPWAFDjDfnTjVRrDK ywFtNJkdWAuCxUJ7qoqm+AtgZAbifhIXPIcr/T2IuQgdMqskdeC3jRmYpTFT/1AAPWZehR7Kow4 mHdPPYrktN7vqOpQLnJ2Qv9I= X-Envelope-To: linux-kernel@vger.kernel.org Received: from .linux.dev (117.20.149.103) by smtp.migadu.com with ESMTPS id e0a4c1ed99434c8d; Wed, 12 Aug 2026 16:48:51 +0000 X-Migadu-Flow: FLOW_OUT From: Leon Hwang To: bpf@vger.kernel.org Cc: Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Ihor Solodrai , linux-kernel@vger.kernel.org, Leon Hwang Subject: [PATCH bpf-next] bpf: Trim special_kfunc_list in verifier Date: Thu, 13 Aug 2026 00:48:43 +0800 Message-ID: <20260812164843.55601-1-leon.hwang@linux.dev> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The commit 7619a0ee9340 ("bpf: Mark existing lock-safe kfuncs with KF_SPINLOCK_SAFE") dropped some helpers in verifier, which also eliminated the use of the following kfuncs from the special_kfunc_list: * bpf_arena_reserve_pages * bpf_stream_vprintk * bpf_stream_print_stack So, drop them from the special_kfunc_list. Signed-off-by: Leon Hwang --- kernel/bpf/verifier.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index add3affc5703..8797ae08f232 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -11092,10 +11092,7 @@ enum special_kfunc_type { KF_bpf_task_work_schedule_resume, 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) @@ -11185,14 +11182,11 @@ BTF_ID(func, bpf_task_work_schedule_signal) BTF_ID(func, bpf_task_work_schedule_resume) 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_obj_new_kfunc(u32 func_id) { -- 2.55.0