From nobody Sun Feb 8 17:43:18 2026 Received: from out-176.mta1.migadu.com (out-176.mta1.migadu.com [95.215.58.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CBBF53A7F61 for ; Fri, 16 Jan 2026 20:18:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768594706; cv=none; b=Ngxmx3EVN0nAjC0fHy5JvLHvOgBFTAgqkMdmAR6q9PWdRJB5fmJO0DRglolWZE+Y/olKom7DV7Y8TiOZkE+8mtWRzRoeolYxOWk9kx6Pgic3PhQLYgLbUETZ7/bZZ21aWQQhbmkoNLNZerQAP7hS/inX6ALOvC5Zh89TBGh4bCY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768594706; c=relaxed/simple; bh=qenoQogq89G2cTNXDnLixTWZqS10Czig+sw2NHrxL8Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fOVvXYDJjILcsZZjlPLIR0ulXH3cM0BXYy5//Z7+mXs4ch+iQLxs3hw3DP0pDBAuCEQ/mbwly332miOQAdgTgB+hqFyrdzR3npstJRCu7/2OE5GNy8hP1xLkRVZ79sumwbZkARtcGk5j2rHK3anSOGOt0HM9KL//GYPMQ+44th4= 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=TFDtfVTU; arc=none smtp.client-ip=95.215.58.176 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="TFDtfVTU" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1768594701; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gxpuRAc9cdYDyka/2Lt8vnO2Bn4+YQY3rKrMJRNLA8U=; b=TFDtfVTUf5WiGQIBQvoVHEUqYI1fVIeW/nxX20XwH5TtGNFnn1JnFD4tUT1ay8vdSAheFo 76uzBI7fBw8hSafL7V9LRx59mX+fBsqwsrU33FTHHNL4KshhbJhrE9zU3+Qk3mEcifjt5T kEWvUczDP2xZ29/6/rcLitzX017Ss3k= From: Ihor Solodrai To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman Cc: Mykyta Yatsenko , Tejun Heo , Alan Maguire , Benjamin Tissoires , Jiri Kosina , Amery Hung , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, sched-ext@lists.linux.dev Subject: [PATCH bpf-next v2 12/13] bpf: Remove __prog kfunc arg annotation Date: Fri, 16 Jan 2026 12:16:59 -0800 Message-ID: <20260116201700.864797-13-ihor.solodrai@linux.dev> In-Reply-To: <20260116201700.864797-1-ihor.solodrai@linux.dev> References: <20260116201700.864797-1-ihor.solodrai@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Now that all the __prog suffix users in the kernel tree migrated to KF_IMPLICIT_ARGS, remove it from the verifier. See prior discussion for context [1]. [1] https://lore.kernel.org/bpf/CAEf4BzbgPfRm9BX=3DTsZm-TsHFAHcwhPY4vTt=3D9= OT-uhWqf8tqw@mail.gmail.com/ Signed-off-by: Ihor Solodrai Acked-by: Eduard Zingerman --- kernel/bpf/verifier.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index c2abf30e9460..5f2849ea845c 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -12211,13 +12211,6 @@ static bool is_kfunc_arg_irq_flag(const struct btf= *btf, const struct btf_param return btf_param_match_suffix(btf, arg, "__irq_flag"); } =20 -static bool is_kfunc_arg_prog_aux(const struct btf *btf, const struct btf_= param *arg); - -static bool is_kfunc_arg_prog(const struct btf *btf, const struct btf_para= m *arg) -{ - return btf_param_match_suffix(btf, arg, "__prog") || is_kfunc_arg_prog_au= x(btf, arg); -} - static bool is_kfunc_arg_scalar_with_name(const struct btf *btf, const struct btf_param *arg, const char *name) @@ -13280,8 +13273,8 @@ static int check_kfunc_args(struct bpf_verifier_env= *env, struct bpf_kfunc_call_ if (is_kfunc_arg_ignore(btf, &args[i])) continue; =20 - if (is_kfunc_arg_prog(btf, &args[i])) { - /* Used to reject repeated use of __prog. */ + if (is_kfunc_arg_prog_aux(btf, &args[i])) { + /* Reject repeated use bpf_prog_aux */ if (meta->arg_prog) { verifier_bug(env, "Only 1 prog->aux argument supported per-kfunc"); return -EFAULT; --=20 2.52.0