selftests/bpf: Add test to access int ptr argument in tracing program
authorJiri Olsa <jolsa@redhat.com>
Wed, 8 Dec 2021 19:32:42 +0000 (20:32 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 13 Dec 2021 17:24:22 +0000 (09:24 -0800)
commit2b070c2bc885977ca8fe76ba8f6b9d73d8d20e39
tree0e88fc1b311d784d927c307fe684853c62a11f01
parentbb6728d756112596881a5fdf2040544031905840
selftests/bpf: Add test to access int ptr argument in tracing program

Adding verifier test for accessing int pointer argument in
tracing programs.

The test program loads 2nd argument of bpf_modify_return_test
function which is int pointer and checks that verifier allows
that.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211208193245.172141-3-jolsa@kernel.org
tools/testing/selftests/bpf/verifier/btf_ctx_access.c [new file with mode: 0644]