Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#69155 - [linux-hardened] 5.10.4.a-1 libbpf: Failed to find valid kernel BTF

Attached to Project: Arch Linux
Opened by bbhtt (bbhtt) - Thursday, 31 December 2020, 13:13 GMT
Last edited by Levente Polyak (anthraxx) - Thursday, 02 June 2022, 00:25 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No



Following message can be seen while booting kernel Linux 5.10.4.a-1-hardened from today:

libbpf: Failed to find valid kernel BTF
libbpf: Error loading vmlinux BTF: -3
libbpf: Failed to load object ‘iterators_bpf’
libbpf: failed to load BPF skeleton iterators_bpf: -3
Failed load could be wrong endianess

Possibly related to not having BTF support in kernel config:

This task depends upon

Closed by  Levente Polyak (anthraxx)
Thursday, 02 June 2022, 00:25 GMT
Reason for closing:  Fixed
Additional comments about closing:  5.17.12.hardened2-2
Comment by (IrvineHimself) (IrvineHimself) - Friday, 01 January 2021, 01:44 GMT
I have same problem: While the system boots into the console, the Gnome desktop fails to launch. After downgrading to 'linux-hardened-5.9.16.a-1' Gnome launches fine.

Comment by Doug Newgard (Scimmia) - Friday, 01 January 2021, 13:38 GMT
IrvineHimself, that is unrelated. Don't hijack tickets.
Comment by (IrvineHimself) (IrvineHimself) - Friday, 01 January 2021, 14:33 GMT
@Scimmia: Sorry about that. However,

Gnome fails with kernel version
~ 5.10.4.a-1-hardened (linux-hardened@archlinux)

But succeeds with kernel versions
~ 5.10.3-arch1-1 (linux@archlinux)
~ 5.9.16.a-1-hardened (linux-hardened@archlinux)

The only thing changed in any of the boots is the kernel version, should I open another bug report?


Added new bug report  FS#69171  here:
Comment by Oleksandr Natalenko (post-factum) - Friday, 01 January 2021, 14:51 GMT
Yes, please do open another bugreport.
Comment by Doug Newgard (Scimmia) - Friday, 01 January 2021, 15:00 GMT
Unless there's already a ticket for it. There are a lot against the linux package.
Comment by Michel Koss (MichelKoss1) - Saturday, 02 January 2021, 19:12 GMT
Disabling CONFIG_BPF_PRELOAD gets rid of those warnings. It seems to be a debug related option so disabling it makes sense while CONFIG_DEBUG_INFO is disabled at the same time.
Comment by Michel Koss (MichelKoss1) - Sunday, 10 April 2022, 05:24 GMT