From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-189.mta0.migadu.com (out-189.mta0.migadu.com [91.218.175.189]) (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 9ACFC13DDAE for ; Mon, 23 Mar 2026 07:40:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774251606; cv=none; b=U120UpJEGgTPZd2zVygiDYrf6gsoXal26nAKVCngfeSQaSRwk0UxgSrGmt59bg7ksLivjJDcCd5jbeqeYKERrBFLEy5pWLo8nx9RaV5wSGsoeoS5d2dumfuycHDlS8C9k9iC9HuVXnGo3D//mnn4qZVcfybUpdNnqJUs1NfZRBs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774251606; c=relaxed/simple; bh=4BUCCzRPYNZ5TKyhOA2HJJ1H0SRvq8yGvE3Wjxz0D6U=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=r2j/tGztxBE2YC42JyE2m1c45WhYzml3fLvGt159BEL/CL9oabEddYsx2f6xoCsRjVBzVjj5UPFbsRT03d+0LJcxmkAMNZIzw1ChDz3yxslsAudBswYgZioN6U+ZJMApOedqqR6bnM2KUda8ZT3u/dEOPblrhimoT3vJtMnopIY= 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=eJeyOIRx; arc=none smtp.client-ip=91.218.175.189 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="eJeyOIRx" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1774251602; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TvZhmSWeHrMRbaAY1B61sJ5MhxCkaIVEfxRIAp8jjEM=; b=eJeyOIRx/VxAPZPhEKOkTlgOgPVSdO1rYoRv75UdyNgQm0C6qU5PSP8Ug8YYPP32P5mJ99 VxWQnHDV7MaaxzHCeuvzzxluZIt6kCJ6DudVlIU2la8BGCwijtEAT48UZg8IWlrFvJYK9W aV6/d+hJ0x8rnilqUTcMjys/A1mMYi0= Date: Mon, 23 Mar 2026 15:39:45 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] bpf: update outdated comment for refactored btf_check_kfunc_arg_match() To: Kexin Sun , ast@kernel.org, daniel@iogearbox.net, john.fastabend@gmail.com, andrii@kernel.org, martin.lau@linux.dev, eddyz87@gmail.com, song@kernel.org, yonghong.song@linux.dev, kpsingh@kernel.org, sdf@fomichev.me, haoluo@google.com, jolsa@kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Cc: julia.lawall@inria.fr, xutong.ma@inria.fr, yunbolyu@smu.edu.sg, ratnadiraw@smu.edu.sg References: <20260321105658.6006-1-kexinsun@smail.nju.edu.cn> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Jiayuan Chen In-Reply-To: <20260321105658.6006-1-kexinsun@smail.nju.edu.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 3/21/26 6:56 PM, Kexin Sun wrote: > The function btf_check_kfunc_arg_match() was refactored into > check_kfunc_args() by commit 00b85860feb8 ("bpf: Rewrite kfunc > argument handling"). Update the comment accordingly. > > Assisted-by: unnamed:deepseek-v3.2 coccinelle > Signed-off-by: Kexin Sun Reviewed-by: Jiayuan Chen > --- > kernel/bpf/verifier.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c > index bb12ba020649..c0ecf02a1b78 100644 > --- a/kernel/bpf/verifier.c > +++ b/kernel/bpf/verifier.c > @@ -14410,7 +14410,7 @@ static int check_kfunc_call(struct bpf_verifier_env *env, struct bpf_insn *insn, > if (btf_type_is_ptr(t)) > mark_btf_func_reg_size(env, regno, sizeof(void *)); > else > - /* scalar. ensured by btf_check_kfunc_arg_match() */ > + /* scalar. ensured by check_kfunc_args() */ > mark_btf_func_reg_size(env, regno, t->size); > } >