diff options
author | Alexei Starovoitov <ast@kernel.org> | 2023-03-21 23:38:52 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2023-03-22 19:31:05 +0300 |
commit | 1057d299459657b85e593a4b6294a000f920672a (patch) | |
tree | e962571e8ea2ef312a9b9584abac83db3ee98fa5 /tools/lib/bpf/libbpf.c | |
parent | a18f721415b4d4edea23cb8c7d6276330302af14 (diff) | |
download | linux-1057d299459657b85e593a4b6294a000f920672a.tar.xz |
bpf: Teach the verifier to recognize rdonly_mem as not null.
Teach the verifier to recognize PTR_TO_MEM | MEM_RDONLY as not NULL
otherwise if (!bpf_ksym_exists(known_kfunc)) doesn't go through
dead code elimination.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/bpf/20230321203854.3035-3-alexei.starovoitov@gmail.com
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions