Skip to content

Commit d7a73ec

Browse files
pchaignogregkh
authored andcommitted
selftests/bpf: Test invariants on JSLT crossing sign
[ Upstream commit f96841b ] The improvement of the u64/s64 range refinement fixed the invariant violation that was happening on this test for BPF_JSLT when crossing the sign boundary. After this patch, we have one test remaining with a known invariant violation. It's the same test as fixed here but for 32 bits ranges. Acked-by: Eduard Zingerman <eddyz87@gmail.com> Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com> Link: https://lore.kernel.org/r/ad046fb0016428f1a33c3b81617aabf31b51183f.1753695655.git.paul.chaignon@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 269d809 commit d7a73ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/testing/selftests/bpf/progs/verifier_bounds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ l0_%=: r0 = 0; \
10281028
SEC("xdp")
10291029
__description("bound check with JMP_JSLT for crossing 64-bit signed boundary")
10301030
__success __retval(0)
1031-
__flag(!BPF_F_TEST_REG_INVARIANTS) /* known invariants violation */
1031+
__flag(BPF_F_TEST_REG_INVARIANTS)
10321032
__naked void crossing_64_bit_signed_boundary_2(void)
10331033
{
10341034
asm volatile (" \

0 commit comments

Comments
 (0)