** Also affects: linux (Ubuntu) Importance: Undecided Status: New ** Also affects: linux (Ubuntu Resolute) Importance: Undecided Status: New ** Changed in: linux (Ubuntu Resolute) Status: New => In Progress ** Changed in: ubuntu-kernel-tests Status: New => In Progress ** Changed in: linux (Ubuntu Resolute) Assignee: (unassigned) => Paolo Pisati (p-pisati) ** Changed in: ubuntu-kernel-tests Assignee: (unassigned) => Paolo Pisati (p-pisati) -- You received this bug notification because you are subscribed to linux in Ubuntu. Matching subscriptions: Bgg, Bmail, Nb https://bugs.launchpad.net/bugs/2150071 Title: ubuntu_bpf failed to build on Resolute (error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘__counted_by’) Status in ubuntu-kernel-tests: In Progress Status in linux package in Ubuntu: New Status in linux source package in Resolute: In Progress Bug description: [Impact] ubuntu_bpf selftest fail to setup: '/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: In file included from test_tag.c:18: /usr/include/linux/if_alg.h:45:22: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘__counted_by’ 45 | __u8 iv[] __counted_by(ivlen); | ^~~~~~~~~~~~ make[1]: *** [Makefile:244: [Fix] Apply the upstream fix present in v7.1-rc2: commit 0c7ae130698e70107430254e79fbe996b4d37ab5 Author: Paul Chaignon <paul.chaignon@gmail.com> Date: Sat May 2 12:12:40 2026 +0200 tools/headers: Regenerate stddef.h to fix BPF selftests With commit dacbfc167808 ("crypto: af_alg - Annotate struct af_alg_iv with __counted_by"), two selftests, test_tag and crypto_sanity, now indirectly rely on the __counted_by macro. On systems with commit dacbfc167808 in the installed UAPI headers, the selftests build fails with: In file included from tools/testing/selftests/bpf/prog_tests/crypto_sanity.c:7: /usr/include/linux/if_alg.h:45:22: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘__counted_by’ 45 | __u8 iv[] __counted_by(ivlen); | ^~~~~~~~~~~~ This patch fixes it by regenerating stddef.h in tools/include using the instructions from commit a778f5d46b62 ("tools/headers: Pull in stddef.h to uapi to fix BPF selftests build in CI"). [How to reproduce] Run the ubuntu_bpf test again after applying the patch. [Regression potential] Low: clean upstream cherry-pick for a known problem. --- Issue found on Openstack AMD64 instance with R/linux 7.0.0-14.14 Test build failed with: INSTALL /home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/tools/include/bpf/bpf_helper_defs.h INSTALL libbpf_headers TEST-HDR [test_progs] tests.h EXT-OBJ [test_progs] testing_helpers.o EXT-OBJ [test_progs] cap_helpers.o EXT-OBJ [test_progs] unpriv_helpers.o BINARY test_verifier BINARY test_tag 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: In file included from test_tag.c:18: /usr/include/linux/if_alg.h:45:22: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘__counted_by’ 45 | __u8 iv[] __counted_by(ivlen); | ^~~~~~~~~~~~ make[1]: *** [Makefile:244: /home/ubuntu/autotest/client/tmp/ubuntu_bpf/src/linux/tools/testing/selftests/bpf/test_tag] Error 1 make: *** [Makefile:212: all] Error 2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2150071/+subscriptions
Комментариев нет:
Отправить комментарий