ubuntu_bpf build failed with "error: ‘struct bpf_test’ has no member named ‘fixup_kfunc_btf_id’" on J-5.15 / F-5.15

Bug #1980517 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Po-Hsu Lin
linux (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned

Bug Description

Issue found on Jammy 5.15, the test build will fail with:

 In file included from /home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/verifier/tests.h:21,
                  from test_verifier.c:432:
 /home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/verifier/calls.c:124:10: error: ‘struct bpf_test’ has no member named ‘fixup_kfunc_btf_id’
   124 | .fixup_kfunc_btf_id = {
       | ^~~~~~~~~~~~~~~~~~
 /home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/verifier/calls.c:124:9: warning: braces around scalar initializer
   124 | .fixup_kfunc_btf_id = {
       | ^

This is because of commit 13c6a37d4 "selftests/bpf: Add test for reg2btf_ids out of bounds access" upstream.

Issue reported to stable mailing list:
https://<email address hidden>/T/#m3ad9b4882ab3d98fc65feee95f5d78019461835f

Po-Hsu Lin (cypressyew)
tags: added: 5.15 jammy sru-20220620 ubuntu-bpf
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Please find attachment for the build log.

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 1980517

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
Changed in linux (Ubuntu Jammy):
status: New → Incomplete
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Patch queued for stable 5.15
https://<email address hidden>/T/

After it's landed we will be able to get this fix via stable update.

Changed in ubuntu-kernel-tests:
assignee: nobody → Po-Hsu Lin (cypressyew)
status: New → Incomplete
summary: ubuntu_bpf build failed with "error: ‘struct bpf_test’ has no member
- named ‘fixup_kfunc_btf_id’" on J-5.15
+ named ‘fixup_kfunc_btf_id’" on J-5.15 / F-5.15
Changed in linux (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Patch applied with stable update bug 1986728 and bug 1987451

Changed in linux (Ubuntu Jammy):
status: Incomplete → Fix Committed
Po-Hsu Lin (cypressyew)
Changed in ubuntu-kernel-tests:
status: Incomplete → In Progress
Po-Hsu Lin (cypressyew)
Changed in linux (Ubuntu Jammy):
status: Fix Committed → Fix Released
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.

Other bug subscribers

Remote bug watches

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