Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926826 - sys-fs/zfs-kmod-2.2.3: copy_file_range issue leading to data loss with kernel 6.8
Summary: sys-fs/zfs-kmod-2.2.3: copy_file_range issue leading to data loss with kernel...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-12 09:15 UTC by darkbasic
Modified: 2024-03-12 18:09 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description darkbasic 2024-03-12 09:15:08 UTC
Upstream issue: https://github.com/openzfs/zfs/issues/15930
Fix: https://github.com/openzfs/zfs/pull/15931

Potential actions:
1) Add a warning in post-install/dkms scripts.
2) Ship the patch.

Reproducible: Always
Comment 1 darkbasic 2024-03-12 11:32:51 UTC
About 1) we might as well just backport this: https://github.com/openzfs/zfs/pull/15986
Comment 2 Mike Gilbert gentoo-dev 2024-03-12 14:27:08 UTC
Seems the bug is in the kernel module, not userspace.
Comment 3 Mike Gilbert gentoo-dev 2024-03-12 14:29:36 UTC
I believe zfs-kmod-2.2.3 already dies in pkg_setup for kernels >= 6.8.
Comment 4 darkbasic 2024-03-12 15:56:42 UTC
Of course I'm sorry, it's in the dkms not in the utils.
I'm using btrfs on Gentoo so I've tested the dkms for 2.2.3 only on Arch Linux. Unless Gentoo added a kernel check for supported versions it should compile because compat patches for 6.8 landed in 2.2.3.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-12 16:02:45 UTC
(In reply to darkbasic from comment #4)
> Of course I'm sorry, it's in the dkms not in the utils.
> I'm using btrfs on Gentoo so I've tested the dkms for 2.2.3 only on Arch
> Linux. Unless Gentoo added a kernel check for supported versions it should
> compile because compat patches for 6.8 landed in 2.2.3.

Gentoo has had such a check for ages. Per https://github.com/openzfs/zfs/releases/tag/zfs-2.2.3, 2.2.3 was officially marked as only supporting 6.7. We track the official supported ranges.
Comment 6 Mike Gilbert gentoo-dev 2024-03-12 16:41:27 UTC
You keep referring to dkms. I have no idea how that works.

Copying the dkms maintainer; perhaps he has some idea of what you are talking about.
Comment 7 Nowa Ammerlaan gentoo-dev 2024-03-12 18:09:23 UTC
dkms is not used here. 

It's a system for rebuilding external kernel modules and it's used for kernel modules that are *not* handled by portage. zfs-kmod is a linux-mod-r1 ebuild and does not install a dkms configuration file, nor does it register itself with the dkms database. You are correct though that on Arch, dkms is used for zfs-kmod.