apfs-dkms FTBS with linux 6.7 on noble

Bug #2045777 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-0ubuntu3/build/apfs.h:1096:14: error: implicit declaration of function ‘__getblk_gfp’; did you mean ‘sb_getblk_gfp’? [-Werror=implicit-function-declaration]
 1096 | bh = __getblk_gfp(APFS_NXI(sb)->nx_bdev, block, sb->s_blocksize, __GFP_MOVABLE);
      | ^~~~~~~~~~~~
      | sb_getblk_gfp

[Test case]

Install the latest 6.7 linux-unstable kernel:

 $ sudo add-apt-repository ppa:canonical-kernel-team/unstable
 $ sudo apt install \
   linux-image-6.7.0-2-generic \
   linux-modules-6.7.0-2-generic \
   linux-modules-extra-6.7.0-2-generic \
   linux-headers-6.7.0-2-generic

Install apfs-dkms:

 $ sudo apt install apfs-dkms

[Fix]

Backport upstream patches to properly support the new linux 6.7 ABI.

[Regression potential]

Systems that are relying on the Apple filesystem module may experience regressions, especially those that are using a 6.7 kernel.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: apfs-dkms 0.3.2-0ubuntu3
ProcVersionSignature: User Name 6.7.0-2.2-generic 6.7.0-rc3
Uname: Linux 6.7.0-2-generic x86_64
ApportVersion: 2.27.0-0ubuntu6
Architecture: amd64
CasperMD5CheckResult: unknown
CloudArchitecture: x86_64
CloudBuildName: server
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSerial: 20231031
CloudSubPlatform: config-disk (/dev/vdb)
Date: Wed Dec 6 15:46:20 2023
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 use the apfs-dkms module with linux 6.7.

tags: added: patch
Andrea Righi (arighi)
description: updated
Revision history for this message
Andrea Righi (arighi) wrote :

Test results with all the currently available noble kernels (using apfs-dkms from noble-proposed):

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

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

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

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

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

  * Support linux 6.7 (LP: #2045777):
    - debian/patches/0004-Support-for-kernel-6.7.patch

 -- Andrea Righi <email address hidden> Wed, 06 Dec 2023 15:50:54 +0000

Changed in linux-apfs-rw (Ubuntu Noble):
status: New → 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.