linux/tools/testing/selftests/bpf/prog_tests
Kumar Kartikeya Dwivedi 2706053173 bpf: Rework process_dynptr_func
Recently, user ringbuf support introduced a PTR_TO_DYNPTR register type
for use in callback state, because in case of user ringbuf helpers,
there is no dynptr on the stack that is passed into the callback. To
reflect such a state, a special register type was created.

However, some checks have been bypassed incorrectly during the addition
of this feature. First, for arg_type with MEM_UNINIT flag which
initialize a dynptr, they must be rejected for such register type.
Secondly, in the future, there are plans to add dynptr helpers that
operate on the dynptr itself and may change its offset and other
properties.

In all of these cases, PTR_TO_DYNPTR shouldn't be allowed to be passed
to such helpers, however the current code simply returns 0.

The rejection for helpers that release the dynptr is already handled.

For fixing this, we take a step back and rework existing code in a way
that will allow fitting in all classes of helpers and have a coherent
model for dealing with the variety of use cases in which dynptr is used.

First, for ARG_PTR_TO_DYNPTR, it can either be set alone or together
with a DYNPTR_TYPE_* constant that denotes the only type it accepts.

Next, helpers which initialize a dynptr use MEM_UNINIT to indicate this
fact. To make the distinction clear, use MEM_RDONLY flag to indicate
that the helper only operates on the memory pointed to by the dynptr,
not the dynptr itself. In C parlance, it would be equivalent to taking
the dynptr as a point to const argument.

When either of these flags are not present, the helper is allowed to
mutate both the dynptr itself and also the memory it points to.
Currently, the read only status of the memory is not tracked in the
dynptr, but it would be trivial to add this support inside dynptr state
of the register.

With these changes and renaming PTR_TO_DYNPTR to CONST_PTR_TO_DYNPTR to
better reflect its usage, it can no longer be passed to helpers that
initialize a dynptr, i.e. bpf_dynptr_from_mem, bpf_ringbuf_reserve_dynptr.

A note to reviewers is that in code that does mark_stack_slots_dynptr,
and unmark_stack_slots_dynptr, we implicitly rely on the fact that
PTR_TO_STACK reg is the only case that can reach that code path, as one
cannot pass CONST_PTR_TO_DYNPTR to helpers that don't set MEM_RDONLY. In
both cases such helpers won't be setting that flag.

The next patch will add a couple of selftest cases to make sure this
doesn't break.

