]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Simplify do_check_insn()
authorAlexei Starovoitov <ast@kernel.org>
Sat, 11 Apr 2026 23:00:01 +0000 (16:00 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 12 Apr 2026 00:43:29 +0000 (17:43 -0700)
commit2ec74a053611edf77259ecdef1d94be181dd1dd6
tree52beb1139de7b18bc4fffc34c19473444f1cf18e
parentae3f8ca2ba505d62173bb2f6bf6f6edf951b909e
bpf: Simplify do_check_insn()

Move env->insn_idx++ to the caller, so that most of
check_*() calls in do_check_insn() tail call into the next helper.

Link: https://lore.kernel.org/r/20260411230001.71664-1-alexei.starovoitov@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c