Bug 1921246 - split can cause data corruption with --number=K/N construct
Summary: split can cause data corruption with --number=K/N construct
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Kamil Dudka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1926138
TreeView+ depends on / blocked
 
Reported: 2021-01-27 19:08 UTC by Pádraig Brady
Modified: 2021-02-17 05:08 UTC (History)
10 users (show)

Fixed In Version: coreutils-8.32-17.fc34 coreutils-8.32-17.fc33 coreutils-8.32-4.fc32.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1926138 (view as bug list)
Environment:
Last Closed: 2021-02-06 01:16:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Pádraig Brady 2021-01-27 19:08:02 UTC
Description of problem:
split --number=K/N can be used when there isn't enough local storage,
and you want to split input to separate output devices in separate runs.

Ever since v8.26 (so including centos 8), there is a nasty
data corruption issue for any file over 128KiB
as part of the input file is skipped incorrectly.

The upstream fix for this is:
https://github.com/coreutils/coreutils/commit/bb21daa1.patch

Comment 1 Kamil Dudka 2021-02-02 14:51:39 UTC
Thank you for reporting the bug!

dist-git commit: https://src.fedoraproject.org/rpms/coreutils/c/7afd521b

Comment 2 Fedora Update System 2021-02-03 01:31:14 UTC
FEDORA-2021-a56b2d9e9d has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-a56b2d9e9d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-a56b2d9e9d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2021-02-03 02:30:05 UTC
FEDORA-2021-74e0c6f8bd has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-74e0c6f8bd`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-74e0c6f8bd

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Pádraig Brady 2021-02-05 19:00:36 UTC
Is there a bug tracking this for the centos/rhel 8 side of things.
I didn't find one when searching for "split" in the RHEL 8 component

Comment 5 Fedora Update System 2021-02-06 01:16:53 UTC
FEDORA-2021-74e0c6f8bd has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Kamil Dudka 2021-02-08 10:25:23 UTC
(In reply to Pádraig Brady from comment #4)
> Is there a bug tracking this for the centos/rhel 8 side of things.
> I didn't find one when searching for "split" in the RHEL 8 component

We do not clone Fedora bugs for RHEL proactively, only the other way around.  Given the fact that the upstream patch applies cleanly and fixes a possible data loss, I will clone this one for eventual inclusion in the next update of coreutils in RHEL-8.  Thanks for the hint!

Comment 7 Fedora Update System 2021-02-17 05:08:25 UTC
FEDORA-2021-a56b2d9e9d has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.