To make the dkms module build on kernel 6.19+, some modifications were
needed:

* The names_cachep symbol has become private, only in-tree modules can use
  it as it's not exported anymore; for out of kernel is expected to use
  a standard kmalloc, as it's considered to be fast enough for this kind
  of operation, this seems what has been the fix for other out-of-tree modules
* filemap_alloc_folio function needs an additional parameter (nid), to be
  set to the required NUMA node. Set to NULL as we don't have that information.
* Socket APIs require the address parameter of the bind API to be casted to
  a "struct sockaddr_unsized*" instead of a "struct sockaddr*" 


Package can be found in 
https://launchpad.net/~alessiofaina/+archive/ubuntu/dkms-build-tests


======= autopkgtest results 
============================================================
I: Using the following Linux header packages that were already installed:
I:   linux-headers-6.19.0-9
I:   linux-headers-6.19.0-9-generic
I:   linux-headers-7.0.0-3-generic
I:   linux-headers-generic
I: Testing binary package openafs-modules-dkms
I: Trying to build openafs/1.8.14 for 6.19.0-9-generic
Creating symlink /var/lib/dkms/openafs/1.8.14/source -> /usr/src/openafs-1.8.14

Sign command: /usr/bin/kmodsign
Certificate or key are missing, generating them using 
update-secureboot-policy...
EFI variables are not supported on this system
/sys/firmware/efi/efivars not found, aborting.
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building 
module(s).......................................................................................................
 done.
Signing module /var/lib/dkms/openafs/1.8.14/build/openafs.ko
/usr/sbin/dkms: line 1524: zstd: command not found
Installing /lib/modules/6.19.0-9-generic/updates/dkms/openafs.ko
Running depmod... done.
I: Testing if openafs modules are correctly installed.
openafs/1.8.14, 6.19.0-9-generic, x86_64: installed
I: Trying to build openafs/1.8.14 for 7.0.0-3-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building 
module(s)............................................................................................
 done.
Signing module /var/lib/dkms/openafs/1.8.14/build/openafs.ko
/usr/sbin/dkms: line 1524: zstd: command not found
Installing /lib/modules/7.0.0-3-generic/updates/dkms/openafs.ko
Running depmod... done.
I: Testing if openafs modules are correctly installed.
openafs/1.8.14/7.0.0-3-generic/x86_64/log/make.log
openafs/1.8.14, 7.0.0-3-generic, x86_64: installed
I: Summary:
I: PASS openafs/1.8.14 6.19.0-9-generic
I: PASS openafs/1.8.14 7.0.0-3-generic
openafs/1.8.14/6.19.0-9-generic/x86_64/log/make.log
/tmp/autopkgtest.5mnm8C/wrapper.sh: Killing leaked background processes: 115019 
    PID TTY      STAT   TIME COMMAND
 115019 hvc1     S+     0:00 sleep 3
autopkgtest [17:41:33]: test dkms-autopkgtest: -----------------------]
autopkgtest [17:41:33]: test dkms-autopkgtest:  - - - - - - - - - - results - - 
- - - - - - - -
dkms-autopkgtest     PASS (superficial)
autopkgtest [17:41:34]: @@@@@@@@@@@@@@@@@@@@ summary
m-a-autopkgtest      PASS (superficial)
dkms-autopkgtest     PASS (superficial)
====================================================================================

======================= Full test with a public AFS server 
===============================
******* Connect to stacken.kth.se **********
root@ubuntu-resolute:~# sudo systemctl restart openafs-client
root@ubuntu-resolute:~# udebug 130.237.234.43 7003
Host's addresses are: 130.237.234.43
Host's 130.237.234.43 time is Mon Mar 16 09:56:19 2026
Local time is Mon Mar 16 09:56:19 2026 (time differential 0 secs)
Last yes vote for 130.237.234.3 was 9 secs ago (sync site);
Last vote started 9 secs ago (at Mon Mar 16 09:56:10 2026)
Local db version is 1772695188.146
I am not sync site
Lowest host 130.237.234.3 was set 9 secs ago
Sync host 130.237.234.3 was set 9 secs ago
The last trans I handled was 0.579432
Sync site's db version is 1772695188.146
0 locked pages, 0 of them for write
root@ubuntu-resolute:~# ls /afs/stacken.kth.se
aa             hp_ux102      i386_linux5   lyskom          sparc_nbsd13   
sun4x_56
admin          i386_fbsd22   i386_linux6   misc            sparc_nbsd14   
sun4x_57
alpha_dux40d   i386_fbsd33   i386_linux61  mysql           sparc_obsd22   
sun4x_58
alpha_dux50    i386_fbsd4x   i386_linux62  pkg             sparc_obsd23   
sun4x_59
alpha_dux50a   i386_fbsd51   i386_nbsd15   pkg.old         sparc_obsd24   
sunx86_510
amd64_co5      i386_fbsd52   i386_obsd23   ppc_macosx      sparc_obsd25   test
amd64_linux26  i386_fbsd53   i386_obsd29   projects        src            usr
common         i386_fbsd54   i386_obsd30   rs_aix42        stackware      var
dist           i386_fbsd5x   i386_obsd31   rs_aix43        sun4c_413      web
doc            i386_fbsd_51  i386_rh72     sgi_65          sun4c_open_21  
wsadmin
ftp            i386_linux24  i386_rh9      sparc_lnx_rh51  sun4m_413      www
home           i386_linux26  install       sparc_nbsd1     sun4x_510
root@ubuntu-resolute:~#
root@ubuntu-resolute:~# lsmod | grep openafs
openafs              3022848  2
root@ubuntu-resolute:~# sudo systemctl stop openafs-client
root@ubuntu-resolute:~# lsmod | grep openafs

****** DMESG ****
[  495.292536] BkG...
[  495.292601] CB...
[  495.292631] afs...
[  505.374203] CTrunc...
[  505.374378] AFSDB...
[  505.374461] RxEvent...
[  505.877946] UnmaskRxkSignals...
[  505.877966] RxListener...
[  505.878812]  ALL allocated tables...
[  505.878821] done
[  505.919799] Key type afs_pag unregistered
[  506.016956] Key type afs_pag registered
[  506.037956] afs: Binding rx to 0.0.0.0:7001
[  506.038156] enabling dynamically allocated vcaches
[  506.038170] Starting AFS cache scan...
[  506.044340] found 2 non-empty cache files (0%).
[  576.596774] afs: Lost contact with file server 130.237.234.150 in cell 
stacken.kth.se (code -1) (all multi-homed ip addresses down for the server)
[  576.596794] RXAFS_GetCapabilities failed with code -1
[  734.850461] afs: WARM 
[  734.850473] shutting down of: vcaches... 
[  734.851470] BkG... 
[  734.851534] unable to alloc treq
[  734.851749] CB... 
[  734.851828] afs... 
[  734.851990] CTrunc... 
[  734.852054] AFSDB... 
[  734.852118] RxEvent... 
[  735.354438] UnmaskRxkSignals... 
[  735.354454] RxListener... 
[  735.355209]  ALL allocated tables... 
[  735.355258] done
[  735.394320] Key type afs_pag unregistered
===============================================================================================


** Patch added: "dkms_resolute.patch"
   
https://bugs.launchpad.net/ubuntu/+source/openafs/+bug/2144329/+attachment/5952980/+files/dkms_resolute.patch

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

Title:
  openafs-modules-dkms fails to build in Kernel 6.19/7.0

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to