linux/tools/testing/selftests/bpf/progs
Dmitrii Banshchikov f782e2c300 bpf: Relax return code check for subprograms
Currently verifier enforces return code checks for subprograms in the
same manner as it does for program entry points. This prevents returning
arbitrary scalar values from subprograms. Scalar type of returned values
is checked by btf_prepare_func_args() and hence it should be safe to
allow only scalars for now. Relax return code checks for subprograms and
allow any correct scalar values.

Fixes: 51c39bb1d5 (bpf: Introduce function-by-function verification)
Signed-off-by: Dmitrii Banshchikov <me@ubique.spb.ru>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20201113171756.90594-1-me@ubique.spb.ru
2020-11-14 08:17:27 -08:00
..
bpf_cubic.c bpf: selftest: Remove enum tcp_ca_state from bpf_tcp_helpers.h 2020-09-25 13:58:02 -07:00
bpf_dctcp.c bpf: selftest: Remove enum tcp_ca_state from bpf_tcp_helpers.h 2020-09-25 13:58:02 -07:00
bpf_flow.c bpf, selftests: Use bpf_tail_call_static where appropriate 2020-09-30 11:50:35 -07:00
bpf_iter.h selftests/bpf: Ensure snprintf_btf/bpf_iter tests compatibility with old vmlinux.h 2020-09-29 11:10:48 -07:00
bpf_iter_bpf_array_map.c selftests/bpf: Add test for bpf array map iterators 2020-07-25 20:16:34 -07:00
bpf_iter_bpf_hash_map.c selftests/bpf: Add bpf_{update, delete}_map_elem in hashmap iter program 2020-09-03 17:36:41 -07:00
bpf_iter_bpf_map.c selftests/bpf: Move newer bpf_iter_* type redefining to a new header file 2020-06-24 18:37:59 -07:00
bpf_iter_bpf_percpu_array_map.c selftests/bpf: Add test for bpf array map iterators 2020-07-25 20:16:34 -07:00
bpf_iter_bpf_percpu_hash_map.c selftests/bpf: Add test for bpf hash map iterators 2020-07-25 20:16:33 -07:00
bpf_iter_bpf_sk_storage_map.c selftests/bpf: Add a test for bpf sk_storage_map iterator 2020-07-25 20:16:34 -07:00
bpf_iter_ipv6_route.c selftests/bpf: Refactor some net macros to bpf_tracing_net.h 2020-06-24 18:37:59 -07:00
bpf_iter_netlink.c samples/bpf, selftests/bpf: Use bpf_probe_read_kernel 2020-07-21 13:26:26 -07:00
bpf_iter_sockmap.c selftest: bpf: Test copying a sockmap and sockhash 2020-09-28 16:48:02 -07:00
bpf_iter_task.c selftests/bpf: Move newer bpf_iter_* type redefining to a new header file 2020-06-24 18:37:59 -07:00
bpf_iter_task_btf.c selftests/bpf: Add test for bpf_seq_printf_btf helper 2020-09-28 18:26:58 -07:00
bpf_iter_task_file.c selftests/bpf: Test task_file iterator without visiting pthreads 2020-09-02 16:40:33 +02:00
bpf_iter_task_stack.c selftests/bpf: Fix compilation error of bpf_iter_task_stack.c 2020-07-03 23:25:40 +02:00
bpf_iter_tcp4.c samples/bpf, selftests/bpf: Use bpf_probe_read_kernel 2020-07-21 13:26:26 -07:00
bpf_iter_tcp6.c samples/bpf, selftests/bpf: Use bpf_probe_read_kernel 2020-07-21 13:26:26 -07:00
bpf_iter_test_kern1.c tools/bpf: selftests: Add bpf_iter selftests 2020-05-09 17:05:27 -07:00
bpf_iter_test_kern2.c tools/bpf: selftests: Add bpf_iter selftests 2020-05-09 17:05:27 -07:00
bpf_iter_test_kern3.c selftests/bpf: Move newer bpf_iter_* type redefining to a new header file 2020-06-24 18:37:59 -07:00
bpf_iter_test_kern4.c selftests/bpf: Move newer bpf_iter_* type redefining to a new header file 2020-06-24 18:37:59 -07:00
bpf_iter_test_kern5.c selftests/bpf: Add a test for out of bound rdonly buf access 2020-07-25 20:16:34 -07:00
bpf_iter_test_kern6.c selftests/bpf: Test bpf_iter buffer access with negative offset 2020-07-31 00:43:49 +02:00
bpf_iter_test_kern_common.h selftests/bpf: Move newer bpf_iter_* type redefining to a new header file 2020-06-24 18:37:59 -07:00
bpf_iter_udp4.c samples/bpf, selftests/bpf: Use bpf_probe_read_kernel 2020-07-21 13:26:26 -07:00
bpf_iter_udp6.c samples/bpf, selftests/bpf: Use bpf_probe_read_kernel 2020-07-21 13:26:26 -07:00
bpf_tracing_net.h selftests/bpf: Add more common macros to bpf_tracing_net.h 2020-06-24 18:37:59 -07:00
btf__core_reloc_arrays.c selftests/bpf: add CO-RE relocs array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_arrays___diff_arr_dim.c selftests/bpf: add CO-RE relocs array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_arrays___diff_arr_val_sz.c selftests/bpf: add CO-RE relocs array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_arrays___equiv_zero_sz_arr.c selftests/bpf: Add flexible array relocation tests 2019-12-15 16:53:51 -08:00
btf__core_reloc_arrays___err_bad_zero_sz_arr.c selftests/bpf: Add flexible array relocation tests 2019-12-15 16:53:51 -08:00
btf__core_reloc_arrays___err_non_array.c selftests/bpf: add CO-RE relocs array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_arrays___err_too_shallow.c selftests/bpf: add CO-RE relocs array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_arrays___err_too_small.c selftests/bpf: add CO-RE relocs array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_arrays___err_wrong_val_type.c selftests/bpf: Remove too strict field offset relo test cases 2019-11-04 16:06:56 +01:00
btf__core_reloc_arrays___fixed_arr.c selftests/bpf: Add flexible array relocation tests 2019-12-15 16:53:51 -08:00
btf__core_reloc_bitfields.c selftest/bpf: Add relocatable bitfield reading tests 2019-11-04 16:06:56 +01:00
btf__core_reloc_bitfields___bit_sz_change.c selftest/bpf: Add relocatable bitfield reading tests 2019-11-04 16:06:56 +01:00
btf__core_reloc_bitfields___bitfield_vs_int.c selftest/bpf: Add relocatable bitfield reading tests 2019-11-04 16:06:56 +01:00
btf__core_reloc_bitfields___err_too_big_bitfield.c selftest/bpf: Add relocatable bitfield reading tests 2019-11-04 16:06:56 +01:00
btf__core_reloc_bitfields___just_big_enough.c selftest/bpf: Add relocatable bitfield reading tests 2019-11-04 16:06:56 +01:00
btf__core_reloc_enumval.c selftests/bpf: Add tests for ENUMVAL_EXISTS/ENUMVAL_VALUE relocations 2020-08-19 14:19:39 -07:00
btf__core_reloc_enumval___diff.c selftests/bpf: Add tests for ENUMVAL_EXISTS/ENUMVAL_VALUE relocations 2020-08-19 14:19:39 -07:00
btf__core_reloc_enumval___err_missing.c selftests/bpf: Add tests for ENUMVAL_EXISTS/ENUMVAL_VALUE relocations 2020-08-19 14:19:39 -07:00
btf__core_reloc_enumval___val3_missing.c selftests/bpf: Add tests for ENUMVAL_EXISTS/ENUMVAL_VALUE relocations 2020-08-19 14:19:39 -07:00
btf__core_reloc_existence.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_existence___err_wrong_arr_kind.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_existence___err_wrong_arr_value_type.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_existence___err_wrong_int_kind.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_existence___err_wrong_int_sz.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_existence___err_wrong_int_type.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_existence___err_wrong_struct_type.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_existence___minimal.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_flavors.c selftests/bpf: add CO-RE relocs struct flavors tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_flavors__err_wrong_name.c selftests/bpf: add CO-RE relocs struct flavors tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_ints.c selftests/bpf: add CO-RE relocs ints tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_ints___bool.c selftests/bpf: add CO-RE relocs ints tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_ints___reverse_sign.c selftests/bpf: add CO-RE relocs ints tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_misc.c selftests/bpf: add CO-RE relocs misc tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_mods.c selftests/bpf: add CO-RE relocs modifiers/typedef tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_mods___mod_swap.c selftests/bpf: add CO-RE relocs modifiers/typedef tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_mods___typedefs.c selftests/bpf: add CO-RE relocs modifiers/typedef tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___anon_embed.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___dup_compat_types.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_array_container.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_array_field.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_dup_incompat_types.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_missing_container.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_missing_field.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_nonstruct_container.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_partial_match_dups.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_too_deep.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___extra_nesting.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___struct_union_mixup.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_primitives.c selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_primitives___diff_enum_def.c selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_primitives___diff_func_proto.c selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_primitives___diff_ptr_type.c selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_primitives___err_non_enum.c selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_primitives___err_non_int.c selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_primitives___err_non_ptr.c selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_ptr_as_arr.c selftests/bpf: add CO-RE relocs ptr-as-array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_ptr_as_arr___diff_sz.c selftests/bpf: add CO-RE relocs ptr-as-array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_size.c selftests/bpf: Add field size relocation tests 2019-11-04 16:06:56 +01:00
btf__core_reloc_size___diff_sz.c selftests/bpf: Add field size relocation tests 2019-11-04 16:06:56 +01:00
btf__core_reloc_size___err_ambiguous.c selftests/bpf: Add test validating failure on ambiguous relocation value 2020-08-18 18:12:46 -07:00
btf__core_reloc_type_based.c selftests/bpf: Test TYPE_EXISTS and TYPE_SIZE CO-RE relocations 2020-08-19 14:19:39 -07:00
btf__core_reloc_type_based___all_missing.c selftests/bpf: Test TYPE_EXISTS and TYPE_SIZE CO-RE relocations 2020-08-19 14:19:39 -07:00
btf__core_reloc_type_based___diff_sz.c selftests/bpf: Test TYPE_EXISTS and TYPE_SIZE CO-RE relocations 2020-08-19 14:19:39 -07:00
btf__core_reloc_type_based___fn_wrong_args.c selftests/bpf: Test TYPE_EXISTS and TYPE_SIZE CO-RE relocations 2020-08-19 14:19:39 -07:00
btf__core_reloc_type_based___incompat.c selftests/bpf: Test TYPE_EXISTS and TYPE_SIZE CO-RE relocations 2020-08-19 14:19:39 -07:00
btf__core_reloc_type_id.c selftests/bpf: Add CO-RE relo test for TYPE_ID_LOCAL/TYPE_ID_TARGET 2020-08-19 14:19:39 -07:00
btf__core_reloc_type_id___missing_targets.c selftests/bpf: Add CO-RE relo test for TYPE_ID_LOCAL/TYPE_ID_TARGET 2020-08-19 14:19:39 -07:00
btf_data.c selftests/bpf: Add test for resolve_btfids 2020-07-13 10:42:03 -07:00
btf_dump_test_case_bitfields.c selftests/bpf: add btf_dump BTF-to-C conversion tests 2019-05-24 14:05:58 -07:00
btf_dump_test_case_multidim.c selftests/bpf: add btf_dump BTF-to-C conversion tests 2019-05-24 14:05:58 -07:00
btf_dump_test_case_namespacing.c selftests/bpf: add btf_dump BTF-to-C conversion tests 2019-05-24 14:05:58 -07:00
btf_dump_test_case_ordering.c selftests/bpf: add btf_dump BTF-to-C conversion tests 2019-05-24 14:05:58 -07:00
btf_dump_test_case_packing.c selftests/bpf: add btf_dump BTF-to-C conversion tests 2019-05-24 14:05:58 -07:00
btf_dump_test_case_padding.c selftests/bpf: Fix btf_dump padding test case 2019-10-09 15:38:36 -07:00
btf_dump_test_case_syntax.c libbpf: Assume unsigned values for BTF_KIND_ENUM 2020-03-04 17:00:06 +01:00
btf_ptr.h selftests/bpf: Ensure snprintf_btf/bpf_iter tests compatibility with old vmlinux.h 2020-09-29 11:10:48 -07:00
cg_storage_multi.h selftests/bpf: Test CGROUP_STORAGE map can't be used by multiple progs 2020-07-25 20:16:35 -07:00
cg_storage_multi_egress_only.c selftests/bpf: Test CGROUP_STORAGE map can't be used by multiple progs 2020-07-25 20:16:35 -07:00
cg_storage_multi_isolated.c selftests/bpf: Test CGROUP_STORAGE behavior on shared egress + ingress 2020-07-25 20:16:36 -07:00
cg_storage_multi_shared.c selftests/bpf: Test CGROUP_STORAGE behavior on shared egress + ingress 2020-07-25 20:16:36 -07:00
cgroup_skb_sk_lookup_kern.c selftests/bpf: Test for sk helpers in cgroup skb 2020-05-14 18:41:08 -07:00
connect4_prog.c bpf: Add tcp_notsent_lowat bpf setsockopt 2020-10-09 17:12:03 +02:00
connect6_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
connect_force_port4.c bpf, testing: Add get{peer, sock}name selftests to test_progs 2020-05-19 11:32:04 -07:00
connect_force_port6.c bpf, testing: Add get{peer, sock}name selftests to test_progs 2020-05-19 11:32:04 -07:00
core_reloc_types.h selftests/bpf: Add tests for ENUMVAL_EXISTS/ENUMVAL_VALUE relocations 2020-08-19 14:19:39 -07:00
dev_cgroup.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
fentry_test.c bpf: Add tests for PTR_TO_BTF_ID vs. null comparison 2020-06-30 22:21:29 +02:00
fexit_bpf2bpf.c selftests/bpf: Add test for freplace program with write access 2020-08-26 12:47:56 -07:00
fexit_bpf2bpf_simple.c libbpf: Merge selftests' bpf_trace_helpers.h into libbpf's bpf_tracing.h 2020-03-02 16:25:14 -08:00
fexit_test.c bpf: Add tests for PTR_TO_BTF_ID vs. null comparison 2020-06-30 22:21:29 +02:00
fmod_ret_freplace.c selftests: Add selftest for disallowing modify_return attachment to freplace 2020-09-29 13:09:24 -07:00
freplace_attach_probe.c selftests/bpf: Test for map update access from within EXT programs 2020-08-26 12:47:56 -07:00
freplace_cls_redirect.c selftests/bpf: Test for map update access from within EXT programs 2020-08-26 12:47:56 -07:00
freplace_connect4.c selftests/bpf: Add test for freplace program with expected_attach_type 2020-04-24 17:34:30 -07:00
freplace_connect_v4_prog.c selftests/bpf: Test for checking return code for the extended prog 2020-08-26 12:47:56 -07:00
freplace_get_constant.c selftests: Add selftest for disallowing modify_return attachment to freplace 2020-09-29 13:09:24 -07:00
get_cgroup_id_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
kfree_skb.c libbpf: Merge selftests' bpf_trace_helpers.h into libbpf's bpf_tracing.h 2020-03-02 16:25:14 -08:00
load_bytes_relative.c selftests/bpf: Add cgroup_skb/egress test for load_bytes_relative 2020-06-11 16:05:56 +02:00
local_storage.c bpf: Add selftests for local_storage 2020-08-25 15:00:04 -07:00
loop1.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
loop2.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
loop3.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
loop4.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
loop5.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
lsm.c bpf: Remove bpf_lsm_file_mprotect from sleepable list. 2020-08-31 23:03:57 +02:00
map_ptr_kern.c selftests/bpf: Add test for map_ptr arithmetic 2020-09-08 18:04:07 -07:00
metadata_unused.c selftests/bpf: Test load and dump metadata with btftool and skel 2020-09-15 18:28:27 -07:00
metadata_used.c selftests/bpf: Test load and dump metadata with btftool and skel 2020-09-15 18:28:27 -07:00
modify_return.c bpf: Add selftests for BPF_MODIFY_RETURN 2020-03-04 13:41:06 -08:00
netcnt_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
netif_receive_skb.c selftests/bpf: Ensure snprintf_btf/bpf_iter tests compatibility with old vmlinux.h 2020-09-29 11:10:48 -07:00
perf_event_stackmap.c selftests/bpf: Add callchain_stackid 2020-07-25 20:16:35 -07:00
perfbuf_bench.c bpf: Add BPF ringbuf and perf buffer benchmarks 2020-06-01 14:38:22 -07:00
profiler.h selftests/bpf: Add profiler test 2020-10-09 22:03:06 +02:00
profiler.inc.h selftest/bpf: Fix profiler test using CO-RE relocation for enums 2020-10-26 16:33:12 +01:00
profiler1.c selftests/bpf: Add profiler test 2020-10-09 22:03:06 +02:00
profiler2.c selftests/bpf: Add profiler test 2020-10-09 22:03:06 +02:00
profiler3.c selftests/bpf: Add profiler test 2020-10-09 22:03:06 +02:00
pyperf.h selftests/bpf: Add subprogs to pyperf, strobemeta, and l4lb_noinline tests 2020-09-03 17:14:40 -07:00
pyperf50.c selftests/bpf: add pyperf scale test 2019-05-23 16:20:57 +02:00
pyperf100.c selftests/bpf: add pyperf scale test 2019-05-23 16:20:57 +02:00
pyperf180.c selftests/bpf: add pyperf scale test 2019-05-23 16:20:57 +02:00
pyperf600.c selftests/bpf: add realistic loop tests 2019-06-19 02:22:52 +02:00
pyperf600_nounroll.c selftests/bpf: add realistic loop tests 2019-06-19 02:22:52 +02:00
pyperf_global.c selftests/bpf: Add a test for a large global function 2020-01-10 17:20:07 +01:00
pyperf_subprogs.c selftests/bpf: Add subprogs to pyperf, strobemeta, and l4lb_noinline tests 2020-09-03 17:14:40 -07:00
ringbuf_bench.c bpf: Add BPF ringbuf and perf buffer benchmarks 2020-06-01 14:38:22 -07:00
sample_map_ret0.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sample_ret0.c
sendmsg4_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sendmsg6_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
socket_cookie_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sockmap_parse_prog.c selftest/bpf: Fix compilation warning in sockmap_parse_prog.c 2020-03-17 19:28:27 +01:00
sockmap_tcp_msg_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sockmap_verdict_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sockopt_inherit.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sockopt_multi.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sockopt_sk.c selftests/bpf: Make sure optvals > PAGE_SIZE are bypassed 2020-06-17 10:54:05 -07:00
strobemeta.c selftests/bpf: add realistic loop tests 2019-06-19 02:22:52 +02:00
strobemeta.h selftests/bpf: Add subprogs to pyperf, strobemeta, and l4lb_noinline tests 2020-09-03 17:14:40 -07:00
strobemeta_nounroll1.c selftests/bpf: add realistic loop tests 2019-06-19 02:22:52 +02:00
strobemeta_nounroll2.c selftests/bpf: add realistic loop tests 2019-06-19 02:22:52 +02:00
strobemeta_subprogs.c selftests/bpf: Add subprogs to pyperf, strobemeta, and l4lb_noinline tests 2020-09-03 17:14:40 -07:00
tailcall1.c bpf, selftests: Use bpf_tail_call_static where appropriate 2020-09-30 11:50:35 -07:00
tailcall2.c bpf, selftests: Use bpf_tail_call_static where appropriate 2020-09-30 11:50:35 -07:00
tailcall3.c bpf, selftests: Use bpf_tail_call_static where appropriate 2020-09-30 11:50:35 -07:00
tailcall4.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
tailcall5.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
tailcall_bpf2bpf1.c bpf, selftests: Use bpf_tail_call_static where appropriate 2020-09-30 11:50:35 -07:00
tailcall_bpf2bpf2.c bpf, selftests: Use bpf_tail_call_static where appropriate 2020-09-30 11:50:35 -07:00
tailcall_bpf2bpf3.c bpf, selftests: Use bpf_tail_call_static where appropriate 2020-09-30 11:50:35 -07:00
tailcall_bpf2bpf4.c bpf, selftests: Use bpf_tail_call_static where appropriate 2020-09-30 11:50:35 -07:00
tcp_rtt.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_attach_probe.c libbpf: Merge selftests' bpf_trace_helpers.h into libbpf's bpf_tracing.h 2020-03-02 16:25:14 -08:00
test_autoload.c selftests/bpf: Test auto-load disabling logic for BPF programs 2020-06-28 10:06:53 -07:00
test_btf_haskv.c selftests/bpf: Fix a couple of broken test_btf cases 2020-04-24 17:47:40 -07:00
test_btf_map_in_map.c bpf, selftests: Add test for different array inner map size 2020-10-11 10:21:04 -07:00
test_btf_newkv.c selftests/bpf: Fix a couple of broken test_btf cases 2020-04-24 17:47:40 -07:00
test_btf_nokv.c selftests/bpf: Fix a couple of broken test_btf cases 2020-04-24 17:47:40 -07:00
test_btf_skc_cls_ingress.c bpf: selftest: Add test_btf_skc_cls_ingress 2020-09-25 13:58:02 -07:00
test_cgroup_link.c selftests/bpf: Test FD-based cgroup attachment 2020-03-30 17:36:41 -07:00
test_cls_redirect.c selftests/bpf: Add __noinline variant of cls_redirect selftest 2020-09-03 17:14:40 -07:00
test_cls_redirect.h selftests/bpf: Add cls_redirect classifier 2020-04-26 10:00:36 -07:00
test_cls_redirect_subprogs.c selftests/bpf: Add __noinline variant of cls_redirect selftest 2020-09-03 17:14:40 -07:00
test_core_autosize.c selftests/bpf: Validate libbpf's auto-sizing of LD/ST/STX instructions 2020-10-07 18:50:27 -07:00
test_core_extern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_arrays.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_bitfields_direct.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_bitfields_probed.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_enumval.c selftests/bpf: Add tests for ENUMVAL_EXISTS/ENUMVAL_VALUE relocations 2020-08-19 14:19:39 -07:00
test_core_reloc_existence.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_flavors.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_ints.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_kernel.c selftests/bpf: Test TYPE_EXISTS and TYPE_SIZE CO-RE relocations 2020-08-19 14:19:39 -07:00
test_core_reloc_misc.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_mods.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_nesting.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_primitives.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_ptr_as_arr.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_size.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_type_based.c selftests/bpf: Add CO-RE relo test for TYPE_ID_LOCAL/TYPE_ID_TARGET 2020-08-19 14:19:39 -07:00
test_core_reloc_type_id.c selftests/bpf: List newest Clang built-ins needed for some CO-RE selftests 2020-08-20 16:45:09 +02:00
test_core_retro.c selftests/bpf: Fix spurious test failures in core_retro selftest 2020-08-01 23:10:42 -07:00
test_d_path.c selftests/bpf: Fix stat probe in d_path test 2020-09-21 16:18:00 -07:00
test_enable_stats.c bpf: Add selftest for BPF_ENABLE_STATS 2020-05-01 10:36:32 -07:00
test_endian.c selftests/bpf: Add byte swapping selftest 2020-07-01 09:06:12 +02:00
test_get_stack_rawtp.c selftests/bpf: Workaround for get_stack_rawtp test. 2020-06-24 11:10:59 -07:00
test_get_stack_rawtp_err.c bpf: Test_progs, add test to catch retval refine error handling 2020-03-30 15:00:30 -07:00
test_global_data.c selftests: Add test for overriding global data value before load 2020-03-30 01:17:35 +02:00
test_global_func1.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_global_func2.c selftests/bpf: Add unit tests for global functions 2020-01-10 17:20:07 +01:00
test_global_func3.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_global_func4.c selftests/bpf: Add unit tests for global functions 2020-01-10 17:20:07 +01:00
test_global_func5.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_global_func6.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_global_func7.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_global_func8.c bpf: Relax return code check for subprograms 2020-11-14 08:17:27 -08:00
test_jhash.h selftests: bpf: standardize to static __always_inline 2019-07-03 15:06:33 +02:00
test_ksyms.c selftests/bpf: Add __ksym extern selftest 2020-06-22 17:01:48 -07:00
test_ksyms_btf.c bpf/selftests: Test for bpf_per_cpu_ptr() and bpf_this_cpu_ptr() 2020-10-02 15:00:49 -07:00
test_ksyms_btf_null_check.c bpf: selftest: Ensure the return value of the bpf_per_cpu_ptr() must be checked 2020-10-19 15:57:42 -07:00
test_l4lb.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_l4lb_noinline.c selftests/bpf: Add subprogs to pyperf, strobemeta, and l4lb_noinline tests 2020-09-03 17:14:40 -07:00
test_link_pinning.c selftests/bpf: Add link pinning selftests 2020-03-02 22:06:27 -08:00
test_lirc_mode2_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_lwt_ip_encap.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_lwt_seg6local.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_map_in_map.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_map_init.c bpf: Zero-fill re-used per-cpu map element 2020-11-05 19:55:57 -08:00
test_map_lock.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_misc_tcp_hdr_options.c bpf, selftest: Fix flaky tcp_hdr_options test when adding addr to lo 2020-10-15 20:53:15 +02:00
test_mmap.c bpf: Prevent mmap()'ing read-only maps as writable 2020-05-20 20:21:53 -07:00
test_ns_current_pid_tgid.c tools/testing/selftests/bpf: Add self-tests for new helper bpf_get_ns_current_pid_tgid. 2020-03-12 17:40:47 -07:00
test_obj_id.c selftests/bpf: Test bpf_link's get_next_id, get_fd_by_id, and get_obj_info 2020-04-28 17:27:08 -07:00
test_overhead.c selftests: Remove fmod_ret from test_overhead 2020-09-28 17:20:28 -07:00
test_pe_preserve_elems.c selftests/bpf: Add tests for BPF_F_PRESERVE_ELEMS 2020-09-30 23:21:06 -07:00
test_perf_branches.c libbpf: Merge selftests' bpf_trace_helpers.h into libbpf's bpf_tracing.h 2020-03-02 16:25:14 -08:00
test_perf_buffer.c selftests/bpf: Switch perf_buffer test to tracepoint and skeleton 2020-07-09 00:44:45 +02:00
test_pinning.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_pinning_invalid.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_pkt_access.c selftests/bpf: Add test for freplace program with write access 2020-08-26 12:47:56 -07:00
test_pkt_md_access.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_probe_user.c libbpf: Merge selftests' bpf_trace_helpers.h into libbpf's bpf_tracing.h 2020-03-02 16:25:14 -08:00
test_queue_map.c
test_queue_stack_map.h selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_raw_tp_test_run.c bpf, selftests: Fix cast to smaller integer type 'int' warning in raw_tp 2020-09-28 21:33:38 -07:00
test_rdonly_maps.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_ringbuf.c selftests/bpf: Add BPF ringbuf selftests 2020-06-01 14:38:22 -07:00
test_ringbuf_multi.c selftests/bpf: Add BPF ringbuf selftests 2020-06-01 14:38:22 -07:00
test_seg6_loop.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_select_reuseport_kern.c selftests: bpf: Ignore FIN packets for reuseport tests 2020-01-24 22:12:13 +01:00
test_send_signal_kern.c selftests/bpf: Add send_signal_sched_switch test 2020-03-05 14:02:41 -08:00
test_sk_assign.c selftests/bpf: Use SOCKMAP for server sockets in bpf_sk_assign test 2020-04-29 23:31:00 +02:00
test_sk_lookup.c selftests/bpf: Fix endianness issues in sk_lookup/ctx_narrow_access 2020-09-29 16:28:34 -07:00
test_sk_lookup_kern.c bpf: Selftests, add printk to test_sk_lookup_kern to encode null ptr check 2020-05-21 17:44:25 -07:00
test_skb_cgroup_id_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_skb_ctx.c selftests/bpf: Test new __sk_buff field gso_size 2020-03-03 16:23:59 -08:00
test_skb_helpers.c bpf, selftests: Test probe_* helpers from SCHED_CLS 2020-06-01 14:38:21 -07:00
test_skeleton.c tools/bpftool: Strip away modifiers from global variables 2020-07-13 17:07:43 -07:00
test_skmsg_load_helpers.c bpf, selftests: Add sk_msg helpers load and attach test 2020-06-01 14:38:20 -07:00
test_sock_fields.c bpf: selftest: Use bpf_skc_to_tcp_sock() in the sock_fields test 2020-09-25 13:58:02 -07:00
test_sockhash_kern.c
test_sockmap_invalid_update.c selftests: bpf: Test sockmap update from BPF 2020-08-21 15:16:12 -07:00
test_sockmap_kern.c
test_sockmap_kern.h bpf, sockmap: Update selftests to use skb_adjust_room 2020-10-02 15:18:39 -07:00
test_sockmap_listen.c selftests/bpf: Tests for sockmap/sockhash holding listening sockets 2020-02-21 22:29:46 +01:00
test_sockmap_update.c selftests: bpf: Test sockmap update from BPF 2020-08-21 15:16:12 -07:00
test_spin_lock.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_stack_map.c
test_stacktrace_build_id.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_stacktrace_map.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_subprogs.c selftests/bpf: Add selftest for multi-prog sections and bpf-to-bpf calls 2020-09-03 17:14:40 -07:00
test_subprogs_unused.c selftests/bpf: Fix unused attribute usage in subprogs_unused test 2020-11-12 09:13:49 -08:00
test_sysctl_loop1.c selftests/bpf: Fix test_sysctl_loop{1, 2} failure due to clang change 2020-09-09 11:21:34 -07:00
test_sysctl_loop2.c selftests/bpf: Fix test_sysctl_loop{1, 2} failure due to clang change 2020-09-09 11:21:34 -07:00
test_sysctl_prog.c selftests/bpf: Define string const as global for test_sysctl_prog.c 2020-09-10 20:01:53 -07:00
test_tc_edt.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_tc_neigh.c bpf, selftests: Extend test_tc_redirect to use modified bpf_redirect_neigh() 2020-10-22 01:30:00 +02:00
test_tc_neigh_fib.c bpf, selftests: Extend test_tc_redirect to use modified bpf_redirect_neigh() 2020-10-22 01:30:00 +02:00
test_tc_peer.c bpf, selftests: Add redirect_peer selftest 2020-10-11 10:21:04 -07:00
test_tc_tunnel.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_tcp_check_syncookie_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_tcp_estats.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_tcp_hdr_options.c bpf: selftest: Ensure the child sk inherited all bpf_sock_ops_cb_flags 2020-10-02 11:34:48 -07:00
test_tcpbpf_kern.c bpf, selftests: Add tests to sock_ops for loading sk 2020-08-13 22:40:43 +02:00
test_tcpnotify_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_trace_ext.c selftests/bpf: Adding test for arg dereference in extension trace 2020-09-29 13:09:24 -07:00
test_trace_ext_tracing.c selftests/bpf: Adding test for arg dereference in extension trace 2020-09-29 13:09:24 -07:00
test_tracepoint.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_trampoline_count.c libbpf: Merge selftests' bpf_trace_helpers.h into libbpf's bpf_tracing.h 2020-03-02 16:25:14 -08:00
test_tunnel_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_varlen.c selftests/bpf: Make test_varlen work with 32-bit user-space arch 2020-08-13 16:45:41 -07:00
test_verif_scale1.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_verif_scale2.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_verif_scale3.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_vmlinux.c selftests/bpf: Fix test_vmlinux test to use bpf_probe_read_user() 2020-08-18 17:16:15 -07:00
test_xdp.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_xdp_adjust_tail_grow.c selftests/bpf: Xdp_adjust_tail add grow tail tests 2020-05-14 21:21:57 -07:00
test_xdp_adjust_tail_shrink.c selftests/bpf: Adjust BPF selftest for xdp_adjust_tail 2020-05-14 21:21:57 -07:00
test_xdp_bpf2bpf.c bpf: Add bpf_xdp_output() helper 2020-03-12 17:47:38 -07:00
test_xdp_devmap_helpers.c bpf: Selftests and tools use struct bpf_devmap_val from uapi 2020-06-09 11:36:19 -07:00
test_xdp_link.c selftests/bpf: Add BPF XDP link selftests 2020-07-25 20:37:02 -07:00
test_xdp_loop.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_xdp_meta.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_xdp_noinline.c selftests/bpf: Modernize xdp_noinline test w/ skeleton and __noinline 2020-09-03 17:14:40 -07:00
test_xdp_redirect.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_xdp_vlan.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_xdp_with_cpumap_helpers.c selftest: Add tests for XDP programs in CPUMAP entries 2020-07-16 17:00:32 +02:00
test_xdp_with_devmap_helpers.c libbpf: Adjust SEC short cut for expected attach type BPF_XDP_DEVMAP 2020-06-25 22:36:00 +02:00
trace_printk.c selftests/bpf: Add selftests verifying bpf_trace_printk() behaviour 2020-07-13 16:55:49 -07:00
trigger_bench.c selftests/bpf: Add sleepable tests 2020-08-28 21:20:33 +02:00
udp_limit.c selftests/bpf: Verify socket storage in cgroup/sock_{create, release} 2020-07-31 00:43:49 +02:00
xdp_dummy.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
xdp_redirect_map.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
xdp_tx.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
xdping_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00