Home
last modified time | relevance | path

Searched refs:bpf_dynptr_from_skb (Results 1 – 13 of 13) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Ddynptr_success.c177 if (bpf_dynptr_from_skb(skb, 0, &ptr)) { in test_skb_readonly()
198 if (bpf_dynptr_from_skb(skb, 0, &ptr)) { in test_dynptr_skb_data()
422 if (bpf_dynptr_from_skb(skb, 123, &ptr1) != -EINVAL) { in test_dynptr_is_rdonly()
434 if (bpf_dynptr_from_skb(skb, 0, &ptr2)) { in test_dynptr_is_rdonly()
470 if (bpf_dynptr_from_skb(skb, 0, &ptr1)) { in test_dynptr_clone()
517 if (bpf_dynptr_from_skb(skb, 0, &ptr)) { in test_dynptr_skb_no_buff()
534 if (bpf_dynptr_from_skb(skb, 0, &ptr)) { in test_dynptr_skb_strcmp()
556 if (bpf_dynptr_from_skb(skb, 0, &ptr)) { in BPF_PROG()
H A Dtest_kfunc_param_nullable.c14 bpf_dynptr_from_skb(skb, 0, &data); in kfunc_dynptr_nullable_test1()
25 bpf_dynptr_from_skb(skb, 0, &data); in kfunc_dynptr_nullable_test2()
37 bpf_dynptr_from_skb(skb, 0, &data); in kfunc_dynptr_nullable_test3()
H A Dip_check_defrag.c15 extern int bpf_dynptr_from_skb(struct __sk_buff *skb, __u64 flags,
51 if (bpf_dynptr_from_skb(skb, 0, &ptr)) in handle_v4()
73 if (bpf_dynptr_from_skb(skb, 0, &ptr)) in handle_v6()
H A Ddynptr_fail.c260 bpf_dynptr_from_skb(skb, 0, &ptr); in data_slice_out_of_bounds_skb()
1080 bpf_dynptr_from_skb(skb, 0, &ptr); in skb_invalid_slice_write()
1101 bpf_dynptr_from_skb(skb, 0, &ptr); in skb_invalid_data_slice1()
1127 bpf_dynptr_from_skb(skb, 0, &ptr); in skb_invalid_data_slice2()
1154 bpf_dynptr_from_skb(skb, 0, &ptr); in skb_invalid_data_slice3()
1180 bpf_dynptr_from_skb(skb, 0, &ptr); in skb_invalid_data_slice4()
1247 __failure __msg("calling kernel function bpf_dynptr_from_skb is not allowed")
1253 bpf_dynptr_from_skb(ctx, 0, &ptr); in skb_invalid_ctx()
1265 bpf_dynptr_from_skb(skb, 0, &ptr); in BPF_PROG()
1277 bpf_dynptr_from_skb(sk in BPF_PROG()
[all...]
H A Dcrypto_bench.c74 bpf_dynptr_from_skb(skb, 0, &psrc); in crypto_encrypt()
98 bpf_dynptr_from_skb(skb, 0, &psrc); in crypto_decrypt()
H A Dverifier_netfilter_ctx.c82 extern int bpf_dynptr_from_skb(struct __sk_buff *skb, __u64 flags,
102 if (ctx->skb->len <= 20 || bpf_dynptr_from_skb(skb, 0, &ptr)) in with_valid_ctx_access_test6()
H A Dcrypto_sanity.c47 bpf_dynptr_from_skb(skb, 0, psrc); in skb_dynptr_validate()
H A Dtest_l4lb_noinline_dynptr.c469 bpf_dynptr_from_skb(ctx, 0, &ptr); in balancer_ingress()
H A Dtest_cls_redirect_dynptr.c846 bpf_dynptr_from_skb(skb, 0, &dynptr); in cls_redirect()
/linux/tools/testing/selftests/bpf/
H A Dbpf_kfuncs.h11 extern int bpf_dynptr_from_skb(struct __sk_buff *skb, __u64 flags,
/linux/Documentation/bpf/
H A Dkfuncs.rst109 __bpf_kfunc int bpf_dynptr_from_skb(..., struct bpf_dynptr_kern *ptr__uninit)
/linux/net/core/
H A Dfilter.c11909 __bpf_kfunc int bpf_dynptr_from_skb(struct __sk_buff *s, u64 flags, in bpf_dynptr_from_skb() function
12067 err = bpf_dynptr_from_skb(skb, flags, ptr__uninit); in bpf_dynptr_from_skb_rdonly()
12077 BTF_ID_FLAGS(func, bpf_dynptr_from_skb, KF_TRUSTED_ARGS)
/linux/kernel/bpf/
H A Dverifier.c11489 BTF_ID(func, bpf_dynptr_from_skb) in BTF_ID()
11518 BTF_ID(func, bpf_dynptr_from_skb) in BTF_ID()