** Description changed:

- WIP
+ zfs-linux 2.4.4-1ubuntu5 fails to build its DKMS module against Linux 7.4.    
                          
+ configure aborts with:                                                        
                          
+                                                                               
                               
+ checking whether xattr_handler->set() wants dentry and inode... configure: 
error:                     
+      *** None of the expected "xattr set()" interfaces were detected.
+ 
+ [Cause]                                                                       
                          
+      Linux 7.4 changed several VFS interfaces:                                
                               
+       - struct mnt_idmap * became const struct mnt_idmap * in VFS callbacks   
                               
+         (xattr_handler->set, iops->create/mkdir/mknod/symlink/rename/tmpfile/ 
                               
+         getattr/setattr/permission/set_acl), so the configure probes no 
longer                               
+         match and the build stops                                             
                               
+       - current_is_kswapd() was removed                                       
                               
+       - the PG_private page flag and the PageWriteback() helper were removed  
                               
+       - linux/umh.h is no longer included indirectly                          
                               
+                                                                               
                               
+ [Fix]                                                                         
                          
+      Upstream PR "Linux 7.4 compat" 
(https://github.com/openzfs/zfs/pull/19507)                              
+      fixes this on master. It is still open, and nothing has been backported 
to                              
+      zfs-2.4-release yet.                                                     
                               
+                                                                               
                               
+      2.4.4-1ubuntu6 adds debian/patches/linux-7.4-compat.patch, a backport of 
                               
+      the PR's 6 commits. 2.4.x does not have upstream 61cb6c75ae41            
                               
+      ("config: remove obsolete idmap/userns checks"), so the patch also adds 
a                               
+      const mnt_idmap variant to each of the per-callback configure checks 
that                               
+      2.4 still has. On kernels before 7.4 the const variants are not 
selected,                               
+      so the code compiles exactly as before.                                  
                               
+                                                                               
                               
+      The patch can be dropped once a 2.4.x upstream release includes the fix. 
                               
+                                                                               
                               
+ [Testing]                                                                     
                          
+       - 7.4.0-1-generic: zfs-dkms 2.4.4-1ubuntu6 installs, and the DKMS build 
                               
+         completes and signs and installs zfs.ko and spl.ko.                   
                               
+       - 7.0.0-44-generic: configure and the module build still succeed, so    
                               
+         older kernels are not affected.                                       
                               
+       - Not yet tested: loading the module and pool I/O on 7.4

** Changed in: zfs-linux (Ubuntu Tenacious)
     Assignee: (unassigned) => Alessio Faina (alessiofaina)

** Changed in: zfs-linux (Ubuntu Tenacious)
       Status: New => In Progress

** Changed in: zfs-linux (Ubuntu Tenacious)
   Importance: Undecided => High

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

Title:
  Fix build against Linux 7.4

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


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

Reply via email to