• Bug#1098706: /bin/sh: 1: /usr/src/linux-headers-6.13-amd64/tools/bpf/re

    From Salvatore Bonaccorso@21:1/5 to Andreas Beckmann on Sat Mar 1 08:10:01 2025
    XPost: linux.debian.bugs.dist

    Control: tags -1 + unreproducible moreinfo

    Hi Andreas,

    On Sat, Mar 01, 2025 at 02:12:16AM +0100, Andreas Beckmann wrote:
    Control: found -1 6.13.5-1~exp1

    with pahole available, the next script is missing: /usr/src/linux-headers-@KVERS@/tools/bpf/resolve_btfids/resolve_btfids

    DKMS (dkms-3.1.5) make.log for dkms_test/1.0 for kernel 6.13-amd64 (x86_64) Sat Mar 1 01:09:31 UTC 2025

    Building module(s)
    # command: make -j14 KERNELRELEASE=6.13-amd64 -C /lib/modules/6.13-amd64/build M=/var/lib/dkms/dkms_test/1.0/build
    make: Entering directory '/usr/src/linux-headers-6.13-amd64'
    make[1]: Entering directory '/var/lib/dkms/dkms_test/1.0/build'
    CC [M] dkms_test.o
    MODPOST Module.symvers
    CC [M] dkms_test.mod.o
    CC [M] .module-common.o
    LD [M] dkms_test.ko
    BTF [M] dkms_test.ko
    /bin/sh: 1: /usr/src/linux-headers-6.13-amd64/tools/bpf/resolve_btfids/resolve_btfids: not found
    make[3]: *** [/usr/src/linux-headers-6.13-common/scripts/Makefile.modfinal:59: dkms_test.ko] Error 127
    make[3]: *** Deleting file 'dkms_test.ko'
    make[2]: *** [/usr/src/linux-headers-6.13-common/Makefile:1939: modules] Error 2
    make[1]: *** [/usr/src/linux-headers-6.13-common/Makefile:263: __sub-make] Error 2
    make[1]: Leaving directory '/var/lib/dkms/dkms_test/1.0/build'
    make: *** [/usr/src/linux-headers-6.13-common/Makefile:263: __sub-make] Error 2
    make: Leaving directory '/usr/src/linux-headers-6.13-amd64'

    # exit code: 2
    # elapsed time: 00:00:02 ----------------------------------------------------------------

    I cannot reproduce your issue. The resolve_btfids was already included
    earlier, and triggered without the pahole dependency the problem.

    [...]
    Setting up bpftool (7.6.0+6.13.5-1~exp1) ...
    Setting up linux-libc-dev (6.13.5-1~exp1) ...
    Setting up linux-headers-6.13-common (6.13.5-1~exp1) ...
    Setting up linux-image-6.13-amd64 (6.13.5-1~exp1) ...
    I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.12.16-amd64
    I: /initrd.img.old is now a symlink to boot/initrd.img-6.12.16-amd64
    I: /vmlinuz is now a symlink to boot/vmlinuz-6.13-amd64
    I: /initrd.img is now a symlink to boot/initrd.img-6.13-amd64 /etc/kernel/postinst.d/dkms:

    Sign command: /lib/modules/6.13-amd64/build/scripts/sign-file
    Signing key: /var/lib/dkms/mok.key
    Public certificate (MOK): /var/lib/dkms/mok.pub

    Autoinstall of module dkms_test/1.0 for kernel 6.13-amd64 (x86_64)
    Cleaning build area... done.
    Building module(s)... done.
    Signing module /var/lib/dkms/dkms_test/1.0/build/dkms_test.ko
    Cleaning build area... done.
    Installing /lib/modules/6.13-amd64/updates/dkms/dkms_test.ko.xz
    Running depmod... done.

    Autoinstall on 6.13-amd64 succeeded for module(s) dkms_test. /etc/kernel/postinst.d/initramfs-tools:
    update-initramfs: Generating /boot/initrd.img-6.13-amd64 /etc/kernel/postinst.d/zz-update-grub:
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-6.13-amd64
    Found initrd image: /boot/initrd.img-6.13-amd64
    Found linux image: /boot/vmlinuz-6.12.16-amd64
    Found initrd image: /boot/initrd.img-6.12.16-amd64
    Warning: os-prober will not be executed to detect other bootable partitions. Systems on them will not be added to the GRUB boot configuration.
    Check GRUB_DISABLE_OS_PROBER documentation entry.
    Adding boot menu entry for UEFI Firmware Settings ...
    done
    Setting up linux-perf (6.13.5-1~exp1) ...
    Setting up pahole (1.29-2) ...
    Setting up dkms-test-dkms (3.1.5-1) ...
    Removing old dkms_test/1.0 DKMS files...
    Module dkms_test/1.0 for kernel 6.13-amd64 (x86_64):
    Before uninstall, this module version was ACTIVE on this kernel.
    Deleting /lib/modules/6.13-amd64/updates/dkms/dkms_test.ko.xz
    Running depmod... done.

    Deleting module dkms_test/1.0 completely from the DKMS tree.
    Loading new dkms_test/1.0 DKMS files...
    Building for 6.12.16-amd64 and 6.13-amd64

    Building initial module dkms_test/1.0 for 6.12.16-amd64
    Done.
    Installing /lib/modules/6.12.16-amd64/updates/dkms/dkms_test.ko.xz
    Running depmod... done.

    Building initial module dkms_test/1.0 for 6.13-amd64
    Done.
    Installing /lib/modules/6.13-amd64/updates/dkms/dkms_test.ko.xz
    Running depmod... done.
    Setting up linux-image-amd64 (6.13.5-1~exp1) ...
    Setting up linux-kbuild-6.13 (6.13.5-1~exp1) ...
    Setting up linux-headers-6.13-amd64 (6.13.5-1~exp1) ...
    Setting up linux-headers-amd64 (6.13.5-1~exp1) ...
    Processing triggers for man-db (2.13.0-1) ...

    I would like to see this fixed ASAP for unstable but I have now
    postponed my 6.12.17-1 upload. It would be great if you can confirm if
    there was just a local problem.

    # dpkg -S resolve_btfids/resolve_btfids
    linux-kbuild-6.12.16: /usr/lib/linux-kbuild-6.12.16/tools/bpf/resolve_btfids/resolve_btfids
    linux-kbuild-6.13: /usr/lib/linux-kbuild-6.13/tools/bpf/resolve_btfids/resolve_btfids

    Regards,
    Salvatore

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Beckmann@21:1/5 to Salvatore Bonaccorso on Sat Mar 1 14:10:02 2025
    XPost: linux.debian.bugs.dist

    Control: notfound -1 6.13.5-1~exp1
    Control: fixed -1 6.13.5-1~exp1
    Control: tag -1 - moreinfo unreproducible

    On 3/1/25 07:57, Salvatore Bonaccorso wrote:
    I would like to see this fixed ASAP for unstable but I have now
    postponed my 6.12.17-1 upload. It would be great if you can confirm if
    there was just a local problem.

    Please go ahead. It works in a clean chroot ... but not in my
    existing one with all^Wmost *-dkms installed ...

    # dpkg -S resolve_btfids/resolve_btfids
    linux-kbuild-6.12.16: /usr/lib/linux-kbuild-6.12.16/tools/bpf/resolve_btfids/resolve_btfids
    linux-kbuild-6.13: /usr/lib/linux-kbuild-6.13/tools/bpf/resolve_btfids/resolve_btfids

    Darn experimental at pin priority 1 ... upgraded only the packages I explicitly selected

    iU linux-headers-6.13-amd64 6.13.5-1~exp1 amd64 Header files for Linux 6.13-amd64
    ii linux-kbuild-6.13 6.13.2-1~exp1 amd64 Kbuild infrastructure for Linux 6.13

    No resolve_btfids in that old versions ...

    Shouldn't linux-headers-X.Y[.Z]-$flavor have a more strict
    Depends: linux-kbuild-X.Y[.Z] (= ${binary:Version}) ?

    Probably only matters in experimental which omits .Z


    Andreas

    PS: after upgrading linux-kbuild-6.13 the modules seem to build fine

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)