Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#72595 - coreutils 9.0 can corrupt files on ZFS

Attached to Project: Arch Linux
Opened by Janne Heß (das_j) - Sunday, 31 October 2021, 17:33 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 09 November 2021, 10:27 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:

I'm not actually a ArchLinux user but the maintainer of coreutils in NixOS.
Arch is the only other Distro that I know of that ships coreutils 9.0 so I wanted to make sure you know of this problem.
It occurs in the hole punching code of ZFS (as far as I understood the issue) that is triggered by the new behaviour of cp.
This results in corrupted files after they were copied under the right conditions.

While ZFS is not officially supported by ArchLinux, it is a pretty common filesystem amongst its users (afaic) so it's probably
worth trying to work around this issue. We did a downstream workaround by patching out the new behaviour so users of ZFS are
not affected. Eventually, the ZFS will track down the issue and fix it but until that happens this was the route we chose to take.

We have an issue that links all relevant bug reports and our patch (nixpkgs #143097) to get rid of the behaviour:
https://github.com/NixOS/nixpkgs/issues/143208

It may be worthwile to investigate if Arch users with ZFS are also affected by this and if it's worth patching the coreutils package.


Additional info:
* package version(s)
coreutils 9.0
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Tuesday, 09 November 2021, 10:27 GMT
Reason for closing:  Not a bug
Comment by Jonathon (jonathon) - Monday, 01 November 2021, 01:37 GMT
Reading through the various reports, if this is a ZFS bug (rather than something in cp affecting multiple FS) then it will be picked up when it's patched in ZFS; thankfully Arch systems aren't stuck with older ZFS versions.
Comment by loqs (loqs) - Monday, 08 November 2021, 04:57 GMT
As the fix as now been committed [1], jonathon are you going to apply that to zfs-dkms or wait for [2]?

[1] https://github.com/openzfs/zfs/commit/de198f2d9507b6dcf3d0d8f037ba33940208733e
[2] https://github.com/openzfs/zfs/pull/12718
Comment by Sébastien Luttringer (seblu) - Tuesday, 09 November 2021, 10:27 GMT
A quick word about official zfs-dkms support; I suggested years ago to Eli to move zfs-dkms to community but unfortunately this never happen. Maybe this would be a good idea regarding the popularity and the quality/features of this old but tasty filesystem.

Regarding this particular issue, the path to fix it is under the hands of the zfs-dkms maintainer; I think we can close here.
Thanks Jonathon for bringing this up and loqs, as usualy, to be for being so pertinent.

Loading...