Skip to content

Commit f96841b

Browse files
pchaignoAlexei Starovoitov
authored andcommitted
selftests/bpf: Test invariants on JSLT crossing sign
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 <[email protected]> Signed-off-by: Paul Chaignon <[email protected]> Link: https://lore.kernel.org/r/ad046fb0016428f1a33c3b81617aabf31b51183f.1753695655.git.paul.chaignon@gmail.com Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 26e5e34 commit f96841b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ l0_%=: r0 = 0; \
10661066
SEC("xdp")
10671067
__description("bound check with JMP_JSLT for crossing 64-bit signed boundary")
10681068
__success __retval(0)
1069-
__flag(!BPF_F_TEST_REG_INVARIANTS) /* known invariants violation */
1069+
__flag(BPF_F_TEST_REG_INVARIANTS)
10701070
__naked void crossing_64_bit_signed_boundary_2(void)
10711071
{
10721072
asm volatile (" \

0 commit comments

Comments
 (0)