[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1018002: marked as done (linux: Skipping BTF generation for /my/own/lkm.ko due to unavailability of vmlinux)



Your message dated Thu, 01 May 2025 17:12:54 +0200 (CEST)
with message-id <20250501151254.C93FFBE2DE0@eldamar.lan>
and subject line Closing this bug (BTS maintenance for src:linux bugs)
has caused the Debian Bug report #1018002,
regarding linux: Skipping BTF generation for /my/own/lkm.ko due to unavailability of vmlinux
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1018002: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018002
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: linux-headers-5.19.0-trunk-amd64
Version: 5.19-1~exp1
Severity: normal
X-Debbugs-Cc: tg@mirbsd.de

In building an out-of-tree kernel module I wrote on 5.19 (to test
compatibility), I noticed a new error message.

/usr/lib/linux-kbuild-5.19/scripts/Makefile.modfinal emits the
message, and an inserted pwd;ls -l shows that the command looks
for existence of a “vmlinux” file (or symlinked) in its cwd
/usr/src/linux-headers-5.19.0-trunk-amd64 which belongs to the
linux-headers-*-$arch package.

sudo ln -s /boot/vmlinuz-5.19.0-trunk-amd64 /usr/src/linux-headers-5.19.0-trunk-amd64/vmlinux
brings me further. I now also have to install the pahole package,
which probably needs to be depended on by linux-kbuild-5.19 now,
but then I get:

libbpf: failed to get EHDR from vmlinux
Failed to parse base BTF 'vmlinux': -4001

What am I still missing?

Are these BTF files supposed to be generated for out-of-tree
modules in the first place? If not, I suggest skipping the
  BTF [M] /my/own/lkm.ko
and the error message altogether instead.


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'buildd-unstable'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-10-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages linux-headers-5.19.0-trunk-amd64 depends on:
ii  linux-compiler-gcc-11-x86          5.18.5-1
ii  linux-headers-5.19.0-trunk-common  5.19-1~exp1
ii  linux-kbuild-5.19                  5.19-1~exp1

linux-headers-5.19.0-trunk-amd64 recommends no packages.

linux-headers-5.19.0-trunk-amd64 suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Hi

This bug was filed for a (very) old kernel or the bug is old itself
without resolution. Maybe it was for a feature enablement which nobody
acted on. We are sorry we were not able to timely deal with this issue.
There are many open bugs for the src:linux package and thus we are
closing older bugs where it's unclear if they still occur in newer
versions and are still relevant to the reporter. For an overview see:
https://bugs.debian.org/src:linux .

If you can reproduce your issue with

- the current version in unstable/testing
- the latest kernel from backports

or, if it was a feature addition/wishlist and still consider it
relevant, then:

Please reopen the bug, see https://www.debian.org/Bugs/server-control
for details.

Please try to provide as much fresh details including kernel logs where
relevant. In particular were an issue is coupled with specific hardware we
might ask you to do additional debugging on your side as the owner of the
hardware.

Regards,
Salvatore

--- End Message ---

Reply to: