Public bug reported: The following patch was introduced into Noble's kernel ( which is said to allow support for arbitrary symbol length in modversion: https://git.launchpad.net/~ubuntu- kernel/ubuntu/+source/linux/+git/noble/commit/scripts/mod/modpost.c?id=0a4e704ad1a9800a7d24179c9d14aae6f43c4813
Noble, however, contains kmod v31: $ modprobe -V kmod version 31 -ZSTD -XZ -ZLIB -LIBCRYPTO -EXPERIMENTAL This version of kmod expects that modversion symbol lengths be of size 64. This means that any module compiled on Noble will fail `modprobe --dump-modversion`. To reproduce this error, one can build a simple module such as the following on both Noble and Jammy (which does not contain this bug) [note: this repo does not contain a `MODULE_LICENSE()` line so add that to `hello.c` before building]: https://github.com/jmuia/hello-ko We will call the module built on Noble `hello-noble.ko` and the module built on Jammy `hello-jammy.ko`. Noble (6.8.0-54-generic): $ modprobe --dump-modversion hello-jammy.ko 0x09931d80 module_layout 0x92997ed8 _printk $ modprobe --dump-modversion hello-noble.ko modprobe: FATAL: could not get modversions of hello-noble.ko: Invalid argument Jammy (5.15.0-134-generic): $ modprobe --dump-modversion hello-jammy.ko 0x09931d80 module_layout 0x92997ed8 _printk $ modprobe --dump-modversion hello-noble.ko modprobe: FATAL: could not get modversions of hello-noble.ko: Invalid argument We expect that the error from `modprobe --dump-modversion hello- noble.ko` should not happen on either Noble or Jammy. This bug was discovered by myself and @jmbl while trying to utilize `kpatch-build` as we experienced different behavior when building on Jammy and Noble. ** Affects: linux (Ubuntu) Importance: Undecided Status: New ** Tags: kernel-bug ** Attachment added: "Contains the modules described in this bug report and required logs from both Jammy and Noble." https://bugs.launchpad.net/bugs/2100957/+attachment/5862570/+files/bug-report.zip -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2100957 Title: Noble kernel breaks `modprobe --dump-modversion` To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2100957/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs