diff options
author | 2023-03-21 13:38:52 -0700 | |
---|---|---|
committer | 2023-03-22 09:31:05 -0700 | |
commit | 1057d299459657b85e593a4b6294a000f920672a (patch) | |
tree | e962571e8ea2ef312a9b9584abac83db3ee98fa5 /net/core/sock_map.c | |
parent | libbpf: Rename RELO_EXTERN_VAR/FUNC. (diff) | |
download | wireguard-linux-1057d299459657b85e593a4b6294a000f920672a.tar.xz wireguard-linux-1057d299459657b85e593a4b6294a000f920672a.zip |
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 'net/core/sock_map.c')
0 files changed, 0 insertions, 0 deletions