ACK: [SRU][N/O][PATCH 0/1] Fix build failure for BPF selftests

Andrei Gherzan andrei.gherzan at canonical.com
Mon Mar 24 08:55:22 UTC 2025


On 25/03/21 01:30pm, Magali Lemes wrote:
> BugLink: https://bugs.launchpad.net/bugs/2069407
> 
> [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_encap_type` used in test_tunnel_kern.c being on vmlinux.h.
> 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/selftests/ TARGETS=bpf SKIP_TARGETS= all KDIR=/usr/src/linux-headers-$(uname -r)/
> 
> [Where problems could occur]
> Change is limited to BPF selftests, no problems should occur in the kernel
> image or modules.
> 
> Artem Savkov (1):
>   selftests/bpf: Fix compilation failure when CONFIG_NET_FOU!=y
> 
>  .../selftests/bpf/progs/test_tunnel_kern.c    | 27 ++++++++++++++-----
>  1 file changed, 21 insertions(+), 6 deletions(-)

Acked-by: Andrei Gherzan <andrei.gherzan at canonical.com>

-- 
Andrei Gherzan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20250324/9d9a4835/attachment.sig>


More information about the kernel-team mailing list