Skip to content

Commit 1454213

Browse files
pchaignoKernel Patches Daemon
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]>
1 parent 20a23c9 commit 1454213

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)