Confirmed with 4.15.0-143-generic, this issue exist just like Thadeu mentioned above:
<<<test_start>>> tag=bpf_prog05 stime=1620817587 cmdline="bpf_prog05" contacts="" analysis=exit <<<test_output>>> incrementing stop tst_buffers.c:55: TINFO: Test is using guarded buffers tst_test.c:1313: TINFO: Timeout per run is 0h 05m 00s bpf_common.c:17: TINFO: Raising RLIMIT_MEMLOCK to 69206016 tst_capability.c:29: TINFO: Dropping CAP_SYS_ADMIN(21) bpf_common.c:114: TPASS: Loaded program bpf_prog05.c:142: TINFO: Check w7(-1) /= w6(0) [r7 = -1, r6 = 1 << 32] bpf_prog05.c:119: TFAIL: src(r6) = 0, but should be 4294967296 bpf_prog05.c:121: TPASS: dst(r7) = 0 bpf_prog05.c:146: TINFO: Check w7(-1) %= w6(0) [r7 = -1, r6 = 1 << 32] bpf_prog05.c:119: TFAIL: src(r6) = 0, but should be 4294967296 bpf_prog05.c:119: TFAIL: dst(r7) = 0, but should be 4294967295
Confirmed with 4.15.0-143-generic, this issue exist just like Thadeu mentioned above:
<<<test_start>>> "bpf_prog05" c:29: TINFO: Dropping CAP_SYS_ADMIN(21)
tag=bpf_prog05 stime=1620817587
cmdline=
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
tst_buffers.c:55: TINFO: Test is using guarded buffers
tst_test.c:1313: TINFO: Timeout per run is 0h 05m 00s
bpf_common.c:17: TINFO: Raising RLIMIT_MEMLOCK to 69206016
tst_capability.
bpf_common.c:114: TPASS: Loaded program
bpf_prog05.c:142: TINFO: Check w7(-1) /= w6(0) [r7 = -1, r6 = 1 << 32]
bpf_prog05.c:119: TFAIL: src(r6) = 0, but should be 4294967296
bpf_prog05.c:121: TPASS: dst(r7) = 0
bpf_prog05.c:146: TINFO: Check w7(-1) %= w6(0) [r7 = -1, r6 = 1 << 32]
bpf_prog05.c:119: TFAIL: src(r6) = 0, but should be 4294967296
bpf_prog05.c:119: TFAIL: dst(r7) = 0, but should be 4294967295