Searched refs:bpf_rdonly_cast (Results 1 – 6 of 6) sorted by relevance
/linux/tools/testing/selftests/bpf/progs/ |
H A D | mem_rdonly_untrusted.c | 49 p = bpf_rdonly_cast(0, 0); in ldx_is_ok_bad_addr() 61 p = bpf_rdonly_cast(&v, 0); in ldx_is_ok_good_addr() 71 p = bpf_rdonly_cast(0, 0); in offset_not_tracked() 88 p = bpf_rdonly_cast(&v, 0); in stx_not_ok() 101 p = bpf_rdonly_cast(&v, 0); in atomic_not_ok() 114 p = bpf_rdonly_cast(&v, 0); in atomic_rmw_not_ok() 126 p = bpf_rdonly_cast(0, 0); in kfunc_param_not_ok() 138 p = bpf_rdonly_cast(0, 0); in helper_param_not_ok() 150 return bpf_rdonly_cast(0, bpf_core_type_id_kernel(struct sock)); in get_some_addr() 152 return bpf_rdonly_cast( in get_some_addr() [all...] |
H A D | verifier_bpf_fastcall.c | 854 /* bpf_rdonly_cast is replaced by a single assignment */ 863 "call %[bpf_rdonly_cast];" in kfunc_bpf_rdonly_cast() 867 : __imm(bpf_rdonly_cast), in kfunc_bpf_rdonly_cast() 880 bpf_rdonly_cast(0, 0); in kfunc_root()
|
H A D | verifier_global_ptr_args.c | 207 return subprog_untrusted_bad_type(bpf_rdonly_cast(0, 0)); in untrusted_bad_type()
|
/linux/tools/testing/selftests/bpf/ |
H A D | bpf_kfuncs.h | 66 extern void *bpf_rdonly_cast(const void *obj, __u32 btf_id) __ksym __weak;
|
/linux/kernel/bpf/ |
H A D | helpers.c | 2962 __bpf_kfunc void *bpf_rdonly_cast(const void *obj__ign, u32 btf_id__k) in bpf_rdonly_cast() function 3764 BTF_ID_FLAGS(func, bpf_rdonly_cast, KF_FASTCALL)
|
H A D | verifier.c | 12268 BTF_ID(func, bpf_rdonly_cast) in BTF_ID() 13684 verbose(env, "Unknown type ID %lld passed to kfunc bpf_rdonly_cast\n", in check_special_kfunc() 13698 "kfunc bpf_rdonly_cast type ID argument must be of a struct or void\n"); in check_special_kfunc()
|