Lines Matching refs:p

43 	int *p = NULL;  in kfunc_call_test_get_mem_fail_rdonly()  local
48 p = bpf_kfunc_call_test_get_rdonly_mem(pt, 2 * sizeof(int)); in kfunc_call_test_get_mem_fail_rdonly()
49 if (p) in kfunc_call_test_get_mem_fail_rdonly()
50 p[0] = 42; /* this is a read-only buffer, so -EACCES */ in kfunc_call_test_get_mem_fail_rdonly()
64 int *p = NULL; in kfunc_call_test_get_mem_fail_use_after_free() local
69 p = bpf_kfunc_call_test_get_rdwr_mem(pt, 2 * sizeof(int)); in kfunc_call_test_get_mem_fail_use_after_free()
70 if (p) { in kfunc_call_test_get_mem_fail_use_after_free()
71 p[0] = 42; in kfunc_call_test_get_mem_fail_use_after_free()
72 ret = p[1]; /* 108 */ in kfunc_call_test_get_mem_fail_use_after_free()
79 if (p) in kfunc_call_test_get_mem_fail_use_after_free()
80 ret = p[0]; /* p is not valid anymore */ in kfunc_call_test_get_mem_fail_use_after_free()
90 int *p = NULL; in kfunc_call_test_get_mem_fail_oob() local
95 p = bpf_kfunc_call_test_get_rdonly_mem(pt, 2 * sizeof(int)); in kfunc_call_test_get_mem_fail_oob()
96 if (p) in kfunc_call_test_get_mem_fail_oob()
97 ret = p[2 * sizeof(int)]; /* oob access, so -EACCES */ in kfunc_call_test_get_mem_fail_oob()
113 int *p = NULL; in kfunc_call_test_get_mem_fail_not_const() local
118 p = bpf_kfunc_call_test_get_rdonly_mem(pt, not_const_size); /* non const size, -EINVAL */ in kfunc_call_test_get_mem_fail_not_const()
119 if (p) in kfunc_call_test_get_mem_fail_not_const()
120 ret = p[0]; in kfunc_call_test_get_mem_fail_not_const()
134 int *p = NULL; in kfunc_call_test_mem_acquire_fail() local
140 p = bpf_kfunc_call_test_acq_rdonly_mem(pt, 2 * sizeof(int)); in kfunc_call_test_mem_acquire_fail()
141 if (p) in kfunc_call_test_mem_acquire_fail()
142 ret = p[0]; in kfunc_call_test_mem_acquire_fail()
146 bpf_kfunc_call_int_mem_release(p); in kfunc_call_test_mem_acquire_fail()