apfs-dkms FTBS in noble with the latest 6.8 kernel

Bug #2054682 reported by Andrea Righi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-apfs-rw (Ubuntu)
Fix Released
Undecided
Unassigned
Noble
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

/var/lib/dkms/linux-apfs-rw/0.3.2-0ubuntu4/build/file.c:169:35: error: ‘generic_copy_file_range’ undeclared here (not in a function); did you mean ‘vfs_copy_file_range’?
  169 | .copy_file_range = generic_copy_file_range,
      | ^~~~~~~~~~~~~~~~~~~~~~~
      | vfs_copy_file_range

[Test case]

 $ sudo apt install apfs-dkms

[Fix]

Fix apfs-dkms to support the new kernel ABI in 6.8.

[Regression potential]

We may experience regressions in systems that are using the Apple file system module (apfs), especially with kernels >= 6.8 kernel.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: apfs-dkms 0.3.2-0ubuntu4
ProcVersionSignature: User Name 6.8.0-11.11-generic 6.8.0-rc4
Uname: Linux 6.8.0-11-generic x86_64
ApportVersion: 2.27.0-0ubuntu7
Architecture: amd64
CasperMD5CheckResult: unknown
CloudArchitecture: x86_64
CloudBuildName: server
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSerial: 20240220
CloudSubPlatform: config-disk (/dev/vdb)
Date: Thu Feb 22 10:16:28 2024
PackageArchitecture: all
ProcEnviron:
 LANG=C.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: linux-apfs-rw
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Andrea Righi (arighi) wrote :
Revision history for this message
Andrea Righi (arighi) wrote :

debdiff in attach allows to build apfs with linux 6.8.

Revision history for this message
Andrea Righi (arighi) wrote :

v2 with correct changelog entry.

Revision history for this message
Andrea Righi (arighi) wrote :

Test build with the new dkms.

Building initial module for 6.8.0-11-generic
Done.

apfs.ko.zst:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-11-generic/updates/dkms/

Revision history for this message
Andrea Righi (arighi) wrote :

Module can also be loaded and the filesystem is registered properly:

# modprobe apfs
# grep apfs /proc/filesystems
 apfs

tags: added: patch
Andrea Righi (arighi)
Changed in linux-apfs-rw (Ubuntu Noble):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-apfs-rw - 0.3.2-0ubuntu5

---------------
linux-apfs-rw (0.3.2-0ubuntu5) noble; urgency=medium

  * Support linux 6.8 (LP: #2054682):
    - debian/patches/0005-Support-for-kernel-6.8.patch

 -- Andrea Righi <email address hidden> Thu, 22 Feb 2024 12:59:41 +0000

Changed in linux-apfs-rw (Ubuntu Noble):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.