Bug 1926138

Summary: split can cause data corruption with --number=K/N construct [rhel-8]
Product: Red Hat Enterprise Linux 8 Reporter: Kamil Dudka <kdudka>
Component: coreutilsAssignee: Kamil Dudka <kdudka>
Status: CLOSED ERRATA QA Contact: Radka Brychtova <rskvaril>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.3CC: kdudka, p
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: coreutils-8.30-9.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1921246 Environment:
Last Closed: 2021-11-09 19:42:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1921246    
Bug Blocks:    

Description Kamil Dudka 2021-02-08 10:29:25 UTC
+++ This bug was initially created as a clone of Bug #1921246 +++

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

--- Additional comment from Kamil Dudka on 2021-02-02 15:51:39 CET ---

Thank you for reporting the bug!

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

--- Additional comment from Pádraig Brady on 2021-02-05 20:00:36 CET ---

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

--- Additional comment from Kamil Dudka on 2021-02-08 11:25:23 CET ---

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 10 errata-xmlrpc 2021-11-09 19:42:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (coreutils bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4418