bpf-next: Avoid goto in regs_refine_cond_op()
authorHarishankar Vishwanathan <harishankar.vishwanathan@gmail.com>
Thu, 21 Mar 2024 00:29:54 +0000 (20:29 -0400)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 21 Mar 2024 18:56:26 +0000 (11:56 -0700)
commit4c2a26fc80bcb851dc630590f2eec157991eccbf
tree7285a497ce184df14a8c17f2d33b44ba09c6e1d0
parentcc9b22dfa735800980e7362f02aff6f1c2280996
bpf-next: Avoid goto in regs_refine_cond_op()

In case of GE/GT/SGE/JST instructions, regs_refine_cond_op()
reuses the logic that does analysis of LE/LT/SLE/SLT instructions.
This commit avoids the use of a goto to perform the reuse.

Signed-off-by: Harishankar Vishwanathan <harishankar.vishwanathan@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240321002955.808604-1-harishankar.vishwanathan@gmail.com
kernel/bpf/verifier.c