aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorStanislav Fomichev <[email protected]>2019-06-27 20:38:51 +0000
committerAlexei Starovoitov <[email protected]>2019-06-27 22:25:17 +0000
commit9ec8a4c9489dc6fac324f8adb76fc182be119389 (patch)
tree2686c49079541d12b4572b5f5a488bab68a738ac /tools/bpf/bpftool/prog.c
parentselftests/bpf: test sockopt section name (diff)
downloadkernel-9ec8a4c9489dc6fac324f8adb76fc182be119389.tar.gz
kernel-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 <[email protected]> Cc: Martin Lau <[email protected]> Signed-off-by: Stanislav Fomichev <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions