Home
last modified time | relevance | path

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

/Linux-v6.1/kernel/bpf/
Dbtf.c6238 u32 i, nargs, ref_id, ref_obj_id = 0; in btf_check_func_arg_match() local
6342 if (is_kfunc && trusted_args && (obj_ptr && reg->type != PTR_TO_CTX) && !reg->ref_obj_id) { in btf_check_func_arg_match()
6351 if ((trusted_args && obj_ptr) || (rel && reg->ref_obj_id)) in btf_check_func_arg_match()
6357 if (is_kfunc && reg->ref_obj_id) { in btf_check_func_arg_match()
6359 if (ref_obj_id) { in btf_check_func_arg_match()
6361 regno, reg->ref_obj_id, ref_obj_id); in btf_check_func_arg_match()
6365 ref_obj_id = reg->ref_obj_id; in btf_check_func_arg_match()
6451 trusted_args || (rel && reg->ref_obj_id))) { in btf_check_func_arg_match()
6545 WARN_ON_ONCE((ref_obj_id && !ref_regno) || (!ref_obj_id && ref_regno)); in btf_check_func_arg_match()
6551 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
878 if (reg_type_may_be_refcounted_or_null(t) && reg->ref_obj_id) in print_verifier_state()
879 verbose_a("ref_obj_id=%d", reg->ref_obj_id); in print_verifier_state()
5965 } else if (!reg->ref_obj_id && !register_is_null(reg)) { in check_func_arg()
5977 if (reg->ref_obj_id) { in check_func_arg()
5978 if (meta->ref_obj_id) { in check_func_arg()
5980 regno, reg->ref_obj_id, in check_func_arg()
5981 meta->ref_obj_id); in check_func_arg()
5984 meta->ref_obj_id = reg->ref_obj_id; in check_func_arg()
[all …]
/Linux-v6.1/include/linux/
Dbpf_verifier.h146 u32 ref_obj_id; member
Dbpf.h2055 int ref_obj_id; member