/Linux-v6.6/tools/testing/selftests/bpf/progs/ |
D | verifier_direct_packet_access.c | 19 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in __retval() 20 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in __retval() 39 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in direct_packet_access_test1() 40 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in direct_packet_access_test1() 73 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in direct_packet_access_test2() 74 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)), in direct_packet_access_test2() 75 __imm_const(__sk_buff_len, offsetof(struct __sk_buff, len)) in direct_packet_access_test2() 90 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)) in direct_packet_access_test3() 109 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in direct_packet_access_test4_write() 110 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in direct_packet_access_test4_write() [all …]
|
D | verifier_cgroup_skb.c | 32 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in test_1_for_cgroup_skb() 33 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)), in test_1_for_cgroup_skb() 34 __imm_const(__sk_buff_len, offsetof(struct __sk_buff, len)), in test_1_for_cgroup_skb() 35 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)), in test_1_for_cgroup_skb() 36 __imm_const(__sk_buff_pkt_type, offsetof(struct __sk_buff, pkt_type)), in test_1_for_cgroup_skb() 37 __imm_const(__sk_buff_protocol, offsetof(struct __sk_buff, protocol)), in test_1_for_cgroup_skb() 38 __imm_const(__sk_buff_queue_mapping, offsetof(struct __sk_buff, queue_mapping)), in test_1_for_cgroup_skb() 39 __imm_const(__sk_buff_vlan_present, offsetof(struct __sk_buff, vlan_present)) in test_1_for_cgroup_skb() 59 : __imm_const(__sk_buff_hash, offsetof(struct __sk_buff, hash)), in test_2_for_cgroup_skb() 60 __imm_const(__sk_buff_ingress_ifindex, offsetof(struct __sk_buff, ingress_ifindex)), in test_2_for_cgroup_skb() [all …]
|
D | verifier_helper_packet_access.c | 157 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in cls_valid_packet_ptr_range() 158 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in cls_valid_packet_ptr_range() 176 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)) in test7_cls_unchecked_packet_ptr() 205 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_test8_cls_variable_add() 206 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_test8_cls_variable_add() 230 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_ptr_with_bad_range_2() 231 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_ptr_with_bad_range_2() 254 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in ptr_with_too_short_range_2() 255 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in ptr_with_too_short_range_2() 279 __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in test11_cls_unsuitable_helper_1() [all …]
|
D | verifier_lwt.c | 23 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_write_for_lwt_in() 24 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_write_for_lwt_in() 43 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_write_for_lwt_out() 44 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_write_for_lwt_out() 63 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_write_for_lwt_xmit() 64 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_write_for_lwt_xmit() 83 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_read_for_lwt_in() 84 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_read_for_lwt_in() 103 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in packet_read_for_lwt_out() 104 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in packet_read_for_lwt_out() [all …]
|
D | verifier_sock.c | 65 : __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)) in skb_sk_no_null_check() 83 : __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_family_non_fullsock_field_1() 103 : __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_sk_type_fullsock_field_1() 121 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)) in sk_no_skb_sk_check_1() 142 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in no_null_check_on_ret_1() 166 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_sk_type_fullsock_field_2() 189 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_family_non_fullsock_field_2() 213 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_sk_state_narrow_load() 237 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in port_word_load_backward_compatibility() 261 __imm_const(__sk_buff_sk, offsetof(struct __sk_buff, sk)), in sk_dst_port_half_load() [all …]
|
D | verifier_spill_fill.c | 43 : __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)) in valid_spill_fill_skb_mark() 194 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in scalar_offset_to_skb_data_1() 195 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in scalar_offset_to_skb_data_1() 238 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in u16_offset_to_skb_data() 239 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in u16_offset_to_skb_data() 266 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in u64_offset_to_skb_data() 267 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in u64_offset_to_skb_data() 292 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in _6_offset_to_skb_data() 293 __imm_const(__sk_buff_data_end, offsetof(struct __sk_buff, data_end)) in _6_offset_to_skb_data() 319 : __imm_const(__sk_buff_data, offsetof(struct __sk_buff, data)), in addr_offset_to_skb_data() [all …]
|
D | test_global_func3.c | 9 int f1(struct __sk_buff *skb) in f1() 15 int f2(int val, struct __sk_buff *skb) in f2() 21 int f3(int val, struct __sk_buff *skb, int var) in f3() 27 int f4(struct __sk_buff *skb) in f4() 33 int f5(struct __sk_buff *skb) in f5() 39 int f6(struct __sk_buff *skb) in f6() 45 int f7(struct __sk_buff *skb) in f7() 51 int f8(struct __sk_buff *skb) in f8() 58 int global_func3(struct __sk_buff *skb) in global_func3()
|
D | map_kptr_fail.c | 25 int size_not_bpf_dw(struct __sk_buff *ctx) in size_not_bpf_dw() 40 int non_const_var_off(struct __sk_buff *ctx) in non_const_var_off() 59 int non_const_var_off_kptr_xchg(struct __sk_buff *ctx) in non_const_var_off_kptr_xchg() 78 int misaligned_access_write(struct __sk_buff *ctx) in misaligned_access_write() 94 int misaligned_access_read(struct __sk_buff *ctx) in misaligned_access_read() 108 int reject_var_off_store(struct __sk_buff *ctx) in reject_var_off_store() 132 int reject_bad_type_match(struct __sk_buff *ctx) in reject_bad_type_match() 153 int marked_as_untrusted_or_null(struct __sk_buff *ctx) in marked_as_untrusted_or_null() 168 int correct_btf_id_check_size(struct __sk_buff *ctx) in correct_btf_id_check_size() 186 int inherit_untrusted_on_walk(struct __sk_buff *ctx) in inherit_untrusted_on_walk() [all …]
|
D | test_global_func4.c | 9 int f1(struct __sk_buff *skb) in f1() 15 int f2(int val, struct __sk_buff *skb) in f2() 21 int f3(int val, struct __sk_buff *skb, int var) in f3() 27 int f4(struct __sk_buff *skb) in f4() 33 int f5(struct __sk_buff *skb) in f5() 39 int f6(struct __sk_buff *skb) in f6() 45 int f7(struct __sk_buff *skb) in f7() 52 int global_func4(struct __sk_buff *skb) in global_func4()
|
D | tailcall_bpf2bpf4.c | 31 int subprog_tail_2(struct __sk_buff *skb) in subprog_tail_2() 40 int subprog_tail_1(struct __sk_buff *skb) in subprog_tail_1() 47 int subprog_tail(struct __sk_buff *skb) in subprog_tail() 54 int classifier_1(struct __sk_buff *skb) in classifier_1() 60 int classifier_2(struct __sk_buff *skb) in classifier_2() 67 int classifier_0(struct __sk_buff *skb) in classifier_0() 73 int entry(struct __sk_buff *skb) in entry()
|
D | test_tc_link.c | 17 int tc1(struct __sk_buff *skb) in tc1() 24 int tc2(struct __sk_buff *skb) in tc2() 31 int tc3(struct __sk_buff *skb) in tc3() 38 int tc4(struct __sk_buff *skb) in tc4() 45 int tc5(struct __sk_buff *skb) in tc5() 52 int tc6(struct __sk_buff *skb) in tc6()
|
D | test_bpf_nf_fail.c | 16 struct nf_conn *bpf_skb_ct_alloc(struct __sk_buff *, struct bpf_sock_tuple *, u32, 18 struct nf_conn *bpf_skb_ct_lookup(struct __sk_buff *, struct bpf_sock_tuple *, u32, 28 int alloc_release(struct __sk_buff *ctx) in alloc_release() 42 int insert_insert(struct __sk_buff *ctx) in insert_insert() 59 int lookup_insert(struct __sk_buff *ctx) in lookup_insert() 73 int write_not_allowlisted_field(struct __sk_buff *ctx) in write_not_allowlisted_field() 87 int set_timeout_after_insert(struct __sk_buff *ctx) in set_timeout_after_insert() 104 int set_status_after_insert(struct __sk_buff *ctx) in set_status_after_insert() 121 int change_timeout_after_alloc(struct __sk_buff *ctx) in change_timeout_after_alloc() 135 int change_status_after_alloc(struct __sk_buff *ctx) in change_status_after_alloc()
|
D | test_tc_tunnel.c | 91 static __always_inline int __encap_ipv4(struct __sk_buff *skb, __u8 encap_proto, in __encap_ipv4() 253 static __always_inline int encap_ipv4(struct __sk_buff *skb, __u8 encap_proto, in encap_ipv4() 259 static __always_inline int __encap_ipv6(struct __sk_buff *skb, __u8 encap_proto, in __encap_ipv6() 370 static int encap_ipv6_ipip6(struct __sk_buff *skb) in encap_ipv6_ipip6() 425 static __always_inline int encap_ipv6(struct __sk_buff *skb, __u8 encap_proto, in encap_ipv6() 432 int __encap_ipip_none(struct __sk_buff *skb) in __encap_ipip_none() 441 int __encap_gre_none(struct __sk_buff *skb) in __encap_gre_none() 450 int __encap_gre_mpls(struct __sk_buff *skb) in __encap_gre_mpls() 459 int __encap_gre_eth(struct __sk_buff *skb) in __encap_gre_eth() 468 int __encap_udp_none(struct __sk_buff *skb) in __encap_udp_none() [all …]
|
D | test_sk_lookup_kern.c | 56 int sk_lookup_success(struct __sk_buff *skb) in sk_lookup_success() 82 int sk_lookup_success_simple(struct __sk_buff *skb) in sk_lookup_success_simple() 94 int err_use_after_free(struct __sk_buff *skb) in err_use_after_free() 109 int err_modify_sk_pointer(struct __sk_buff *skb) in err_modify_sk_pointer() 123 int err_modify_sk_or_null_pointer(struct __sk_buff *skb) in err_modify_sk_or_null_pointer() 136 int err_no_release(struct __sk_buff *skb) in err_no_release() 145 int err_release_twice(struct __sk_buff *skb) in err_release_twice() 157 int err_release_unchecked(struct __sk_buff *skb) in err_release_unchecked() 167 void lookup_no_release(struct __sk_buff *skb) in lookup_no_release() 174 int err_no_release_subcall(struct __sk_buff *skb) in err_no_release_subcall()
|
D | tailcall2.c | 14 int classifier_0(struct __sk_buff *skb) in classifier_0() 21 int classifier_1(struct __sk_buff *skb) in classifier_1() 28 int classifier_2(struct __sk_buff *skb) in classifier_2() 34 int classifier_3(struct __sk_buff *skb) in classifier_3() 41 int classifier_4(struct __sk_buff *skb) in classifier_4() 48 int entry(struct __sk_buff *skb) in entry()
|
D | test_global_func1.c | 11 int f0(int var, struct __sk_buff *skb) in f0() 19 int f1(struct __sk_buff *skb) in f1() 28 int f3(int, struct __sk_buff *skb, int); 31 int f2(int val, struct __sk_buff *skb) in f2() 37 int f3(int val, struct __sk_buff *skb, int var) in f3() 48 int global_func1(struct __sk_buff *skb) in global_func1()
|
D | test_global_func2.c | 11 int f0(int var, struct __sk_buff *skb) in f0() 17 int f1(struct __sk_buff *skb) in f1() 26 int f3(int, struct __sk_buff *skb, int); 29 int f2(int val, struct __sk_buff *skb) in f2() 35 int f3(int val, struct __sk_buff *skb, int var) in f3() 46 int global_func2(struct __sk_buff *skb) in global_func2()
|
D | test_pkt_access.c | 37 int test_pkt_access_subprog1(volatile struct __sk_buff *skb) in test_pkt_access_subprog1() 43 int test_pkt_access_subprog2(int val, volatile struct __sk_buff *skb) in test_pkt_access_subprog2() 51 int get_skb_len(struct __sk_buff *skb) in get_skb_len() 66 int get_skb_ifindex(int, struct __sk_buff *skb, int); 69 int test_pkt_access_subprog3(int val, struct __sk_buff *skb) in test_pkt_access_subprog3() 75 int get_skb_ifindex(int val, struct __sk_buff *skb, int var) in get_skb_ifindex() 85 int test_pkt_write_access_subprog(struct __sk_buff *skb, __u32 off) in test_pkt_write_access_subprog() 103 int test_pkt_access(struct __sk_buff *skb) in test_pkt_access()
|
D | verifier_raw_stack.c | 145 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)), in bytes_spilled_regs_around_bounds() 146 __imm_const(__sk_buff_priority, offsetof(struct __sk_buff, priority)) in bytes_spilled_regs_around_bounds() 169 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)) in __flag() 200 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)), in __flag() 201 __imm_const(__sk_buff_pkt_type, offsetof(struct __sk_buff, pkt_type)), in __flag() 202 __imm_const(__sk_buff_priority, offsetof(struct __sk_buff, priority)) in __flag() 231 __imm_const(__sk_buff_mark, offsetof(struct __sk_buff, mark)), in load_bytes_spilled_regs_data() 232 __imm_const(__sk_buff_priority, offsetof(struct __sk_buff, priority)) in load_bytes_spilled_regs_data()
|
D | test_tunnel_kern.c | 65 int bpf_skb_set_fou_encap(struct __sk_buff *skb_ctx, 67 int bpf_skb_get_fou_encap(struct __sk_buff *skb_ctx, 78 int gre_set_tunnel(struct __sk_buff *skb) in gre_set_tunnel() 100 int gre_set_tunnel_no_key(struct __sk_buff *skb) in gre_set_tunnel_no_key() 121 int gre_get_tunnel(struct __sk_buff *skb) in gre_get_tunnel() 137 int ip6gretap_set_tunnel(struct __sk_buff *skb) in ip6gretap_set_tunnel() 161 int ip6gretap_get_tunnel(struct __sk_buff *skb) in ip6gretap_get_tunnel() 180 int erspan_set_tunnel(struct __sk_buff *skb) in erspan_set_tunnel() 223 int erspan_get_tunnel(struct __sk_buff *skb) in erspan_get_tunnel() 258 int ip4ip6erspan_set_tunnel(struct __sk_buff *skb) in ip4ip6erspan_set_tunnel() [all …]
|
D | test_lwt_redirect.c | 12 static int prepend_dummy_mac(struct __sk_buff *skb) in prepend_dummy_mac() 27 static int get_redirect_target(struct __sk_buff *skb) in get_redirect_target() 41 int test_lwt_redirect_in(struct __sk_buff *skb) in test_lwt_redirect_in() 55 int test_lwt_redirect_out(struct __sk_buff *skb) in test_lwt_redirect_out() 69 int test_lwt_redirect_out_nomac(struct __sk_buff *skb) in test_lwt_redirect_out_nomac() 80 int test_lwt_redirect_in_nomac(struct __sk_buff *skb) in test_lwt_redirect_in_nomac()
|
/Linux-v6.6/tools/testing/selftests/bpf/verifier/ |
D | ctx_skb.c | 5 offsetof(struct __sk_buff, len)), 8 offsetof(struct __sk_buff, mark)), 11 offsetof(struct __sk_buff, pkt_type)), 14 offsetof(struct __sk_buff, queue_mapping)), 17 offsetof(struct __sk_buff, protocol)), 20 offsetof(struct __sk_buff, vlan_present)), 23 offsetof(struct __sk_buff, vlan_tci)), 26 offsetof(struct __sk_buff, napi_id)), 54 offsetof(struct __sk_buff, pkt_type)), 67 offsetof(struct __sk_buff, pkt_type)), [all …]
|
/Linux-v6.6/samples/bpf/ |
D | tcbpf1_kern.c | 16 static inline void set_dst_mac(struct __sk_buff *skb, char *mac) in set_dst_mac() 24 static inline void set_ip_tos(struct __sk_buff *skb, __u8 new_tos) in set_ip_tos() 37 static inline void set_tcp_ip_src(struct __sk_buff *skb, __u32 new_ip) in set_tcp_ip_src() 47 static inline void set_tcp_dest_port(struct __sk_buff *skb, __u16 new_port) in set_tcp_dest_port() 56 int bpf_prog1(struct __sk_buff *skb) in bpf_prog1() 70 int _redirect_xmit(struct __sk_buff *skb) in _redirect_xmit() 75 int _redirect_recv(struct __sk_buff *skb) in _redirect_recv() 80 int _clone_redirect_xmit(struct __sk_buff *skb) in _clone_redirect_xmit() 86 int _clone_redirect_recv(struct __sk_buff *skb) in _clone_redirect_recv()
|
D | test_lwt_bpf.c | 29 int do_nop(struct __sk_buff *skb) in do_nop() 36 int do_test_ctx(struct __sk_buff *skb) in do_test_ctx() 49 int do_test_cb(struct __sk_buff *skb) in do_test_cb() 60 int do_test_data(struct __sk_buff *skb) in do_test_data() 84 static inline int rewrite(struct __sk_buff *skb, uint32_t old_ip, in rewrite() 141 int do_test_rewrite(struct __sk_buff *skb) in do_test_rewrite() 160 static inline int __do_push_ll_and_redirect(struct __sk_buff *skb) in __do_push_ll_and_redirect() 185 int do_push_ll_and_redirect_silent(struct __sk_buff *skb) in do_push_ll_and_redirect_silent() 191 int do_push_ll_and_redirect(struct __sk_buff *skb) in do_push_ll_and_redirect() 202 static inline void __fill_garbage(struct __sk_buff *skb) in __fill_garbage() [all …]
|
/Linux-v6.6/include/linux/ |
D | bpf_types.h | 6 struct __sk_buff, struct sk_buff) 8 struct __sk_buff, struct sk_buff) 10 struct __sk_buff, struct sk_buff) 15 struct __sk_buff, struct sk_buff) 22 struct __sk_buff, struct sk_buff) 24 struct __sk_buff, struct sk_buff) 26 struct __sk_buff, struct sk_buff) 28 struct __sk_buff, struct sk_buff) 32 struct __sk_buff, struct sk_buff) 36 struct __sk_buff, struct bpf_flow_dissector)
|