aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/.gitignore
diff options
context:
space:
mode:
authorStanislav Fomichev <sdf@google.com>2019-06-27 13:38:51 -0700
committerAlexei Starovoitov <ast@kernel.org>2019-06-27 15:25:17 -0700
commit9ec8a4c9489dc6fac324f8adb76fc182be119389 (patch)
tree2686c49079541d12b4572b5f5a488bab68a738ac /tools/testing/selftests/bpf/.gitignore
parentselftests/bpf: test sockopt section name (diff)
downloadlinux-dev-9ec8a4c9489dc6fac324f8adb76fc182be119389.tar.xz
linux-dev-9ec8a4c9489dc6fac324f8adb76fc182be119389.zip
selftests/bpf: add sockopt test
Add sockopt selftests: * require proper expected_attach_type * enforce context field read/write access * test bpf_sockopt_handled handler * test EPERM * test limiting optlen from getsockopt * test out-of-bounds access v9: * add tests for setsockopt argument mangling v7: * remove return 2; test retval=0 and optlen=-1 v3: * use DW for optval{,_end} loads v2: * use return code 2 for kernel bypass Cc: Andrii Nakryiko <andriin@fb.com> Cc: Martin Lau <kafai@fb.com> Signed-off-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/.gitignore')
-rw-r--r--tools/testing/selftests/bpf/.gitignore1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/.gitignore b/tools/testing/selftests/bpf/.gitignore
index 7470327edcfe..3fe92601223d 100644
--- a/tools/testing/selftests/bpf/.gitignore
+++ b/tools/testing/selftests/bpf/.gitignore
@@ -39,3 +39,4 @@ libbpf.so.*
test_hashmap
test_btf_dump
xdping
+test_sockopt