/linux/tools/testing/selftests/bpf/progs/ |
H A D | dynptr_success.c | 177 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 D | test_kfunc_param_nullable.c | 14 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 D | ip_check_defrag.c | 15 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 D | dynptr_fail.c | 260 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 D | crypto_bench.c | 74 bpf_dynptr_from_skb(skb, 0, &psrc); in crypto_encrypt() 98 bpf_dynptr_from_skb(skb, 0, &psrc); in crypto_decrypt()
|
H A D | verifier_netfilter_ctx.c | 82 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 D | crypto_sanity.c | 47 bpf_dynptr_from_skb(skb, 0, psrc); in skb_dynptr_validate()
|
H A D | test_l4lb_noinline_dynptr.c | 469 bpf_dynptr_from_skb(ctx, 0, &ptr); in balancer_ingress()
|
H A D | test_cls_redirect_dynptr.c | 846 bpf_dynptr_from_skb(skb, 0, &dynptr); in cls_redirect()
|
/linux/tools/testing/selftests/bpf/ |
H A D | bpf_kfuncs.h | 11 extern int bpf_dynptr_from_skb(struct __sk_buff *skb, __u64 flags,
|
/linux/Documentation/bpf/ |
H A D | kfuncs.rst | 109 __bpf_kfunc int bpf_dynptr_from_skb(..., struct bpf_dynptr_kern *ptr__uninit)
|
/linux/net/core/ |
H A D | filter.c | 11909 __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 D | verifier.c | 11489 BTF_ID(func, bpf_dynptr_from_skb) in BTF_ID() 11518 BTF_ID(func, bpf_dynptr_from_skb) in BTF_ID()
|