diff options
| author | Benjamin Tissoires <[email protected]> | 2022-09-06 15:13:00 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-09-07 18:04:27 +0000 |
| commit | fb66223a244f252273995557b23e0fa53092e92c (patch) | |
| tree | dcf688c426b2db8ce56f2b755be5f0e7c50b2d38 /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c | |
| parent | bpf/verifier: allow all functions to read user provided context (diff) | |
| download | kernel-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
