• Bug#1109040: Subject: linux-headers-6.1.0-37-amd64 missing config files

    From Ben Hutchings@21:1/5 to Markus Johnsson on Thu Jul 10 13:40:01 2025
    XPost: linux.debian.kernel

    Control: severity -1 important
    Control: tag -1 moreinfo

    On Thu, 2025-07-10 at 11:21 +0200, Markus Johnsson wrote:
    Package: linux-headers-6.1.0-37-amd64
    Version: 6.1.140-1
    Severity: serious

    Hello Debian team,

    (First, I wish to apologize for not using the report tool fully. I used it and took the contents of the report from there to complete it, but my SMTP server failed to send the report, so I sent it manually instead. Thank you for understanding. Now to
    the report.)

    I've encountered a serious and reproducible issue with the Debian 12 (Bookworm) kernel headers package that affects the ability to build out-of-tree kernel modules — such as for netfilter hooks or network drivers — using linux-headers-6.1.0-37-
    amd64.

    ====================
    📌 Problem Summary
    ====================
    The installed kernel headers appear to be incomplete. While the symbolic link /lib/modules/$(uname -r)/build correctly points to /usr/src/linux-headers-6.1.0-37-amd64, this directory relies on shared contents from /usr/src/linux-headers-6.1.0-37-common,
    which is missing critical build infrastructure.

    As a result, any attempt to build a kernel module using the standard external Makefile flow fails or silently produces a broken .ko file that cannot be inserted.
    [...]

    Our CI process verifies that it is possible to build an external kernel
    module using the packages we provide. So there is not a general problem
    here, but perhaps with the specific way you are using it.

    Where can I see the source for the kernel module that you are trying to
    build?

    Ben.

    --
    Ben Hutchings
    Never attribute to conspiracy what can adequately be explained
    by stupidity.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAmhvpQoACgkQ57/I7JWG EQnjGRAAscONW63gyQDorOzBvPsw/60AvCUvqFGmSxc7heBqA9huv4f2sZ5cN2nc 8pQC9v2cFePbqjjFqfZrCzlJ/6tFuRm1ATcSE1paKiV54Hw1kqzG05m2kw5R7LVz W4MEz0BhRET+qhfApKIRJy/GRiqPvGCt55g31p50fUeKgrh9LXYc5hV/2SHK5j8G 0Zn/5oZku/JTeJ1+1Kw/k9rl18eLBNZk7Qz4UXNCnNbxDi7wYtdd4GarPyrzGKIB p3zzhMeL6l/L8rQg0adsi/7s7Xjern5OryXkMuyH2YUnquI1VSy1PiEx8Wnm9MEB RsUZrZJZhpHHLRKSOpRkTZA2aeMdmgKKeACYx2hjsyUt9SAlMpbO0OjDDivBo7u4 XzUWvKHrLJtiLH8l0W4Hz5vg0pWDfcSAOvdrlSxrbLm1X7vDmjwWlrIRfOaRJgM/ OJ52PemObGCJWKBde3LFAGQileSNWmeGTRxkSYl84xNqge06zBZoLa5XVoLZeavW n+hvj4z5jzvlEss5zb3+rkmTPORyLVlM+36hbbtt3hDyAjO5U7gRTYqbMIo7Dxms OLrzYWBC8jxaf6mu6z4aPuvoQHnx7SU6BTIE67d/Ect5dmTAuVvbbOzzuZWaQO/Q Ep83GxZBtTCgGFfPOAd5jsyGLf/cQAj0+gRsEqEoQce5cxjwwt0=
    =2u1o
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ben Hutchings@21:1/5 to Markus Johnsson on Thu Jul 10 17:00:01 2025
    XPost: linux.debian.kernel

    On Thu, 2025-07-10 at 15:48 +0200, Markus Johnsson wrote:
    Hi Ben,
    Thank you for your response.
    As requested, I’ve attached the full source code for the kernel module I’m attempting to build and use under Debian — it’s called netherhook.c and is part of a network scanner system I'm developing.
    [...]

    I really need to see the Makefile as well.

    And please keep bugs.debian.org in cc.

    Ben.

    --
    Ben Hutchings
    Never attribute to conspiracy what can adequately be explained
    by stupidity.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAmhv0xEACgkQ57/I7JWG EQlYJRAAnKHC+wM6VPjfQo8OShse/uh0jUuzfJUDqRGVotBsPvHEEPhs4Ad75AgE nzqCSFaWVgWpJ+zmU1RYW1s0sovZK6nSpS+X8Vo6pDlOAgMHaD2vquBZlRBs3HNC OSr5aAgyFdBIUQ7JOT/uA88I0ce2YpwWHUyNRBtoO2uSkaBWawe1o8ElFowwRq+/ HipQvQ8grGi9fPYQpivtu7ib2QCWXNUTFsU61Tg5dtv+Kb/PiOUbZTFdKG2Bivkb VZC395AlLPOMqpbn9wBI/Oz7rCj4oKMfvxKqCyMV4ZcafYMbXC6odpgfxO6qMJfk Y5AxA/3J6uWl0hQ6/r6HKnPNcMviUbz8PMBk0M8otLQCbt8oYdOxHJsfSqwYpoc/ tQWYVb3yz73Gwib+i/ey5/00Lvngk3OT1xv+K8j3n52rJRk+SGMoeUHTSMNmSv5r Q1bPgyQUX88aGGKKLOICDm0OmN2j2k02erPn9oUN6FWxL0YdydVf1ZtxVC6RpoHq et8+BuiTzm/vGAoAB1c1lzXVH+PDVfGS0a2Zq5KD/YfhvtB8ILGeNn19hdinN8gM hElJX+H5UljAKkOTltOFvcDmP2KZWaXPO6cA1MIw0ZGsko628lcjDGxJ3l05tSwZ eh2j+A8vXwA7lMW0X9TG2VksvpbCdMOKjKnxgU3T6ogs/HctIBk=
    =ZVku
    -----END PGP SIGNATURE-----

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