mirror-linux/tools/testing/selftests/bpf/verifier
Feng Zhou 75dcef8d36 selftests/bpf: Add test to access u32 ptr argument in tracing program
Adding verifier test for accessing u32 pointer argument in
tracing programs.

The test program loads 1nd argument of bpf_fentry_test9 function
which is u32 pointer and checks that verifier allows that.

Co-developed-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Feng Zhou <zhoufeng.zf@bytedance.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/20230410085908.98493-3-zhoufeng.zf@bytedance.com
2023-04-11 20:29:49 +02:00
..
.gitignore
atomic_and.c
atomic_bounds.c
atomic_cmpxchg.c
atomic_fetch.c
atomic_fetch_add.c
atomic_invalid.c
atomic_or.c
atomic_xchg.c
atomic_xor.c
basic.c
basic_call.c
basic_instr.c
basic_stx_ldx.c
bounds.c selftests/bpf: Rewrite two infinite loops in bound check cases 2023-03-29 17:26:09 -07:00
bpf_get_stack.c
bpf_loop_inline.c selftests/bpf: Fix test_verifier failed test in unprivileged mode 2022-07-21 21:03:25 -07:00
bpf_st_mem.c selftests/bpf: check if BPF_ST with variable offset preserves STACK_ZERO 2023-02-15 11:48:48 -08:00
btf_ctx_access.c selftests/bpf: Add test to access u32 ptr argument in tracing program 2023-04-11 20:29:49 +02:00
calls.c bpf: Treat KF_RELEASE kfuncs as KF_TRUSTED_ARGS 2023-03-25 16:56:22 -07:00
ctx.c bpf: allow ctx writes using BPF_ST_MEM instruction 2023-03-03 21:41:46 -08:00
ctx_sk_lookup.c
ctx_skb.c
d_path.c
dead_code.c
direct_packet_access.c selftests/bpf: test cases for regsafe() bug skipping check_id() 2022-12-10 13:20:52 -08:00
direct_value_access.c
event_output.c
jeq_infer_not_null.c selftests/bpf: check nullness propagation for reg to reg comparisons 2022-11-15 17:38:36 -08:00
jit.c bpf: add selftests for lsh, rsh, arsh with reg operand 2022-10-19 16:53:51 -07:00
jmp32.c
jset.c
jump.c
junk_insn.c
ld_abs.c
ld_dw.c
ld_imm64.c
loops1.c
lwt.c
map_in_map.c
map_kptr.c bpf: Introduce kptr_rcu. 2023-03-03 17:42:20 +01:00
map_ptr_mixing.c
perf_event_sample_period.c
precise.c selftests/bpf: Add regression test for pruning fix 2022-08-25 12:07:45 -07:00
prevent_map_lookup.c
ref_tracking.c bpf: Treat KF_RELEASE kfuncs as KF_TRUSTED_ARGS 2023-03-25 16:56:22 -07:00
regalloc.c
runtime_jit.c
scale.c
search_pruning.c bpf: Allow reads from uninit stack 2023-02-22 12:34:50 -08:00
sleepable.c bpf: Allow BPF_PROG_TYPE_STRUCT_OPS programs to be sleepable 2023-01-25 10:25:57 -08:00
sock.c bpf: Allow reads from uninit stack 2023-02-22 12:34:50 -08:00
spin_lock.c selftests/bpf: test case for relaxed prunning of active_lock.id 2022-12-10 13:36:22 -08:00
subreg.c
unpriv.c selftests/bpf: test if pointer type is tracked for BPF_ST_MEM 2023-03-03 21:41:46 -08:00
value_illegal_alu.c
value_ptr_arith.c
wide_access.c