Hello Anthony! Thanks for submitting a bug report. I'm assigning this to
the kernel team.

Are we aware of any newer versions of kmod which resolve this issue?

** Changed in: linux (Ubuntu)
       Status: New => Triaged

** Changed in: linux (Ubuntu)
     Assignee: Benjamin Wheeler (benjaminwheeler) => Canonical Kernel Team 
(canonical-kernel-team)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2100957

Title:
  Noble kernel breaks `modprobe --dump-modversion`

Status in linux package in Ubuntu:
  Triaged

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2100957/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to