Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/progs/
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 …]
A Dmap_kptr.c8 struct prog_test_ref_kfunc __kptr_untrusted *unref_ptr; member
128 p = v->unref_ptr; in test_kptr_unref()
130 WRITE_ONCE(v->unref_ptr, p); in test_kptr_unref()
136 WRITE_ONCE(v->unref_ptr, p); in test_kptr_unref()
138 WRITE_ONCE(v->unref_ptr, NULL); in test_kptr_unref()
147 WRITE_ONCE(v->unref_ptr, p); in test_kptr_ref()
172 WRITE_ONCE(v->unref_ptr, p); in test_kptr_ref()

Completed in 7 milliseconds