diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2019-04-09 23:20:16 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-04-09 17:05:47 -0700 |
commit | fb2abb73e575b6fcb428f803faf928ef04d5bb1e (patch) | |
tree | cb15ca8b67f832fede7ec54d05a7d68664aa0591 /tools/testing/selftests/bpf/progs/test_global_data.c | |
parent | bpf: bpftool support for dumping data/bss/rodata sections (diff) | |
download | linux-dev-fb2abb73e575b6fcb428f803faf928ef04d5bb1e.tar.xz linux-dev-fb2abb73e575b6fcb428f803faf928ef04d5bb1e.zip |
bpf, selftest: test {rd, wr}only flags and direct value access
Extend test_verifier with various test cases around the two kernel
extensions, that is, {rd,wr}only map support as well as direct map
value access. All passing, one skipped due to xskmap not present
on test machine:
# ./test_verifier
[...]
#948/p XDP pkt read, pkt_meta' <= pkt_data, bad access 1 OK
#949/p XDP pkt read, pkt_meta' <= pkt_data, bad access 2 OK
#950/p XDP pkt read, pkt_data <= pkt_meta', good access OK
#951/p XDP pkt read, pkt_data <= pkt_meta', bad access 1 OK
#952/p XDP pkt read, pkt_data <= pkt_meta', bad access 2 OK
Summary: 1410 PASSED, 1 SKIPPED, 0 FAILED
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions