From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 66-220-144-179.mail-mxout.facebook.com (66-220-144-179.mail-mxout.facebook.com [66.220.144.179]) (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 E34F91DFF0 for ; Wed, 22 Apr 2026 05:42:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.220.144.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776836526; cv=none; b=ViUk+JBZEGc3MqswUYkMJgsvj+EkfWtmEgD7vwTxHE4/aGup7U1X29Y6AgtkUve8tgYRZGfXsMg/KRZlv8MlnBFqJ4foJmWIODorUvpM6GvEBxY3L3We0xvbVMw2H17wiIWKqHJ+XYEiNuQz9cIplkHaQ6lCETZF6bUJ+bInn/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776836526; c=relaxed/simple; bh=4fcnynu1zwo5/pLncaSDN8h1scVfchc9f4Y82s/zyuw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EytvTNz6X7MtqEY5aRVru++8TMAobMFZJzEDWLlnIfSMEFcuoJ+TlciwIEhg/blb0/gqwxeYWYPY9xn+q/vtZUkWDw++Hi/LRTSmWibRubgYGG4mGzj/YNc3jQCzNqh5RCd6bLaZ692PfCVYttEx+Q++CVtMT6ViHjxxXnMcg0M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.dev; spf=fail smtp.mailfrom=linux.dev; arc=none smtp.client-ip=66.220.144.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=linux.dev Received: by devvm16039.vll0.facebook.com (Postfix, from userid 128203) id 3BDD144D0839D; Tue, 21 Apr 2026 22:41:54 -0700 (PDT) From: Yonghong Song To: bpf@vger.kernel.org Cc: Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , "Jose E . Marchesi" , kernel-team@fb.com, Martin KaFai Lau , Puranjay Mohan , Kumar Kartikeya Dwivedi Subject: [PATCH bpf-next v2 1/9] bpf: Remove unused parameter from check_map_kptr_access() Date: Tue, 21 Apr 2026 22:41:54 -0700 Message-ID: <20260422054154.3124511-1-yonghong.song@linux.dev> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260422054149.3124342-1-yonghong.song@linux.dev> References: <20260422054149.3124342-1-yonghong.song@linux.dev> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable The parameter 'regno' in check_map_kptr_access() is unused. Remove it. Acked-by: Puranjay Mohan Acked-by: Kumar Kartikeya Dwivedi Signed-off-by: Yonghong Song --- kernel/bpf/verifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 185210b73385..a768359b22cb 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -4710,7 +4710,7 @@ static int mark_uptr_ld_reg(struct bpf_verifier_env= *env, u32 regno, return 0; } =20 -static int check_map_kptr_access(struct bpf_verifier_env *env, u32 regno= , +static int check_map_kptr_access(struct bpf_verifier_env *env, int value_regno, int insn_idx, struct btf_field *kptr_field) { @@ -6357,7 +6357,7 @@ static int check_mem_access(struct bpf_verifier_env= *env, int insn_idx, u32 regn kptr_field =3D btf_record_find(reg->map_ptr->record, off + reg->var_off.value, BPF_KPTR | BPF_UPTR); if (kptr_field) { - err =3D check_map_kptr_access(env, regno, value_regno, insn_idx, kptr= _field); + err =3D check_map_kptr_access(env, value_regno, insn_idx, kptr_field)= ; } else if (t =3D=3D BPF_READ && value_regno >=3D 0) { struct bpf_map *map =3D reg->map_ptr; =20 --=20 2.52.0