]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Refactor check_func_call() to allow callback function
authorYonghong Song <yhs@fb.com>
Fri, 26 Feb 2021 20:49:23 +0000 (12:49 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Feb 2021 21:23:52 +0000 (13:23 -0800)
commit1435137573f9c75455903e8cd01f84d6e092ea16
tree9f502032f0236631b38bc67cde67de1a4c929715
parentbc2591d63fc91bd5a9aaff145148a224d892bdb8
bpf: Refactor check_func_call() to allow callback function

Later proposed bpf_for_each_map_elem() helper has callback
function as one of its arguments. This patch refactored
check_func_call() to permit callback function which sets
callee state. Different callback functions may have
different callee states.
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/20210226204923.3884627-1-yhs@fb.com
kernel/bpf/verifier.c