ubuntu_bpf failed to build on Jammy (error: unknown type name '__failure')

Bug #2076391 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 on 5.15.0-120.130 in 2024.08.05

This is a regression, we don't have this issue in 5.15.0-118.128
Build failed with:
   CLNG-BPF [test_maps] test_global_data.o
   CLNG-BPF [test_maps] test_global_func1.o
   CLNG-BPF [test_maps] test_global_func10.o
 progs/test_global_func10.c:24:1: error: unknown type name '__failure'
 __failure __msg("invalid indirect access to stack")
 ^
 progs/test_global_func10.c:24:17: error: expected parameter declarator
 __failure __msg("invalid indirect access to stack")
                 ^
 progs/test_global_func10.c:24:17: error: expected ')'
 progs/test_global_func10.c:24:16: note: to match this '('
 __failure __msg("invalid indirect access to stack")
                ^
 progs/test_global_func10.c:24:52: error: expected ';' after top level declarator
 __failure __msg("invalid indirect access to stack")
                                                    ^
                                                    ;
 4 errors generated.

This will make ubuntu_kselftests_net/net:udpgro_bench.sh, net:udpgro.sh, net:veth.sh tests fail, as they need bpf 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.