bpf: Allow kfuncs return 'void *'
authorAlexei Starovoitov <ast@kernel.org>
Thu, 7 Mar 2024 03:12:23 +0000 (19:12 -0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 7 Mar 2024 22:58:48 +0000 (14:58 -0800)
commit88d1d4a7eebea2836859246d91fe9d141789dfc3
tree265870b328e4ba8fd92373cca74fb1f12b849c84
parente63985ecd22681c7f5975f2e8637187a326b6791
bpf: Allow kfuncs return 'void *'

Recognize return of 'void *' from kfunc as returning unknown scalar.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/r/20240307031228.42896-2-alexei.starovoitov@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
kernel/bpf/verifier.c