ubuntu_bpf test build failed with "error: invalid operand for instruction" on J-aws-6.5

Bug #2040485 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

Issue found with J-aws-6.5.0-1008

Test build failed with:
  CLNG-BPF [test_maps] uninit_stack.bpf.o
  CLNG-BPF [test_maps] user_ringbuf_fail.bpf.o
  CLNG-BPF [test_maps] user_ringbuf_success.bpf.o
  CLNG-BPF [test_maps] verifier_and.bpf.o
make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf'
make: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests'
stderr:
progs/verifier_and.c:58:16: error: invalid operand for instruction
        asm volatile (" \
                      ^
:1:184: note: instantiated into assembly here
                                                        r1 = 0; *(u64*)(r10 - 8) = r1; r2 = r10; r2 += -8; r1 = map_hash_48b ll; call 1; if r0 == 0 goto l0_1; r1 = *(u32*)(r0 + 0); r9 = 1; w1 %= 2; w1 += 1; w9 &= w1; w9 += 1; w9 >>= 1; w3 = 1; w3 -= w9; w3 *= 0x10000000; r0 += r3; *(u32*)(r0 + 0) = r3; l0_1: r0 = r0; exit;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^ 1 error generated.
make[1]: *** [Makefile:577: /home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/verifier_and.bpf.o] Error 1
make: *** [Makefile:169: all] Error 2

This is the first time we run sru for J-aws-6.5
This build issue is affecting ubuntu_kernel_selftests as well, as some tests require bpf selftest to be built first.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.