aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/async_stack_depth.c
diff options
context:
space:
mode:
authorDave Marchevsky <davemarchevsky@fb.com>2023-11-07 00:56:39 -0800
committerAlexei Starovoitov <ast@kernel.org>2023-11-09 19:07:51 -0800
commite9ed8df7187cfdce1075d0ee591544ac15d072f1 (patch)
treec234716003d73512a51a9e4e43b0a3cecf0c38ef /tools/testing/selftests/bpf/prog_tests/async_stack_depth.c
parent1b12171533a9bb23cf6fba7262b479028b65e1e8 (diff)
selftests/bpf: Test bpf_refcount_acquire of node obtained via direct ld
This patch demonstrates that verifier changes earlier in this series result in bpf_refcount_acquire(mapval->stashed_kptr) passing verification. The added test additionally validates that stashing a kptr in mapval and - in a separate BPF program - refcount_acquiring the kptr without unstashing works as expected at runtime. Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com> Link: https://lore.kernel.org/r/20231107085639.3016113-7-davemarchevsky@fb.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/async_stack_depth.c')
0 files changed, 0 insertions, 0 deletions