bpf: Factor out visit_func_call_insn() in check_cfg()
authorYonghong Song <yhs@fb.com>
Fri, 26 Feb 2021 20:49:20 +0000 (12:49 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Feb 2021 21:23:52 +0000 (13:23 -0800)
commitefdb22de7dcd3b24b8154b3c3ba496f62afea00c
tree37efc018f6e6244e1afd33de75cdb0c8bc09c562
parent86fd166575c38c17ecd3a6b8fb9c64fa19871486
bpf: Factor out visit_func_call_insn() in check_cfg()

During verifier check_cfg(), all instructions are
visited to ensure verifier can handle program control flows.
This patch factored out function visit_func_call_insn()
so it can be reused in later patch to visit callback function
calls. There is no functionality change for this patch.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210226204920.3884136-1-yhs@fb.com
kernel/bpf/verifier.c