Package: libbpf1
Version: 1:1.7.0-1
Severity: normal
X-Debbugs-Cc: [email protected]

Using latest linux kernel from experimental package linux-image-7.2-amd64

~$ uname -v
#1 SMP PREEMPT_DYNAMIC Debian 7.2~rc7-1~exp1 (2026-08-11)
~$ uname -r
7.2-amd64

The format of the kernel version is not compatible with what libbpf expects.

In libbpf_probes.c get_kernel_version() which is called from 
bpf_object__resolve_externs()

get_debian_kernel_version() is not able to parse info->version, which contains

#1 SMP PREEMPT_DYNAMIC Debian 7.2~rc7-1~exp1 (2026-08-11)

and after that fails, neither is get_kernel_version() able to parse 
info.release, which contains

7.2-amd64

Both are expecting three numbers for major, minor, patch

This means, for example, bpftune is unable to load all tuners. With trace 
enabled, it shows -

bpftune: libbpf: loaded kernel BTF from '/sys/kernel/btf/vmlinux'
bpftune: libbpf: extern (kcfg) 'LINUX_KERNEL_VERSION': failed to get kernel 
version
bpftune: libbpf: failed to load BPF skeleton 'tcp_buffer_tuner_bpf': -EINVAL
bpftune: BPF load for tuner 'tcp_buffer; failed: 'Invalid argument': Invalid 
argument

Same problem has happened before, for example with

#1 SMP PREEMPT_DYNAMIC Debian 7.1~rc2-1~exp1 (2026-05
-07)

7.1-amd64

but I didn't notice it at the time.


-- System Information:
Debian Release: forky/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 7.2-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libbpf1 depends on:
ii  libc6       2.42-17
ii  libelf1t64  0.195-1
ii  zlib1g      1:1.3.dfsg+really1.3.2-3

libbpf1 recommends no packages.

libbpf1 suggests no packages.

-- no debconf information

Reply via email to