[Bug 2092053] Re: openafs-modules-dkms FTBS in Noble with linux-6.11-hwe kernel

Massimiliano Pellizzer 2092053 at bugs.launchpad.net
Thu Dec 19 11:03:41 UTC 2024


** Changed in: openafs (Ubuntu)
       Status: In Progress => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2092053

Title:
  openafs-modules-dkms FTBS in Noble with linux-6.11-hwe kernel

Status in openafs package in Ubuntu:
  Invalid
Status in openafs source package in Noble:
  Fix Committed

Bug description:
  [ Impact ]

  openafs-modules-dkms does not compile from source in Noble with kernel
  6.11:

  /var/lib/dkms/openafs/1.8.10/build/src/libafs/MODLOAD-6.11.0-12-generic-SP/osi_alloc.c: In function ‘linux_alloc_init’:
  /var/lib/dkms/openafs/1.8.10/build/src/libafs/MODLOAD-6.11.0-12-generic-SP/osi_alloc.c:212:37: error: ‘vmalloc’ undeclared (first use in this function); did you mean ‘mm_alloc’?
    212 |                             (void *)vmalloc, local_free);
        |                                     ^~~~~~~
        |                                     mm_alloc

  /var/lib/dkms/openafs/1.8.10/build/src/libafs/MODLOAD-6.11.0-12-generic-SP/osi_module.c:25:10: fatal error: asm/ia32_unistd.h: No such file or directory
     25 | #include <asm/ia32_unistd.h>
        |          ^~~~~~~~~~~~~~~~~~~

  /var/lib/dkms/openafs/1.8.10/build/src/libafs/MODLOAD-6.11.0-12-generic-SP/osi_vnodeops.c: In function ‘afs_linux_lock’:
  /var/lib/dkms/openafs/1.8.10/build/src/libafs/MODLOAD-6.11.0-12-generic-SP/osi_vnodeops.c:732:23: error: ‘struct file_lock’ has no member named ‘fl_type’
    732 |     flock.l_type = flp->fl_type;
        |                       ^~
  /var/lib/dkms/openafs/1.8.10/build/src/libafs/MODLOAD-6.11.0-12-generic-SP/osi_vnodeops.c:733:24: error: ‘struct file_lock’ has no member named ‘fl_pid’; did you mean ‘fl_end’?
    733 |     flock.l_pid = flp->fl_pid;
        |                        ^~~~~~
        |                        fl_end
  /var/lib/dkms/openafs/1.8.10/build/src/libafs/MODLOAD-6.11.0-12-generic-SP/osi_vnodeops.c:755:26: error: ‘struct file_lock’ has no member named ‘fl_type’
    755 |     if ((code == 0 || flp->fl_type == F_UNLCK) &&
        |                          ^~
  /var/lib/dkms/openafs/1.8.10/build/src/libafs/MODLOAD-6.11.0-12-generic-SP/osi_vnodeops.c:758:24: error: ‘struct file_lock’ has no member named ‘fl_type’
    758 |         if (code && flp->fl_type != F_UNLCK) {
        |                        ^~
  /var/lib/dkms/openafs/1.8.10/build/src/libafs/MODLOAD-6.11.0-12-generic-SP/osi_vnodeops.c:773:16: error: ‘struct file_lock’ has no member named ‘fl_type’
    773 |         if (flp->fl_type != F_UNLCK) {
        |                ^~
  /var/lib/dkms/openafs/1.8.10/build/src/libafs/MODLOAD-6.11.0-12-generic-SP/osi_vnodeops.c:780:8: error: ‘struct file_lock’ has no member named ‘fl_type’
    780 |     flp->fl_type = flock.l_type;
        |        ^~
  /var/lib/dkms/openafs/1.8.10/build/src/libafs/MODLOAD-6.11.0-12-generic-SP/osi_vnodeops.c:781:10: error: ‘struct file_lock’ has no member named ‘fl_pid’; did you mean ‘fl_end’?
    781 |     flp->fl_pid = flock.l_pid;
        |          ^~~~~~
        |          fl_end

  /var/lib/dkms/openafs/1.8.10/build/src/libafs/MODLOAD-6.11.0-12-generic-SP/osi_vnodeops.c: In function ‘afs_linux_read_cache’:
  /var/lib/dkms/openafs/1.8.10/build/src/libafs/MODLOAD-6.11.0-12-generic-SP/osi_vnodeops.c:2381:27: error: implicit declaration of function ‘page_cache_alloc’; did you mean ‘kmem_cache_alloc’? [-Werror=implicit-function-declaration]
   2381 |                 newpage = page_cache_alloc(cachemapping);
        |                           ^~~~~~~~~~~~~~~~
        |                           kmem_cache_alloc

  [ Test case ]

  Install the latest linux-6.11 kernel on Noble:

  $ sudo add-apt-repository ppa:canonical-kernel-team/ppa
  $ sudo apt update
  $ sudo apt install linux-image-6.11.0-12-generic \
                     linux-modules-6.11.0-12-generic \
                     linux-modules-extra-6.11.0-12-generic \
                     linux-headers-6.11.0-12-generic

  Install openafs-modules-dkms:

  $ sudo apt install openafs-modules-dkms

  Load the module:

  $ sudo modprobe openafs

  The same procedure should be repeated on linux-6.8 to test for
  possible regressions.

  [ Fix ]

  Patch the code to properly support the new linux 6.11 ABI.

  [ Regression potential ]

  We may experience regressions in systems that are using openafs with
  the new 6.11 kernel.

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




More information about the Ubuntu-sponsors mailing list