The warning is too late if it does happen. Remove it.
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -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) { |