From: Yonghong Song Date: Thu, 23 Apr 2026 03:34:41 +0000 (-0700) Subject: bpf: Remove WARN_ON_ONCE in check_kfunc_mem_size_reg() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a16c5b2b22ff22c1a2e3ff92cc991990efceb38;p=thirdparty%2Flinux.git bpf: Remove WARN_ON_ONCE in check_kfunc_mem_size_reg() The warning is too late if it does happen. Remove it. Acked-by: Kumar Kartikeya Dwivedi Signed-off-by: Yonghong Song Link: https://lore.kernel.org/r/20260423033441.2538149-1-yonghong.song@linux.dev Signed-off-by: Alexei Starovoitov --- diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 26b6cdfd86133..d123449f5552e 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -7134,8 +7134,6 @@ static int check_kfunc_mem_size_reg(struct bpf_verifier_env *env, struct bpf_reg struct bpf_call_arg_meta meta; int err; - WARN_ON_ONCE(regno < BPF_REG_2 || regno > BPF_REG_5); - memset(&meta, 0, sizeof(meta)); if (may_be_null) {