Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
[linux-block.git] / kernel / bpf / btf.c
index 57f5fd5af2f9f8bbc49dd5f5aaaf4e26d8594ec7..a1c44c17ea9c0113a5567878707fd0e87f726a96 100644 (file)
@@ -5752,7 +5752,7 @@ static int btf_check_func_arg_match(struct bpf_verifier_env *env,
                                        i, btf_type_str(t));
                                return -EINVAL;
                        }
-                       if (check_ctx_reg(env, reg, regno))
+                       if (check_ptr_off_reg(env, reg, regno))
                                return -EINVAL;
                } else if (is_kfunc && (reg->type == PTR_TO_BTF_ID || reg2btf_ids[reg->type])) {
                        const struct btf_type *reg_ref_t;