Public bug reported:

[Impact]
On Ubuntu 24.04 (Noble), building the BPF selftests from linux-nvidia-7.0 
version 7.0.0-1026.27~24.04.1 fails with Clang 19 on arm64 with 4 KiB and 64 
KiB pages, CONFIG_VXLAN=y and CONFIG_DEBUG_INFO_BTF=y. The build stops at 
test_lwt_ip_encap.bpf.o with "redefinition of 'vxlanhdr'". The build was 
previously observed to pass on 7.0.0-1023.24~24.04.1.

[Fix]
The Ubuntu backport added a local struct vxlanhdr for builds whose generated 
vmlinux.h lacks the type. With VXLAN built in, vmlinux.h already provides it. 
Rename the local type and both uses to vxlanhdr___local.

[Test Plan]
With a built vmlinux and Clang 19, build test_lwt_ip_encap.bpf.o using the BPF 
selftests Makefile and VMLINUX_BTF pointing at that vmlinux. Repeat for both 
page sizes, then run the IPv4 and IPv6 LWT VXLAN selftests. Check that the 
object also builds when VXLAN is a module and the type is absent from vmlinux.h.

[Where problems could occur]
The change is limited to a type name in one BPF selftest. The structure fields 
and packet layout are unchanged. Focused C compile checks passed with the 
kernel type present and absent. Full BPF builds and runtime tests are pending.

** Affects: linux-nvidia-7.0 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175352

Title:
  linux-nvidia-7.0: BPF selftest build fails with vxlanhdr redefinition

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-nvidia-7.0/+bug/2175352/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to