diff options
author | Dave Marchevsky <davemarchevsky@fb.com> | 2023-11-07 09:56:35 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-11-10 04:07:51 +0100 |
commit | f460e7bdb027d1da93f0c5090b239889cd46a33d (patch) | |
tree | 463f36a4f1d9048c1710da3fe469a9dda318ae32 /kernel/bpf/helpers.c | |
parent | bpf: Add KF_RCU flag to bpf_refcount_acquire_impl (diff) | |
download | linux-f460e7bdb027d1da93f0c5090b239889cd46a33d.tar.xz linux-f460e7bdb027d1da93f0c5090b239889cd46a33d.zip |
selftests/bpf: Add test passing MAYBE_NULL reg to bpf_refcount_acquire
The test added in this patch exercises the logic fixed in the previous
patch in this series. Before the previous patch's changes,
bpf_refcount_acquire accepts MAYBE_NULL local kptrs; after the change
the verifier correctly rejects the such a call.
Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
Link: https://lore.kernel.org/r/20231107085639.3016113-3-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