Alexei Starovoitov 1057d29945 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
2023-03-22 09:31:05 -07:00
..
2023-03-07 09:33:42 -08:00
2023-03-07 09:33:42 -08:00
2023-03-08 16:19:51 -08:00
2023-02-22 09:52:32 -08:00
2023-03-07 09:33:42 -08:00
2023-03-07 09:33:42 -08:00
2023-03-07 09:33:42 -08:00
2023-03-13 23:08:21 -07:00
2022-05-10 11:20:45 -07:00
2023-03-07 09:33:42 -08:00
2020-08-28 15:41:30 +02:00
2021-12-18 13:27:41 -08:00
2023-03-07 09:33:43 -08:00
2023-03-07 09:33:42 -08:00
2023-03-07 09:33:42 -08:00