Home
last modified time | relevance | path

Searched refs:bpf_kptr_xchg (Results 1 – 25 of 34) sorted by relevance

12

/linux/tools/testing/selftests/bpf/progs/
H A Dlocal_kptr_stash.c110 inner_local_kptr = bpf_kptr_xchg(&res->stashed_in_local_kptr, inner_local_kptr); in create_and_stash()
118 res = bpf_kptr_xchg(&mapval->node, res); in create_and_stash()
146 res = bpf_kptr_xchg(&mapval->plain, res); in stash_plain()
179 res = bpf_kptr_xchg(&mapval->local_root, res); in stash_local_with_root()
200 res = bpf_kptr_xchg(&mapval->node, NULL); in unstash_rb_node()
202 inner_local_kptr = bpf_kptr_xchg(&res->stashed_in_local_kptr, inner_local_kptr); in unstash_rb_node()
227 res = bpf_kptr_xchg(&mapval->val, NULL); in stash_test_ref_kfunc()
276 p = bpf_kptr_xchg(&s->stashed, p); in stash_refcounted_node()
H A Dcpumask_failure.c103 cpumask = bpf_kptr_xchg(&v->cpumask, NULL); in BPF_PROG()
129 prev = bpf_kptr_xchg(&global_mask, local); in BPF_PROG()
167 prev = bpf_kptr_xchg(&global_mask, local); in BPF_PROG()
195 prev = bpf_kptr_xchg(&global_mask, curr); in BPF_PROG()
202 prev = bpf_kptr_xchg(&global_mask, curr); in BPF_PROG()
220 prev = bpf_kptr_xchg(&global_mask_nested_arr.d_1.d_2[CPUMASK_KPTR_FIELDS_MAX].mask, local); in BPF_PROG()
H A Dmap_kptr_race.c59 old = bpf_kptr_xchg(&v->ref_ptr, p); in test_htab_leak()
68 old = bpf_kptr_xchg(&v->ref_ptr, p); in test_htab_leak()
82 old = bpf_kptr_xchg(&v->ref_ptr, p); in fill_percpu_kptr()
138 old = bpf_kptr_xchg(&v->ref_ptr, p); in BPF_PROG()
147 old = bpf_kptr_xchg(&v->ref_ptr, p); in BPF_PROG()
H A Dmap_kptr_fail.c71 bpf_kptr_xchg((void *)v + id, NULL); in non_const_var_off_kptr_xchg()
215 bpf_kptr_xchg(&v->unref_ptr, NULL); in reject_kptr_xchg_on_unref()
269 bpf_kptr_xchg(&v->ref_ptr, p); in reject_untrusted_xchg()
289 bpf_kptr_xchg(&v->ref_memb_ptr, ref_ptr); in reject_bad_type_xchg()
308 bpf_kptr_xchg(&v->ref_memb_ptr, &ref_ptr->memb); in reject_member_of_ref_xchg()
362 bpf_kptr_xchg(&v->ref_ptr, p); in kptr_xchg_ref_state()
381 p = bpf_kptr_xchg(&v->ref_ptr, p); in kptr_xchg_possibly_null()
H A Dpercpu_alloc_fail.c68 p = bpf_kptr_xchg(&e->pc, p); in BPF_PROG()
93 p = bpf_kptr_xchg(&e->pc, p2); in BPF_PROG()
117 p1 = bpf_kptr_xchg(&e->pc, p); in BPF_PROG()
170 old = bpf_kptr_xchg(&e->task, p); in reject_kernel_ptr_into_percpu_kptr()
193 old = bpf_kptr_xchg(&e->pc, p); in BPF_PROG()
H A Dpercpu_alloc_array.c40 p = bpf_kptr_xchg(&e->pc, p); in BPF_PROG()
121 p = bpf_kptr_xchg(&e->pc, NULL); in BPF_PROG()
151 p1 = bpf_kptr_xchg(&e->pc, p); in BPF_PROG()
170 p1 = bpf_kptr_xchg(&e->pc, NULL); in BPF_PROG()
H A Dmap_kptr.c171 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_kptr_ref()
191 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_kptr_ref()
335 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref_pre()
343 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_map_kptr_ref_pre()
355 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref_pre()
380 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_map_kptr_ref_post()
388 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref_post()
533 old = bpf_kptr_xchg(&v->ref_ptr, p); in stash_ref_ptr()
536 old = bpf_kptr_xchg(&v->ref_ptr, NULL); in stash_ref_ptr()
H A Dtest_bpf_ma.c74 old = bpf_kptr_xchg(&value->data, new); in batch_alloc()
96 old = bpf_kptr_xchg(&value->data, NULL); in batch_free()
124 old = bpf_kptr_xchg(&value->data, new); in batch_percpu_alloc()
147 old = bpf_kptr_xchg(&value->data, NULL); in batch_percpu_free()
H A Drhash.c290 old = bpf_kptr_xchg(&elem->task, task); in test_rhash_kptr_update()
306 old = bpf_kptr_xchg(&elem->task, NULL); in test_rhash_kptr_update()
342 old = bpf_kptr_xchg(&elem->task, task); in test_rhash_kptr_delete()
353 old = bpf_kptr_xchg(&elem->task, NULL); in test_rhash_kptr_delete()
H A Dpreempted_bpf_ma_op.c38 old = bpf_kptr_xchg(&value->data, NULL); in del_array()
61 old = bpf_kptr_xchg(&value->data, new); in add_array()
H A Dtask_kfunc_success.c167 kptr = bpf_kptr_xchg(&v->task, NULL); in test_task_xchg_release()
180 kptr = bpf_kptr_xchg(&local->task, kptr); in test_task_xchg_release()
188 kptr = bpf_kptr_xchg(&local->task, NULL); in test_task_xchg_release()
205 acquired = bpf_kptr_xchg(&local->task, acquired); in test_task_xchg_release()
H A Drefcounted_kptr.c139 n = bpf_kptr_xchg(&mapval->node, n); in __stash_map_insert_tree()
232 n = bpf_kptr_xchg(&mapval->node, n); in __read_from_unstash()
904 n = bpf_kptr_xchg(&mapval->node, n); in __stash_map_empty_xchg()
944 n = bpf_kptr_xchg(&mapval->node, NULL); in rbtree_wrong_owner_remove_fail_b()
968 m = bpf_kptr_xchg(&mapval->node, NULL); in rbtree_wrong_owner_remove_fail_a2()
1073 node_old = bpf_kptr_xchg(node, node_new); in __insert_in_list()
1118 n = bpf_kptr_xchg(&v->node, NULL); in clear_percpu_hash_kptr()
H A Dcpumask_success.c494 cpumask = bpf_kptr_xchg(&v->cpumask, NULL); in BPF_PROG()
515 prev = bpf_kptr_xchg(&global_mask, local); in BPF_PROG()
552 prev = bpf_kptr_xchg(&global_mask_array_one[0], local); in BPF_PROG()
588 local = bpf_kptr_xchg(mask0, local); in _global_mask_array_rcu()
615 local = bpf_kptr_xchg(mask1, local); in _global_mask_array_rcu()
H A Dcgrp_kfunc_failure.c147 kptr = bpf_kptr_xchg(&v->cgrp, NULL); in BPF_PROG()
231 old = bpf_kptr_xchg(&v->cgrp, acquired); in BPF_PROG()
H A Dtask_kfunc_failure.c143 kptr = bpf_kptr_xchg(&v->task, NULL); in BPF_PROG()
219 old = bpf_kptr_xchg(&v->task, acquired); in BPF_PROG()
267 old = bpf_kptr_xchg(&local->task, acquired); in BPF_PROG()
H A Dkptr_xchg_inline.c24 "call %[bpf_kptr_xchg];" in kptr_xchg_inline()
34 __imm(bpf_kptr_xchg), in kptr_xchg_inline()
H A Djit_probe_mem.c21 p = bpf_kptr_xchg(&v, p); in test_jit_probe_mem()
H A Dksock_lsm_verifier.c25 ks = bpf_kptr_xchg(&v->ctx, NULL); in BPF_PROG()
H A Dlocal_kptr_stash_fail.c59 res = bpf_kptr_xchg(&mapval->node, res); in stash_rb_nodes()
H A Dcrypto_common.h57 old = bpf_kptr_xchg(&v->ctx, ctx); in crypto_ctx_insert()
H A Dksock_common.h69 old = bpf_kptr_xchg(&v->ctx, ctx); in ksock_ctx_insert()
H A Dcgrp_kfunc_common.h70 old = bpf_kptr_xchg(&v->cgrp, acquired); in cgrps_kfunc_map_insert()
H A Dcb_refs.c61 p = bpf_kptr_xchg(&v->ptr, p); in leak_prog()
H A Dpercpu_alloc_cgrp_local_storage.c39 p = bpf_kptr_xchg(&e->pc, p); in BPF_PROG()
H A Dtask_kfunc_common.h82 old = bpf_kptr_xchg(&v->task, acquired); in tasks_kfunc_map_insert()

12