ubuntu_bpf failed to build on Noble / Oracular
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Unassigned | ||
| linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
| Noble |
Fix Released
|
Low
|
Magali Lemes do Sacramento | ||
| Oracular |
Fix Released
|
Low
|
Magali Lemes do Sacramento | ||
Bug Description
SRU Justification
[Impact]
BPF selftests fail to build on Noble and Oracular. This happens because of
commit 02b4e126e6 ("bpf: selftests: test_tunnel: Use vmlinux.h declarations"),
which relies on the definitions of `bpf_fou_encap` and
`bpf_fou_
Since we have CONFIG_NET_FOU=m instead of =y, these declarations
cannot be solved and the tests cannot be built.
[Fix]
Clean cherry-pick of d17f9b370df6 ("selftests/bpf: Fix compilation failure when
CONFIG_NET_FOU!=y")
[Test]
1) Install build dependencies:
apt install build-essential libelf-dev llvm clang lld libssl-dev docutils-common -y
2) Build the tests using the kernel source tree with the patch applied:
make -C tools/testing/
[Where problems could occur]
Change is limited to BPF selftests, no problems should occur in the kernel
image or modules.
-------
Original bug report:
Test build failed since 6.8.0-19.19 (probably way more earlier, this is earliest one that I can see):
CLNG-BPF [test_maps] test_tcpnotify_
CLNG-BPF [test_maps] test_time_tai.bpf.o
CLNG-BPF [test_maps] test_trace_
CLNG-BPF [test_maps] test_trace_
CLNG-BPF [test_maps] test_tracepoint
CLNG-BPF [test_maps] test_trampoline
CLNG-BPF [test_maps] test_tunnel_
make[1]: Leaving directory '/home/
make: Leaving directory '/home/
stderr:
Warning: Kernel ABI header at 'tools/
Warning: Kernel ABI header at 'tools/
progs/
30 | struct bpf_fou_encap *encap, int type) __ksym;
| ^
progs/
32 | struct bpf_fou_encap *encap) __ksym;
| ^
progs/
741 | struct bpf_fou_encap encap = {};
| ^
progs/
741 | struct bpf_fou_encap encap = {};
| ^
progs/
765 | ret = bpf_skb_
| ^
progs/
778 | struct bpf_fou_encap encap = {};
| ^
progs/
778 | struct bpf_fou_encap encap = {};
| ^
progs/
802 | ret = bpf_skb_
| ^
progs/
816 | struct bpf_fou_encap encap = {};
| ^
progs/
816 | struct bpf_fou_encap encap = {};
| ^
7 errors generated.
make[1]: *** [Makefile:620: /home/ubuntu/
make: *** [Makefile:180: all] Error 2
CVE References
- 2024-36476
- 2024-39282
- 2024-41013
- 2024-47408
- 2024-47736
- 2024-49568
- 2024-49571
- 2024-53125
- 2024-53179
- 2024-53685
- 2024-53687
- 2024-53690
- 2024-54193
- 2024-54455
- 2024-54460
- 2024-54683
- 2024-55639
- 2024-55881
- 2024-55916
- 2024-56369
- 2024-56372
- 2024-56652
- 2024-56653
- 2024-56654
- 2024-56656
- 2024-56657
- 2024-56659
- 2024-56660
- 2024-56662
- 2024-56664
- 2024-56667
- 2024-56670
- 2024-56675
- 2024-56709
- 2024-56710
- 2024-56715
- 2024-56716
- 2024-56717
- 2024-56718
- 2024-56758
- 2024-56759
- 2024-56760
- 2024-56761
- 2024-56763
- 2024-56764
- 2024-56767
- 2024-56769
- 2024-56770
- 2024-57791
- 2024-57792
- 2024-57793
- 2024-57801
- 2024-57802
- 2024-57804
- 2024-57806
- 2024-57807
- 2024-57841
- 2024-57879
- 2024-57882
- 2024-57883
- 2024-57884
- 2024-57885
- 2024-57887
- 2024-57888
- 2024-57889
- 2024-57890
- 2024-57892
- 2024-57893
- 2024-57895
- 2024-57896
- 2024-57897
- 2024-57898
- 2024-57899
- 2024-57900
- 2024-57901
- 2024-57902
- 2024-57903
- 2024-57904
- 2024-57906
- 2024-57907
- 2024-57908
- 2024-57910
- 2024-57911
- 2024-57912
- 2024-57913
- 2024-57916
- 2024-57917
- 2024-57925
- 2024-57926
- 2024-57929
- 2024-57931
- 2024-57932
- 2024-57933
- 2024-57938
- 2024-57939
- 2024-57940
- 2024-57945
- 2024-57946
- 2025-21631
- 2025-21632
- 2025-21634
- 2025-21635
- 2025-21636
- 2025-21637
- 2025-21638
- 2025-21639
- 2025-21640
- 2025-21642
- 2025-21643
- 2025-21645
- 2025-21646
- 2025-21647
- 2025-21648
- 2025-21649
- 2025-21650
- 2025-21651
- 2025-21652
- 2025-21653
- 2025-21654
- 2025-21655
- 2025-21656
- 2025-21658
- 2025-21659
- 2025-21660
- 2025-21662
- 2025-21663
- 2025-21664
- 2025-21971
| Changed in linux (Ubuntu Noble): | |
| assignee: | nobody → Magali Lemes do Sacramento (magalilemes) |
| Changed in linux (Ubuntu Oracular): | |
| assignee: | nobody → Magali Lemes do Sacramento (magalilemes) |
| Changed in linux (Ubuntu Noble): | |
| importance: | Undecided → Low |
| Changed in linux (Ubuntu Oracular): | |
| importance: | Undecided → Low |
| Changed in linux (Ubuntu Noble): | |
| status: | New → In Progress |
| Changed in linux (Ubuntu Oracular): | |
| status: | New → In Progress |
| description: | updated |
| Changed in linux (Ubuntu Oracular): | |
| status: | In Progress → Fix Committed |
| Changed in linux (Ubuntu Noble): | |
| status: | In Progress → Fix Committed |
| Changed in linux (Ubuntu): | |
| status: | New → Fix Released |
| Changed in ubuntu-kernel-tests: | |
| status: | New → Fix Released |
Seems that it needs CONFIG_NET_FOU=y as per https:/ /lore.kernel<email address hidden> /T/#m8b94d75905 80d70a87755d1df 3c72af7962912eb
and we have CONFIG_NET_FOU=m