linux/tools/testing/selftests/bpf/verifier
Martin KaFai Lau 7a9bb9762d bpf: Add verifier tests for the bpf_sk_storage
This patch adds verifier tests for the bpf_sk_storage:
1. ARG_PTR_TO_MAP_VALUE_OR_NULL
2. Map and helper compatibility (e.g. disallow bpf_map_loookup_elem)

It also takes this chance to remove the unused struct btf_raw_data
and uses the BTF encoding macros from "test_btf.h".

Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2019-04-27 09:07:05 -07:00
..
.gitignore
and.c
array_access.c bpf, selftest: test {rd, wr}only flags and direct value access 2019-04-09 17:05:47 -07:00
basic_call.c
basic_instr.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00
basic_stack.c
basic_stx_ldx.c
basic.c
bounds_deduction.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00
bounds_mix_sign_unsign.c
bounds.c
bpf_get_stack.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00
calls.c selftests/bpf: test case for invalid call stack in dead code 2019-03-26 13:02:16 -07:00
cfg.c
cgroup_inv_retcode.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00
cgroup_skb.c
cgroup_storage.c
const_or.c
ctx_sk_msg.c selftests/bpf: add "any alignment" annotation for some tests 2019-02-05 16:56:10 +01:00
ctx_skb.c selftests: bpf: remove duplicate .flags initialization in ctx_skb.c 2019-04-02 23:17:18 +02:00
ctx.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00
dead_code.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00
direct_packet_access.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00
direct_stack_access_wraparound.c
direct_value_access.c bpf, selftest: test {rd, wr}only flags and direct value access 2019-04-09 17:05:47 -07:00
div0.c
div_overflow.c
helper_access_var_len.c
helper_packet_access.c
helper_value_access.c
int_ptr.c selftests/bpf: Test ARG_PTR_TO_LONG arg type 2019-04-12 13:54:59 -07:00
jit.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00
jmp32.c selftests/bpf: add "any alignment" annotation for some tests 2019-02-05 16:56:10 +01:00
jset.c selftests/bpf: add "any alignment" annotation for some tests 2019-02-05 16:56:10 +01:00
jump.c
junk_insn.c
ld_abs.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00
ld_dw.c selftests/bpf: synthetic tests to push verifier limits 2019-04-04 01:27:38 +02:00
ld_imm64.c bpf: fix replace_map_fd_with_map_ptr's ldimm64 second imm field 2019-03-07 08:47:13 -08:00
ld_ind.c
leak_ptr.c
lwt.c
map_in_map.c
map_ptr_mixing.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00
map_ret_val.c
masking.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00
meta_access.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00
perf_event_sample_period.c
prevent_map_lookup.c
raw_stack.c
raw_tp_writable.c selftests: bpf: test writable buffers in raw tps 2019-04-26 19:04:19 -07:00
ref_tracking.c selftests/bpf: test references to sock_common 2019-03-21 18:59:11 -07:00
runtime_jit.c
scale.c selftests/bpf: two scale tests 2019-04-16 10:18:15 +02:00
search_pruning.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00
sock.c bpf: Add verifier tests for the bpf_sk_storage 2019-04-27 09:07:05 -07:00
spill_fill.c selftests/bpf: add "any alignment" annotation for some tests 2019-02-05 16:56:10 +01:00
spin_lock.c selftests/bpf: add "any alignment" annotation for some tests 2019-02-05 16:56:10 +01:00
stack_ptr.c
uninit.c
unpriv.c selftests/bpf: allow specifying helper for BPF_SK_LOOKUP 2019-03-21 18:59:11 -07:00
value_adj_spill.c
value_illegal_alu.c
value_or_null.c
value_ptr_arith.c bpf: add test cases for non-pointer sanitiation logic 2019-03-04 10:54:20 +01:00
value.c
var_off.c selftests/bpf: Test unbounded var_off stack access 2019-04-05 16:50:08 +02:00
xadd.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00
xdp_direct_packet_access.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00
xdp.c selftests: bpf: break up the rest of test_verifier 2019-01-27 21:37:45 -08:00