bpf: Convert PTR_TO_MEM_OR_NULL to composable types.
authorHao Luo <haoluo@google.com>
Thu, 28 Apr 2022 23:57:47 +0000 (16:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 May 2022 15:22:25 +0000 (17:22 +0200)
commitb710f73704d61069b2f05358309290551e5a8732
tree714b9028d5abff7806adad64e49ae4ff1a07b6e0
parentb453361384c2db1c703dacb806d5fd36aec4ceca
bpf: Convert PTR_TO_MEM_OR_NULL to composable types.

commit cf9f2f8d62eca810afbd1ee6cc0800202b000e57 upstream.

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
Cc: stable@vger.kernel.org # 5.15.x
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/bpf.h
kernel/bpf/btf.c
kernel/bpf/verifier.c