Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dmap_kptr_fail.c11 struct prog_test_ref_kfunc __kptr_untrusted *unref_ptr; member
34 *(u32 *)&v->unref_ptr = 0; in size_not_bpf_dw()
110 struct prog_test_ref_kfunc *unref_ptr; in reject_var_off_store() local
118 unref_ptr = v->unref_ptr; in reject_var_off_store()
119 if (!unref_ptr) in reject_var_off_store()
124 unref_ptr += id; in reject_var_off_store()
125 v->unref_ptr = unref_ptr; in reject_var_off_store()
134 struct prog_test_ref_kfunc *unref_ptr; in reject_bad_type_match() local
142 unref_ptr = v->unref_ptr; in reject_bad_type_match()
143 if (!unref_ptr) in reject_bad_type_match()
[all …]
H A Dmap_kptr.c8 struct prog_test_ref_kfunc __kptr_untrusted *unref_ptr; member
124 p = v->unref_ptr; in test_kptr_unref()
126 WRITE_ONCE(v->unref_ptr, p); in test_kptr_unref()
132 WRITE_ONCE(v->unref_ptr, p); in test_kptr_unref()
134 WRITE_ONCE(v->unref_ptr, NULL); in test_kptr_unref()
143 WRITE_ONCE(v->unref_ptr, p); in test_kptr_ref()
168 WRITE_ONCE(v->unref_ptr, p); in test_kptr_ref()