aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorYiFei Zhu <[email protected]>2020-06-10 18:41:40 +0000
committerDaniel Borkmann <[email protected]>2020-06-11 14:05:56 +0000
commitbd6fecb9a99cceb949271c1821cfbad2b2db97c6 (patch)
treef2cec2a7c3a8a2ef84b143e61225c440d12e1259 /tools/perf/scripts/python/failed-syscalls-by-pid.py
parentnet/filter: Permit reading NET in load_bytes_relative when MAC not set (diff)
downloadkernel-bd6fecb9a99cceb949271c1821cfbad2b2db97c6.tar.gz
kernel-bd6fecb9a99cceb949271c1821cfbad2b2db97c6.zip
selftests/bpf: Add cgroup_skb/egress test for load_bytes_relative
When cgroup_skb/egress triggers the MAC header is not set. Added a test that asserts reading MAC header is a -EFAULT but NET header succeeds. The test result from within the eBPF program is stored in an 1-element array map that the userspace then reads and asserts on. Another assertion is added that reading from a large offset, past the end of packet, returns -EFAULT. Signed-off-by: YiFei Zhu <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Stanislav Fomichev <[email protected]> Link: https://lore.kernel.org/bpf/9028ccbea4385a620e69c0a104f469ffd655c01e.1591812755.git.zhuyifei@google.com
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions