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.c118 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()
142 unref_ptr = v->unref_ptr; in reject_bad_type_match()
143 if (!unref_ptr) in reject_bad_type_match()
145 unref_ptr = (void *)unref_ptr + 4; in reject_bad_type_match()
146 v->unref_ptr = unref_ptr; in reject_bad_type_match()
196 unref_ptr = v->unref_ptr; in inherit_untrusted_on_walk()
197 if (!unref_ptr) in inherit_untrusted_on_walk()
[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()