selftests/bpf: Test for map update access from within EXT programs
authorUdip Pant <udippant@fb.com>
Tue, 25 Aug 2020 23:20:03 +0000 (16:20 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 26 Aug 2020 19:47:56 +0000 (12:47 -0700)
commit1410620cf20e7e23cce17983e9a81af659b28583
tree9c85e9701630619b177f54108794bed961bd1b93
parent50d19736aff497a4c25ec7e36375195bfd8570cd
selftests/bpf: Test for map update access from within EXT programs

This adds further tests to ensure access permissions and restrictions
are applied properly for some map types such as sock-map.
It also adds another negative tests to assert static functions cannot be
replaced. In the 'unreliable' mode it still fails with error 'tracing progs
cannot use bpf_spin_lock yet' with the change in the verifier

Signed-off-by: Udip Pant <udippant@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200825232003.2877030-5-udippant@fb.com
tools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c
tools/testing/selftests/bpf/progs/freplace_attach_probe.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/freplace_cls_redirect.c [new file with mode: 0644]