bpf: Convert PTR_TO_MEM_OR_NULL to composable types.
authorHao Luo <haoluo@google.com>
Fri, 17 Dec 2021 00:31:49 +0000 (16:31 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 18 Dec 2021 21:27:41 +0000 (13:27 -0800)
commitcf9f2f8d62eca810afbd1ee6cc0800202b000e57
treea0c62f903c10857e4bb6e0bbc1d2d77641b5b469
parent20b2aff4bc15bda809f994761d5719827d66c0b4
bpf: Convert PTR_TO_MEM_OR_NULL to composable types.

Remove PTR_TO_MEM_OR_NULL and replace it with PTR_TO_MEM combined with
flag PTR_MAYBE_NULL.

Signed-off-by: Hao Luo <haoluo@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211217003152.48334-7-haoluo@google.com
include/linux/bpf.h
kernel/bpf/btf.c
kernel/bpf/verifier.c