Home
last modified time | relevance | path

Searched refs:ref_obj_id (Results 1 – 2 of 2) sorted by relevance

/kernel/bpf/
Dbtf.c6259 u32 i, nargs, ref_id, ref_obj_id = 0; in btf_check_func_arg_match() local
6363 if (is_kfunc && trusted_args && (obj_ptr && reg->type != PTR_TO_CTX) && !reg->ref_obj_id) { in btf_check_func_arg_match()
6372 if ((trusted_args && obj_ptr) || (rel && reg->ref_obj_id)) in btf_check_func_arg_match()
6378 if (is_kfunc && reg->ref_obj_id) { in btf_check_func_arg_match()
6380 if (ref_obj_id) { in btf_check_func_arg_match()
6382 regno, reg->ref_obj_id, ref_obj_id); in btf_check_func_arg_match()
6386 ref_obj_id = reg->ref_obj_id; in btf_check_func_arg_match()
6472 trusted_args || (rel && reg->ref_obj_id))) { in btf_check_func_arg_match()
6566 WARN_ON_ONCE((ref_obj_id && !ref_regno) || (!ref_obj_id && ref_regno)); in btf_check_func_arg_match()
6572 if (rel && !ref_obj_id) { in btf_check_func_arg_match()
[all …]
Dverifier.c192 static int release_reference(struct bpf_verifier_env *env, int ref_obj_id);
257 int ref_obj_id; member
887 if (reg_type_may_be_refcounted_or_null(t) && reg->ref_obj_id) in print_verifier_state()
888 verbose_a("ref_obj_id=%d", reg->ref_obj_id); in print_verifier_state()
6219 } else if (!reg->ref_obj_id && !register_is_null(reg)) { in check_func_arg()
6231 if (reg->ref_obj_id) { in check_func_arg()
6232 if (meta->ref_obj_id) { in check_func_arg()
6234 regno, reg->ref_obj_id, in check_func_arg()
6235 meta->ref_obj_id); in check_func_arg()
6238 meta->ref_obj_id = reg->ref_obj_id; in check_func_arg()
[all …]