| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | dynptr_fail.c | 18 struct bpf_dynptr ptr; 25 __type(value, struct bpf_dynptr); 62 static int get_map_val_dynptr(struct bpf_dynptr *ptr) in get_map_val_dynptr() 84 struct bpf_dynptr ptr = {}; in ringbuf_missing_release1() 97 struct bpf_dynptr ptr1, ptr2; in ringbuf_missing_release2() 119 struct bpf_dynptr ptr; in missing_release_callback_fn() 142 struct bpf_dynptr ptr; in ringbuf_release_uninit_dynptr() 155 struct bpf_dynptr ptr; in use_after_invalid() 175 struct bpf_dynptr ptr; in ringbuf_invalid_api() 198 struct bpf_dynptr ptr; in add_dynptr_to_map1() [all …]
|
| H A D | user_ringbuf_fail.c | 30 bad_access1(struct bpf_dynptr *dynptr, void *context) in bad_access1() 53 bad_access2(struct bpf_dynptr *dynptr, void *context) in bad_access2() 76 write_forbidden(struct bpf_dynptr *dynptr, void *context) in write_forbidden() 96 null_context_write(struct bpf_dynptr *dynptr, void *context) in null_context_write() 116 null_context_read(struct bpf_dynptr *dynptr, void *context) in null_context_read() 138 try_discard_dynptr(struct bpf_dynptr *dynptr, void *context) in try_discard_dynptr() 158 try_submit_dynptr(struct bpf_dynptr *dynptr, void *context) in try_submit_dynptr() 178 invalid_drain_callback_return(struct bpf_dynptr *dynptr, void *context) in invalid_drain_callback_return() 196 try_reinit_dynptr_mem(struct bpf_dynptr *dynptr, void *context) in try_reinit_dynptr_mem() 203 try_reinit_dynptr_ringbuf(struct bpf_dynptr *dynpt [all...] |
| H A D | dynptr_success.c | 43 struct bpf_dynptr ptr; in test_read_write() 73 struct bpf_dynptr ptr; in test_dynptr_data() 128 struct bpf_dynptr *ptr = (struct bpf_dynptr *)data; in ringbuf_callback() 142 struct bpf_dynptr ptr; in test_ringbuf() 176 struct bpf_dynptr ptr; in test_skb_readonly() 197 struct bpf_dynptr ptr; in test_dynptr_skb_data() 218 struct bpf_dynptr ptr; in test_dynptr_skb_slice_non_linear() 237 struct bpf_dynptr meta; in test_dynptr_skb_meta_data() 261 struct bpf_dynptr meta; in test_dynptr_skb_meta_flags() 292 struct bpf_dynptr ptr; in test_adjust() [all …]
|
| H A D | test_kfunc_dynptr_param.c | 38 return bpf_verify_pkcs7_signature((struct bpf_dynptr *)&val, 39 (struct bpf_dynptr *)&val, NULL); in BPF_PROG() 43 __failure __msg("R1 expected pointer to stack or const struct bpf_dynptr") in BPF_PROG() 46 static struct bpf_dynptr val; 55 struct bpf_dynptr ptr; in BPF_PROG()
|
| H A D | crypto_common.h | 14 int bpf_crypto_encrypt(struct bpf_crypto_ctx *ctx, const struct bpf_dynptr *src, 15 const struct bpf_dynptr *dst, const struct bpf_dynptr *iv) __ksym; 16 int bpf_crypto_decrypt(struct bpf_crypto_ctx *ctx, const struct bpf_dynptr *src, 17 const struct bpf_dynptr *dst, const struct bpf_dynptr *iv) __ksym;
|
| H A D | ip_check_defrag.c | 42 struct bpf_dynptr ptr; in is_frag_v6() 64 struct bpf_dynptr ptr; in handle_v4()
|
| H A D | test_kfunc_param_nullable.c | 12 struct bpf_dynptr data; in kfunc_dynptr_nullable_test1() 23 struct bpf_dynptr data; in kfunc_dynptr_nullable_test2() 35 struct bpf_dynptr data; in kfunc_dynptr_nullable_test3()
|
| H A D | test_xdp_meta.c | 80 struct bpf_dynptr meta; in ing_cls_dynptr_read() 97 struct bpf_dynptr data, meta; in ing_cls_dynptr_write() 115 struct bpf_dynptr meta; in ing_cls_dynptr_slice() 135 struct bpf_dynptr data, meta; in ing_cls_dynptr_slice_rdwr() 159 struct bpf_dynptr meta; in ing_cls_dynptr_offset_rd() 198 struct bpf_dynptr meta; in ing_cls_dynptr_offset_wr() 231 struct bpf_dynptr meta; in ing_cls_dynptr_offset_oob() 421 struct bpf_dynptr data, meta; in clone_meta_dynptr_survives_data_slice_write() 450 struct bpf_dynptr meta; in clone_meta_dynptr_survives_meta_slice_write() 478 struct bpf_dynptr data, meta; in clone_meta_dynptr_rw_before_data_dynptr_write() [all …]
|
| H A D | verifier_netfilter_ctx.c | 94 struct bpf_dynptr ptr; in with_valid_ctx_access_test6() 141 struct bpf_dynptr ptr; in with_dynptr_write() 160 struct bpf_dynptr ptr; in with_dynptr_rdwr() 180 struct bpf_dynptr ptr; in with_dynptr_store()
|
| H A D | test_cls_redirect_dynptr.c | 125 static int pkt_parse_ipv4(struct bpf_dynptr *dynptr, __u64 *offset, struct iphdr *iphdr) in pkt_parse_ipv4() 142 static bool pkt_parse_icmp_l4_ports(struct bpf_dynptr *dynptr, __u64 *offset, flow_ports_t *ports) in pkt_parse_icmp_l4_ports() 187 static bool pkt_skip_ipv6_extension_headers(struct bpf_dynptr *dynptr, __u64 *offset, in pkt_skip_ipv6_extension_headers() 244 static int pkt_parse_ipv6(struct bpf_dynptr *dynptr, __u64 *offset, struct ipv6hdr *ipv6, in pkt_parse_ipv6() 293 static ret_t forward_with_gre(struct __sk_buff *skb, struct bpf_dynptr *dynptr, in forward_with_gre() 420 static ret_t forward_to_next_hop(struct __sk_buff *skb, struct bpf_dynptr *dynptr, in forward_to_next_hop() 477 static ret_t get_next_hop(struct bpf_dynptr *dynptr, __u64 *offset, encap_headers_t *encap, in get_next_hop() 605 static verdict_t process_icmpv4(struct __sk_buff *skb, struct bpf_dynptr *dynptr, __u64 *offset, in process_icmpv4() 654 static verdict_t process_icmpv6(struct bpf_dynptr *dynptr, __u64 *offset, struct __sk_buff *skb, in process_icmpv6() 706 static verdict_t process_tcp(struct bpf_dynptr *dynpt [all...] |
| H A D | user_ringbuf_success.c | 38 record_sample(struct bpf_dynptr *dynptr, void *context) in record_sample() 89 read_protocol_msg(struct bpf_dynptr *dynptr, void *context) in read_protocol_msg() 193 do_nothing_cb(struct bpf_dynptr *dynptr, void *context) in do_nothing_cb()
|
| H A D | test_xdp_dynptr.c | 77 static __always_inline int handle_ipv4(struct xdp_md *xdp, struct bpf_dynptr *xdp_ptr) in handle_ipv4() 82 struct bpf_dynptr new_xdp_ptr; in handle_ipv4() 159 static __always_inline int handle_ipv6(struct xdp_md *xdp, struct bpf_dynptr *xdp_ptr) in handle_ipv6() 164 struct bpf_dynptr new_xdp_ptr; in handle_ipv6() 234 struct bpf_dynptr ptr; in _xdp_tx_iptunnel()
|
| H A D | crypto_sanity.c | 29 static int skb_dynptr_validate(struct __sk_buff *skb, struct bpf_dynptr *psrc) in skb_dynptr_validate() 97 struct bpf_dynptr psrc, pdst; in decrypt_sanity() 144 struct bpf_dynptr psrc, pdst; in encrypt_sanity()
|
| H A D | test_get_xattr.c | 35 struct bpf_dynptr value_ptr; in BPF_PROG() 61 struct bpf_dynptr value_ptr; in BPF_PROG()
|
| H A D | test_parse_tcp_hdr_opt_dynptr.c | 30 static int parse_hdr_opt(struct bpf_dynptr *ptr, __u32 *off, __u8 *hdr_bytes_remaining, in parse_hdr_opt() 84 struct bpf_dynptr ptr; in xdp_ingress_v6()
|
| H A D | crypto_bench.c | 67 struct bpf_dynptr psrc, pdst; in crypto_encrypt() 93 struct bpf_dynptr psrc, pdst; in crypto_decrypt()
|
| H A D | test_l4lb_noinline_dynptr.c | 235 static __noinline int parse_icmpv6(struct bpf_dynptr *skb_ptr, __u64 off, in parse_icmpv6() 259 static __noinline int parse_icmp(struct bpf_dynptr *skb_ptr, __u64 off, in parse_icmp() 284 static __noinline bool parse_udp(struct bpf_dynptr *skb_ptr, __u64 off, in parse_udp() 304 static __noinline bool parse_tcp(struct bpf_dynptr *skb_ptr, __u64 off, in parse_tcp() 327 static __noinline int process_packet(struct bpf_dynptr *skb_ptr, in process_packet() 461 struct bpf_dynptr ptr; in balancer_ingress()
|
| H A D | verifier_mem_size_reg.c | 19 struct bpf_dynptr dptr; in dynptr_slice_null_buf_size_precise()
|
| H A D | test_fsverity.c | 26 struct bpf_dynptr digest_ptr; in BPF_PROG()
|
| H A D | read_cgroupfs_xattr.c | 25 struct bpf_dynptr value_ptr; in BPF_PROG()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | bpf_kfuncs.h | 12 struct bpf_dynptr *ptr__uninit) __ksym __weak; 20 struct bpf_dynptr *ptr__uninit) __ksym __weak; 23 struct bpf_dynptr *ptr__uninit) __ksym __weak; 31 extern void *bpf_dynptr_slice(const struct bpf_dynptr *ptr, __u64 offset, 40 extern void *bpf_dynptr_slice_rdwr(const struct bpf_dynptr *ptr, __u64 offset, void *buffer, 43 extern int bpf_dynptr_adjust(struct bpf_dynptr *ptr, __u64 start, __u64 end) __ksym __weak; 44 extern bool bpf_dynptr_is_null(const struct bpf_dynptr *ptr) __ksym __weak; 45 extern bool bpf_dynptr_is_rdonly(const struct bpf_dynptr *ptr) __ksym __weak; 46 extern __u64 bpf_dynptr_size(const struct bpf_dynptr *ptr) __ksym __weak; 47 extern int bpf_dynptr_clone(const struct bpf_dynptr *pt [all...] |
| /linux/fs/ |
| H A D | bpf_fs_kfuncs.c | 130 struct bpf_dynptr *value_p) in bpf_get_dentry_xattr() 163 struct bpf_dynptr *value_p) in bpf_get_file_xattr() 202 const struct bpf_dynptr *value_p, int flags) in bpf_set_dentry_xattr_locked() 289 const struct bpf_dynptr *value_p, int flags) in bpf_set_dentry_xattr() 345 struct bpf_dynptr *value_p) in bpf_cgroup_read_xattr() 378 struct bpf_dynptr *value_p) in bpf_sock_read_xattr()
|
| /linux/kernel/bpf/ |
| H A D | crypto.c | 321 const struct bpf_dynptr *src, in bpf_crypto_decrypt() 322 const struct bpf_dynptr *dst, in bpf_crypto_decrypt() 323 const struct bpf_dynptr *siv__nullable) in bpf_crypto_decrypt() 342 const struct bpf_dynptr *src, in bpf_crypto_encrypt() 343 const struct bpf_dynptr *dst, in bpf_crypto_encrypt() 344 const struct bpf_dynptr *siv__nullable) in bpf_crypto_encrypt()
|
| /linux/include/linux/ |
| H A D | bpf_lsm.h | 54 const struct bpf_dynptr *value_p, int flags); 100 const struct bpf_dynptr *value_p, int flags) in bpf_set_dentry_xattr_locked()
|
| /linux/tools/testing/selftests/bpf/test_kmods/ |
| H A D | bpf_testmod_kfunc.h | 146 struct bpf_dynptr *ptr) __ksym; 190 void bpf_kfunc_dynptr_test(struct bpf_dynptr *ptr, struct bpf_dynptr *ptr__nullable) __ksym;
|