test_maps in ubuntu_bpf failed to build on B-hwe-edge 5.3 (BTF is required, but is missing or corrupted.)

Bug #1845860 reported by Po-Hsu Lin
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Po-Hsu Lin
linux (Ubuntu)
Invalid
Undecided
Unassigned
Eoan
Invalid
Undecided
Unassigned
Focal
Invalid
Undecided
Unassigned

Bug Description

Issue found on 5.3 Bionic hwe:
 Running './test_maps'
 libbpf: BTF is required, but is missing or corrupted.
 Failed to load SK_SKB verdict prog

Po-Hsu Lin (cypressyew)
tags: added: 5.3 bionic sru-20190902 ubuntu-bpf
Po-Hsu Lin (cypressyew)
summary: - ubuntu_bpf failed to build on B-hwe 5.3 (BTF is required, but is missing
- or corrupted.)
+ test_maps in ubuntu_bpf failed to build on B-hwe 5.3 (BTF is required,
+ but is missing or corrupted.)
no longer affects: ubuntu-kernel-tests
Po-Hsu Lin (cypressyew)
summary: - test_maps in ubuntu_bpf failed to build on B-hwe 5.3 (BTF is required,
- but is missing or corrupted.)
+ test_maps in ubuntu_bpf failed to build on B-hwe-edge 5.3 (BTF is
+ required, but is missing or corrupted.)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1845860

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Po-Hsu Lin (cypressyew)
tags: added: sru-20200217
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

It looks like we need clang-9 for this, quoted from upstream discussion:
  You need at least clang-9.0.0 (not yet released) to run some of these
  tests successfully, as they rely on Clang's support for
  BTF_KIND_VAR/BTF_KIND_DATASEC.

https://lore.kernel<email address hidden>/T/

Revision history for this message
Paolo Pisati (p-pisati) wrote :

FWIW, i'm having a similar problem on Focal 5.4:

https://paste.ubuntu.com/p/CdFBr9QmHp/

...
libbpf: Error loading .BTF into kernel: -22.
Failed to load SK_SKB verdict prog

but i have clang-10:

ii clang 1:10.0-50~exp1 amd64 C, C++ and Objective-C compiler (LLVM based)
ii clang-10 1:10.0.0-2ubuntu2 amd64 C, C++ and Objective-C compiler
ii libclang-common-10-dev 1:10.0.0-2ubuntu2 amd64 Clang library - Common development package
ii libclang-cpp10 1:10.0.0-2ubuntu2 amd64 C++ interface to the Clang library
ii libclang1-10 1:10.0.0-2ubuntu2 amd64 C interface to the Clang library

Sean Feole (sfeole)
tags: added: eoan focal
Po-Hsu Lin (cypressyew)
tags: added: sru-20200427
Po-Hsu Lin (cypressyew)
tags: added: sru-20200608
Sean Feole (sfeole)
tags: added: aws
Po-Hsu Lin (cypressyew)
Changed in ubuntu-kernel-tests:
assignee: nobody → Po-Hsu Lin (cypressyew)
status: New → In Progress
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Test passed with Bionic 5.3 Oracle

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Test passed with 5.4.0-42.46~18.04.1
(not failing with this issue anymore, but with some other issues)

Changed in linux (Ubuntu):
status: Incomplete → Invalid
Changed in linux (Ubuntu Focal):
status: Incomplete → Invalid
Changed in linux (Ubuntu Eoan):
status: Incomplete → Invalid
Changed in ubuntu-kernel-tests:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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