aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <[email protected]>2022-09-06 15:13:00 +0000
committerAlexei Starovoitov <[email protected]>2022-09-07 18:04:27 +0000
commitfb66223a244f252273995557b23e0fa53092e92c (patch)
treedcf688c426b2db8ce56f2b755be5f0e7c50b2d38 /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c
parentbpf/verifier: allow all functions to read user provided context (diff)
downloadkernel-fb66223a244f252273995557b23e0fa53092e92c.tar.gz
kernel-fb66223a244f252273995557b23e0fa53092e92c.zip
selftests/bpf: add test for accessing ctx from syscall program type
We need to also export the kfunc set to the syscall program type, and then add a couple of eBPF programs that are testing those calls. The first one checks for valid access, and the second one is OK from a static analysis point of view but fails at run time because we are trying to access outside of the allocated memory. Signed-off-by: Benjamin Tissoires <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c')
0 files changed, 0 insertions, 0 deletions