History

bpf: Remove WARN_ON_ONCE in check_kfunc_mem_size_reg()

The warning is too late if it does happen. Remove it.

Yonghong Song committed 6 months ago

Commit 8a16c5b1 parent 54c27ea1 file · +0 −2Browse files

Unified · Split

kernel/bpf/verifier.c+0−2
@@ -7134,8 +7134,6 @@ static int check_kfunc_mem_size_reg(struct bpf_verifier_env *env, struct bpf_reg · 7133 unmodified lines
71347134 struct bpf_call_arg_meta meta;
71357135 int err;
71367136
7137− WARN_ON_ONCE(regno < BPF_REG_2 || regno > BPF_REG_5);
7138−
71397137 memset(&meta, 0, sizeof(meta));
71407138
71417139 if (may_be_null) {