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

Showing the changes to kernel (1 of 1 file). Show all

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
7134 struct bpf_call_arg_meta meta;7134 struct bpf_call_arg_meta meta;
7135 int err;7135 int err;
7136 7136
7137 WARN_ON_ONCE(regno < BPF_REG_2 || regno > BPF_REG_5);
7138
7139 memset(&meta, 0, sizeof(meta));7137 memset(&meta, 0, sizeof(meta));
7140 7138
7141 if (may_be_null) {7139 if (may_be_null) {