Bug ID 1188589
Summary libbpf: failed to find valid kernel BTF
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Kernel
Assignee kernel-bugs@opensuse.org
Reporter mrostecki@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Since the update to the TW snapshot with the kernel 5.13.2-1, I see the
following errors when trying to load BPF CO-RE skeletons with libbpf:

libbpf: failed to find valid kernel BTF                                         
libbpf: Error loading vmlinux BTF: -3

The full example - I'm trying to load BPF programs which I have in this
project: https://github.com/rancher-sandbox/lockc

and the full output is:

��������� sudo ./out/lockcd
libbpf: elf: skipping unrecognized data section(9) .rodata.str1.1
libbpf: failed to find valid kernel BTF
libbpf: Error loading vmlinux BTF: -3
libbpf: failed to load object 'lockc_bpf'
libbpf: failed to load BPF skeleton 'lockc_bpf': -3
Error: libbpf error
Caused by:
    System error, errno: 3

Most likely, the solution for them would be setting the following kernel
parameters to "y":

CONFIG_DEBUG_INFO_REDUCED
CONFIG_DEBUG_INFO_SPLIT

But I'm not entirely sure yet. trying to test that...


You are receiving this mail because: