aboutsummaryrefslogtreecommitdiff
path: root/kernel/bpf/stackmap.c
diff options
context:
space:
mode:
authorDave Marchevsky <[email protected]>2023-11-07 00:56:39 -0800
committerAlexei Starovoitov <[email protected]>2023-11-09 19:07:51 -0800
commite9ed8df7187cfdce1075d0ee591544ac15d072f1 (patch)
treec234716003d73512a51a9e4e43b0a3cecf0c38ef /kernel/bpf/stackmap.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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'kernel/bpf/stackmap.c')
0 files changed, 0 insertions, 0 deletions