Fixes: 2057156738 ("bpf: Add bpf_user_ringbuf_drain() helper")
Acked-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20221207204141.308952-4-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2022-12-08 18:25:31 -08:00
..
.gitignore
align.c selftests/bpf: make test_align selftest more robust 2022-11-04 11:51:45 -07:00
arg_parsing.c selftests/bpf: Improve by-name subtest selection logic in prog_tests 2022-04-10 20:08:20 -07:00
atomic_bounds.c
atomics.c bpf, selftests: Use raw_tp program for atomic test 2022-02-28 16:28:40 +01:00
attach_probe.c selftests/bpf: Few fixes for selftests/bpf built in release mode 2022-08-17 22:43:58 +02:00
autoattach.c selftests/bpf: Tests libbpf autoattach APIs 2022-08-17 09:42:07 -07:00
autoload.c
bind_perm.c bpf: selftests: Remove libcap usage from test_progs 2022-03-16 15:07:49 -07:00
bloom_filter_map.c
bpf_cookie.c selftests/bpf: Few fixes for selftests/bpf built in release mode 2022-08-17 22:43:58 +02:00
bpf_iter.c selftests/bpf: Add write to hashmap to array_map iter test 2022-10-21 19:23:34 -07:00
bpf_iter_setsockopt.c
bpf_iter_setsockopt_unix.c selftest/bpf: Test batching and bpf_(get|set)sockopt in bpf unix iter. 2022-01-18 15:45:06 -08:00
bpf_loop.c selftests/bpf: BPF test_prog selftests for bpf_loop inlining 2022-06-20 17:40:52 -07:00
bpf_mod_race.c selftests/bpf: Refactor prog_tests logging and test execution 2022-04-18 21:22:13 -07:00
bpf_nf.c selftests/bpf: S/iptables/iptables-legacy/ in the bpf_nf and xdp_synproxy test 2022-10-13 08:03:04 -07:00
bpf_obj_id.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
bpf_tcp_ca.c selftests/bpf: Check -EBUSY for the recurred bpf_setsockopt(TCP_CONGESTION) 2022-09-29 09:25:47 -07:00
bpf_verif_scale.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
btf.c selftests/bpf: Add reproducer for decl_tag in func_proto argument 2022-11-24 00:50:06 +01:00
btf_dedup_split.c selftests/bpf: Tests for btf_dedup_resolve_fwds 2022-11-09 20:45:21 -08:00
btf_dump.c selftests/bpf: Test skops->skb_hwtstamp 2022-11-11 13:18:36 -08:00
btf_endian.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
btf_map_in_map.c
btf_module.c
btf_skc_cls_ingress.c selftests/bpf: Avoid pinning prog when attaching to tc ingress in btf_skc_cls_ingress 2022-11-30 22:47:43 +01:00
btf_split.c
btf_tag.c selftests/bpf: Add a test for btf_type_tag "percpu" 2022-03-05 18:39:51 -08:00
btf_write.c selftests/bpf: Test new enum kflag and enum64 API functions 2022-06-07 10:20:43 -07:00
cb_refs.c selftests/bpf: Add tests for reference state fixes for callbacks 2022-08-24 17:54:40 -07:00
cg_storage_multi.c
cgroup_attach_autodetach.c selftests/bpf: Clean up array_size.cocci warnings 2022-03-15 17:03:10 +01:00
cgroup_attach_multi.c selftests/bpf: Clean up array_size.cocci warnings 2022-03-15 17:03:10 +01:00
cgroup_attach_override.c selftests/bpf: Clean up array_size.cocci warnings 2022-03-15 17:03:10 +01:00
cgroup_getset_retval.c selftests/bpf: Make sure bpf_{g,s}et_retval is exposed everywhere 2022-08-23 16:08:22 -07:00
cgroup_hierarchical_stats.c selftests/bpf: Simplify cgroup_hierarchical_stats selftest 2022-09-23 13:59:08 -07:00
cgroup_iter.c selftests/bpf: Add test for cgroup iterator on a dead cgroup 2022-11-21 17:40:42 +01:00
cgroup_link.c selftests/bpf: Adapt cgroup effective query uapi change 2022-09-21 10:57:13 -07:00
cgroup_skb_sk_lookup.c
cgroup_v1v2.c
cgrp_kfunc.c selftests/bpf: Add selftests for bpf_cgroup_ancestor() kfunc 2022-11-22 14:45:41 -08:00
cgrp_local_storage.c bpf: Add sleepable prog tests for cgrp local storage 2022-12-04 16:51:18 -08:00
check_mtu.c selftests/bpf: Migrate from bpf_prog_test_run_xattr 2022-02-02 22:31:18 -08:00
cls_redirect.c selftests/bpf: Migrate from bpf_prog_test_run_xattr 2022-02-02 22:31:18 -08:00
connect_force_port.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
connect_ping.c selftests/bpf: Ensure cgroup/connect{4,6} programs can bind unpriv ICMP ping 2022-09-09 10:40:45 -07:00
core_autosize.c selftests/bpf: Convert some selftests to high-level BPF map APIs 2022-05-13 15:15:21 +02:00
core_extern.c selftests/bpf: add test of __weak unknown virtual __kconfig extern 2022-07-19 09:33:18 -07:00
core_kern.c selftests/bpf: Test bpf_core_types_are_compat() functionality. 2022-02-04 11:29:01 -08:00
core_kern_overflow.c selftests/bpf: Test bpf_core_types_are_compat() functionality. 2022-02-04 11:29:01 -08:00
core_read_macros.c
core_reloc.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
core_retro.c selftests/bpf: Convert some selftests to high-level BPF map APIs 2022-05-13 15:15:21 +02:00
cpu_mask.c
custom_sec_handlers.c selftests/bpf: Add custom SEC() handling selftest 2022-03-05 09:38:15 -08:00
d_path.c bpf, selftests: Add ringbuf memory type confusion test 2022-01-19 01:27:03 +01:00
deny_namespace.c selftests/bpf: Add tests verifying bpf lsm userns_create hook 2022-08-16 17:39:59 -04:00
dummy_st_ops.c bpf: selftests: Test fentry tracing a struct_ops program 2022-03-30 19:31:30 -07:00
dynptr.c selftests/bpf: convert dynptr_fail and map_kptr_fail subtests to generic tester 2022-12-07 17:01:22 -08:00
empty_skb.c selftests/bpf: Remove serial from tests using {open,close}_netns 2022-11-30 22:47:43 +01:00
enable_stats.c
endian.c
exhandler.c
fentry_fexit.c selftests/bpf: Migrate from bpf_prog_test_run 2022-02-02 22:31:18 -08:00
fentry_test.c selftests/bpf: Migrate from bpf_prog_test_run 2022-02-02 22:31:18 -08:00
fexit_bpf2bpf.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
fexit_sleep.c
fexit_stress.c selftests/bpf: Fix test_run logic in fexit_stress.c 2022-06-02 16:26:40 -07:00
fexit_test.c selftests/bpf: Migrate from bpf_prog_test_run 2022-02-02 22:31:18 -08:00
find_vma.c Improve stability of find_vma BPF test 2022-03-08 17:39:29 -08:00
flow_dissector.c bpf, selftests: Test BPF_FLOW_DISSECTOR_CONTINUE 2022-08-23 22:48:12 +02:00
flow_dissector_load_bytes.c bpf, test_run: Propagate bpf_flow_dissect's retval to user's bpf_attr.test.retval 2022-08-23 22:48:03 +02:00
flow_dissector_reattach.c
for_each.c selftests/bpf: Convert some selftests to high-level BPF map APIs 2022-05-13 15:15:21 +02:00
get_branch_snapshot.c
get_func_args_test.c selftests/bpf: Migrate from bpf_prog_test_run 2022-02-02 22:31:18 -08:00
get_func_ip_test.c selftests/bpf: Fix get_func_ip offset test for CONFIG_X86_KERNEL_IBT 2022-09-26 20:30:40 -07:00
get_stack_raw_tp.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
get_stackid_cannot_attach.c selftests/bpf: use preferred setter/getter APIs instead of deprecated ones 2022-01-25 17:59:07 -08:00
global_data.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
global_data_init.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
global_func_args.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
hash_large_key.c
hashmap.c libbpf: Hashmap interface update to allow both long and void* keys/values 2022-11-09 20:45:14 -08:00
helper_restricted.c selftests/bpf: Use non-autoloaded programs in few tests 2022-04-19 13:48:20 -07:00
htab_update.c selftests/bpf: Add test cases for htab update 2022-08-31 14:10:01 -07:00
kfree_skb.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
kfunc_call.c selftests/bpf: Add tests for kfunc returning a memory pointer 2022-09-07 11:05:17 -07:00
kfunc_dynptr_param.c bpf: Refactor ARG_PTR_TO_DYNPTR checks into process_dynptr_func 2022-12-08 18:25:31 -08:00
kprobe_multi_test.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-11-29 13:04:52 -08:00
kprobe_multi_testmod_test.c selftests/bpf: Add kprobe_multi kmod attach api tests 2022-10-25 10:14:51 -07:00
ksyms.c
ksyms_btf.c selftests/bpf: Test passing rdonly mem to global func 2022-04-06 10:32:12 -07:00
ksyms_module.c selftests/bpf: Do not export subtest as standalone test 2022-02-08 21:17:34 +01:00
l4lb_all.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
legacy_printk.c
libbpf_get_fd_by_id_opts.c selftests/bpf: Add tests for _opts variants of bpf_*_get_fd_by_id() 2022-10-10 16:49:43 -07:00
libbpf_probes.c selftests/bpf: Add libbpf feature-probing API selftests 2021-12-17 23:11:13 +01:00
libbpf_str.c selftests/bpf: Fix test test_libbpf_str/bpf_map_type_str 2022-10-25 23:19:19 -07:00
link_pinning.c
linked_funcs.c selftests/bpf: Add CO-RE relos and SEC("?...") to linked_funcs selftests 2022-04-26 15:41:46 -07:00
linked_list.c selftests/bpf: Workaround for llvm nop-4 bug 2022-11-22 13:34:08 -08:00
linked_maps.c
linked_vars.c
load_bytes_relative.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
log_buf.c bpf: Small BPF verifier log improvements 2022-03-03 16:54:10 +01:00
log_fixup.c selftests/bpf: Test bpf_map__set_autocreate() and related log fixup logic 2022-04-28 20:03:29 -07:00
lookup_and_delete.c selftests/bpf: Convert some selftests to high-level BPF map APIs 2022-05-13 15:15:21 +02:00
lookup_key.c selftests/bpf: Add additional tests for bpf_lookup_*_key() 2022-09-21 17:33:42 -07:00
lru_bug.c selftests/bpf: Add test for prealloc_lru_pop bug 2022-08-09 18:46:11 -07:00
lsm_cgroup.c selftests/bpf: fix memory leak of lsm_cgroup 2022-11-16 23:00:56 -08:00
map_init.c
map_kptr.c selftests/bpf: convert dynptr_fail and map_kptr_fail subtests to generic tester 2022-12-07 17:01:22 -08:00
map_lock.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
map_lookup_percpu_elem.c selftests/bpf: Fix some bugs in map_lookup_percpu_elem testcase 2022-05-20 15:07:41 -07:00
map_ptr.c selftests/bpf: Migrate from bpf_prog_test_run 2022-02-02 22:31:18 -08:00
metadata.c
migrate_reuseport.c
mmap.c
modify_return.c selftests/bpf: Migrate from bpf_prog_test_run 2022-02-02 22:31:18 -08:00
module_attach.c selftests/bpf: Add kprobe_multi check to module attach test 2022-10-25 10:14:51 -07:00
mptcp.c selftests/bpf: Verify first of struct mptcp_sock 2022-05-20 15:36:48 -07:00
netcnt.c selftests/bpf: Use bpf_num_possible_cpus() in per-cpu map allocations 2022-04-06 10:15:53 -07:00
netns_cookie.c
ns_current_pid_tgid.c
obj_name.c selftests/bpf: Clean up array_size.cocci warnings 2022-03-15 17:03:10 +01:00
pe_preserve_elems.c
perf_branches.c Improve perf related BPF tests (sample_freq issue) 2022-03-08 17:39:28 -08:00
perf_buffer.c
perf_event_stackmap.c
perf_link.c Improve perf related BPF tests (sample_freq issue) 2022-03-08 17:39:28 -08:00
pinning.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
pkt_access.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
pkt_md_access.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
probe_read_user_str.c
probe_user.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
prog_array_init.c
prog_run_opts.c selftests/bpf: Migrate from bpf_prog_test_run_xattr 2022-02-02 22:31:18 -08:00
prog_tests_framework.c selftests/bpf: Refactor prog_tests logging and test execution 2022-04-18 21:22:13 -07:00
queue_stack_map.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
raw_tp_test_run.c selftests/bpf: Migrate from bpf_prog_test_run_xattr 2022-02-02 22:31:18 -08:00
raw_tp_writable_reject_nbd_invalid.c
raw_tp_writable_test_run.c selftests/bpf: Migrate from bpf_prog_test_run 2022-02-02 22:31:18 -08:00
rcu_read_lock.c selftests/bpf: Add tests for bpf_rcu_read_lock() 2022-11-24 12:54:34 -08:00
rdonly_maps.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
recursion.c
reference_tracking.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
resolve_btfids.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
ringbuf.c selftests/bpf: Add test verifying bpf_ringbuf_reserve retval use in map ops 2022-10-21 19:23:34 -07:00
ringbuf_multi.c selftests/bpf: test eager BPF ringbuf size adjustment logic 2022-07-19 10:01:20 -07:00
section_names.c
select_reuseport.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
send_signal.c selftests/bpf: Bump internal send_signal/send_signal_tracepoint timeout 2022-07-29 11:10:01 -07:00
send_signal_sched_switch.c
setget_sockopt.c selftests/bpf: bpf_setsockopt tests 2022-08-18 17:06:14 -07:00
signal_pending.c selftests/bpf: Migrate from bpf_prog_test_run 2022-02-02 22:31:18 -08:00
sk_assign.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
sk_lookup.c selftests/bpf: Remove explicit setrlimit(RLIMIT_MEMLOCK) in main selftests 2021-12-14 22:16:54 +01:00
sk_storage_tracing.c
skb_ctx.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
skb_helpers.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
skb_load_bytes.c selftests/bpf: Add test for skb_load_bytes 2022-04-20 23:48:34 +02:00
skc_to_unix_sock.c
skeleton.c libbpf: add non-mmapable data section selftest 2022-10-19 16:40:45 -07:00
snprintf.c selftests/bpf: Drop duplicate max/min definitions 2022-04-11 17:18:09 +02:00
snprintf_btf.c
sock_fields.c selftests/bpf: Fix rare segfault in sock_fields prog test 2022-06-23 10:52:12 -07:00
socket_cookie.c
sockmap_basic.c selftests/bpf: Convert sockmap_basic test to ASSERT_* macros 2022-09-28 17:33:07 -07:00
sockmap_ktls.c selftests/bpf: Convert sockmap_ktls test to ASSERT_* macros 2022-09-28 17:33:21 -07:00
sockmap_listen.c selftests/bpf: Stop using bpf_map__def() API 2022-01-12 17:01:38 -08:00
sockopt.c selftests/bpf: Convert sockopt test to ASSERT_* macros 2022-09-28 17:33:29 -07:00
sockopt_inherit.c selftests/bpf: Convert sockopt_inherit test to ASSERT_* macros 2022-09-28 17:33:38 -07:00
sockopt_multi.c selftests/bpf: Convert sockopt_multi test to ASSERT_* macros 2022-09-28 17:33:47 -07:00
sockopt_qos_to_cc.c
sockopt_sk.c selftests/bpf: Convert sockopt_sk test to ASSERT_* macros 2022-09-28 17:33:53 -07:00
spin_lock.c selftests/bpf: Skip spin lock failure test on s390x 2022-11-18 12:17:54 -08:00
stack_var_off.c
stacktrace_build_id.c selftests/bpf: Convert some selftests to high-level BPF map APIs 2022-05-13 15:15:21 +02:00
stacktrace_build_id_nmi.c selftests/bpf: Convert some selftests to high-level BPF map APIs 2022-05-13 15:15:21 +02:00
stacktrace_map.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
stacktrace_map_raw_tp.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
stacktrace_map_skip.c selftests/bpf: Test skipping stacktrace 2022-03-20 19:16:50 -07:00
static_linked.c
subprogs.c selftests/bpf: Test subprog jit when toggle bpf_jit_harden repeatedly 2022-03-16 15:13:36 -07:00
subskeleton.c selftests/bpf: Test subskeleton functionality 2022-03-17 23:12:48 -07:00
syscall.c selftests/bpf: Migrate from bpf_prog_test_run_xattr 2022-02-02 22:31:18 -08:00
tailcalls.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
task_fd_query_rawtp.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
task_fd_query_tp.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
task_kfunc.c bpf: Do not mark certain LSM hook arguments as trusted 2022-12-04 12:59:58 -08:00
task_local_storage.c selftests/bpf: Tracing prog can still do lookup under busy lock 2022-10-25 23:11:47 -07:00
task_pt_regs.c selftests/bpf: Few fixes for selftests/bpf built in release mode 2022-08-17 22:43:58 +02:00
tc_bpf.c
tc_redirect.c selftests/bpf: Remove serial from tests using {open,close}_netns 2022-11-30 22:47:43 +01:00
tcp_estats.c selftests/bpf: Convert tcp_estats test to ASSERT_* macros 2022-09-28 17:33:59 -07:00
tcp_hdr_options.c selftests/bpf: Test skops->skb_hwtstamp 2022-11-11 13:18:36 -08:00
tcp_rtt.c selftests/bpf: Convert tcp_rtt test to ASSERT_* macros 2022-09-28 17:34:09 -07:00
tcpbpf_user.c selftests/bpf: Convert tcpbpf_user test to ASSERT_* macros 2022-09-28 17:34:14 -07:00
test_bpf_syscall_macro.c selftests/bpf: Test BPF_KPROBE_SYSCALL macro 2022-02-08 21:45:06 -08:00
test_bpffs.c
test_bprm_opts.c selftests/bpf: Move sys_pidfd_open() into task_local_storage_helpers.h 2022-09-01 12:16:20 -07:00
test_global_funcs.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
test_ima.c selftests/bpf: Check that bpf_kernel_read_file() denies reading IMA policy 2022-03-10 18:57:55 -08:00
test_local_storage.c selftests/bpf: Move sys_pidfd_open() into task_local_storage_helpers.h 2022-09-01 12:16:20 -07:00
test_lsm.c
test_overhead.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
test_profiler.c selftests/bpf: Migrate from bpf_prog_test_run_xattr 2022-02-02 22:31:18 -08:00
test_skb_pkt_end.c selftests/bpf: Migrate from bpf_prog_test_run 2022-02-02 22:31:18 -08:00
test_strncmp.c selftests/bpf: Use non-autoloaded programs in few tests 2022-04-19 13:48:20 -07:00
test_tunnel.c selftests/bpf: Remove serial from tests using {open,close}_netns 2022-11-30 22:47:43 +01:00
time_tai.c selftests/bpf: Add BPF-helper test for CLOCK_TAI access 2022-08-09 09:47:13 -07:00
timer.c selftests/bpf: Migrate from bpf_prog_test_run 2022-02-02 22:31:18 -08:00
timer_crash.c selftests/bpf: Add test for bpf_timer overwriting crash 2022-02-11 13:13:04 -08:00
timer_mim.c selftests/bpf: Convert some selftests to high-level BPF map APIs 2022-05-13 15:15:21 +02:00
tp_attach_query.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
trace_ext.c selftests/bpf: Migrate from bpf_prog_test_run 2022-02-02 22:31:18 -08:00
trace_printk.c
trace_vprintk.c
tracing_struct.c selftests/bpf: Fix memory leak caused by not destroying skeleton 2022-10-13 10:53:22 -07:00
trampoline_count.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
type_cast.c bpf: Add type cast unit tests 2022-11-20 15:45:48 -08:00
udp_limit.c selftests/bpf: Convert udp_limit test to ASSERT_* macros 2022-09-28 17:34:19 -07:00
unpriv_bpf_disabled.c selftests/bpf: Fix spelling mistake: "unpriviliged" -> "unprivileged" 2022-05-23 21:59:57 +02:00
uprobe_autoattach.c selftests/bpf: Fix prog_tests uprobe_autoattach compilation error 2022-04-21 18:48:04 +02:00
usdt.c selftests/bpf: Fix few more compiler warnings 2022-07-06 16:46:14 +02:00
user_ringbuf.c bpf: Rework process_dynptr_func 2022-12-08 18:25:31 -08:00
varlen.c selftests: bpf: Add a test when bpf_probe_read_kernel_str() returns EFAULT 2022-11-11 11:44:46 -08:00
verif_stats.c
verify_pkcs7_sig.c selftests/bpf: Add test for bpf_verify_pkcs7_signature() kfunc 2022-09-21 17:33:42 -07:00
vmlinux.c
xdp.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
xdp_adjust_frags.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
xdp_adjust_tail.c selftest/bpf: Fix error usage of ASSERT_OK in xdp_adjust_tail.c 2022-10-13 10:53:30 -07:00
xdp_attach.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
xdp_bonding.c
xdp_bpf2bpf.c selftests/bpf: Migrate from bpf_prog_test_run 2022-02-02 22:31:18 -08:00
xdp_context_test_run.c
xdp_cpumap_attach.c selftests/bpf: Do not export subtest as standalone test 2022-02-08 21:17:34 +01:00
xdp_devmap_attach.c selftests/bpf: Do not export subtest as standalone test 2022-02-08 21:17:34 +01:00
xdp_do_redirect.c selftests/bpf: Remove serial from tests using {open,close}_netns 2022-11-30 22:47:43 +01:00
xdp_info.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
xdp_link.c selftests/bpf: Redo the switch to new libbpf XDP APIs 2022-02-03 16:32:25 +01:00
xdp_noinline.c selftests/bpf: Migrate from bpf_prog_test_run 2022-02-02 22:31:18 -08:00
xdp_perf.c selftests/bpf: Store BPF object files with .bpf.o extension 2022-09-02 15:55:37 +02:00
xdp_synproxy.c selftests/bpf: Remove serial from tests using {open,close}_netns 2022-11-30 22:47:43 +01:00
xdpwall.c
xfrm_info.c selftests/bpf: add xfrm_info tests 2022-12-05 22:54:23 -08:00