diff options
author | 2023-11-07 00:56:39 -0800 | |
---|---|---|
committer | 2023-11-09 19:07:51 -0800 | |
commit | e9ed8df7187cfdce1075d0ee591544ac15d072f1 (patch) | |
tree | c234716003d73512a51a9e4e43b0a3cecf0c38ef /kernel/bpf/helpers.c | |
parent | bpf: Mark direct ld of stashed bpf_{rb,list}_node as non-owning ref (diff) | |
download | linux-rng-e9ed8df7187cfdce1075d0ee591544ac15d072f1.tar.xz linux-rng-e9ed8df7187cfdce1075d0ee591544ac15d072f1.zip |
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 'kernel/bpf/helpers.c')
0 files changed, 0 insertions, 0 deletions