| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | local_kptr_stash.c | 110 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 D | cpumask_failure.c | 103 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 D | map_kptr_race.c | 59 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 D | map_kptr_fail.c | 71 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 D | percpu_alloc_fail.c | 68 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 D | percpu_alloc_array.c | 40 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 D | map_kptr.c | 171 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 D | test_bpf_ma.c | 74 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 D | rhash.c | 290 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 D | preempted_bpf_ma_op.c | 38 old = bpf_kptr_xchg(&value->data, NULL); in del_array() 61 old = bpf_kptr_xchg(&value->data, new); in add_array()
|
| H A D | task_kfunc_success.c | 167 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 D | refcounted_kptr.c | 139 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 D | cpumask_success.c | 494 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 D | cgrp_kfunc_failure.c | 147 kptr = bpf_kptr_xchg(&v->cgrp, NULL); in BPF_PROG() 231 old = bpf_kptr_xchg(&v->cgrp, acquired); in BPF_PROG()
|
| H A D | task_kfunc_failure.c | 143 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 D | kptr_xchg_inline.c | 24 "call %[bpf_kptr_xchg];" in kptr_xchg_inline() 34 __imm(bpf_kptr_xchg), in kptr_xchg_inline()
|
| H A D | jit_probe_mem.c | 21 p = bpf_kptr_xchg(&v, p); in test_jit_probe_mem()
|
| H A D | ksock_lsm_verifier.c | 25 ks = bpf_kptr_xchg(&v->ctx, NULL); in BPF_PROG()
|
| H A D | local_kptr_stash_fail.c | 59 res = bpf_kptr_xchg(&mapval->node, res); in stash_rb_nodes()
|
| H A D | crypto_common.h | 57 old = bpf_kptr_xchg(&v->ctx, ctx); in crypto_ctx_insert()
|
| H A D | ksock_common.h | 69 old = bpf_kptr_xchg(&v->ctx, ctx); in ksock_ctx_insert()
|
| H A D | cgrp_kfunc_common.h | 70 old = bpf_kptr_xchg(&v->cgrp, acquired); in cgrps_kfunc_map_insert()
|
| H A D | cb_refs.c | 61 p = bpf_kptr_xchg(&v->ptr, p); in leak_prog()
|
| H A D | percpu_alloc_cgrp_local_storage.c | 39 p = bpf_kptr_xchg(&e->pc, p); in BPF_PROG()
|
| H A D | task_kfunc_common.h | 82 old = bpf_kptr_xchg(&v->task, acquired); in tasks_kfunc_map_insert()
|