Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1415081

Summary: cpio fails with checksum error larger files >~200M
Product: Red Hat Enterprise Linux 7 Reporter: Steffen Froemer <sfroemer>
Component: cpioAssignee: Pavel Raiskup <praiskup>
Status: CLOSED ERRATA QA Contact: Vaclav Danek <vdanek>
Severity: medium Docs Contact:
Priority: urgent    
Version: 7.3CC: databases-maint, drusek, ealcaniz, extras-qa, fdeutsch, fkrska, hhorak, kdudka, ovasik, praiskup, toneata, vdanek
Target Milestone: rcKeywords: EasyFix, FastFix, Patch, Reproducer, ZStream
Target Release: 7.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Cpio's crc checksum algorithm works with improperly casted or badly sized integers. Consequence: Even though the cpio utility extracts the files from "crc" archives (concrete cpio archive format) correctly, it fails if the archive contains files larger than 200MB and prints warning that the CRC of extracted file is not correct. Fix: Using integer type of proper size. Result: Cpio now extracts files larger than 200MB from 'crc' archives without complaining.
Story Points: ---
Clone Of: 1001965
: 1483571 (view as bug list) Environment:
Last Closed: 2018-04-10 10:07:29 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: 1001965    
Bug Blocks: 1420851, 1483571    

Description Steffen Froemer 2017-01-20 07:59:21 UTC
+++ This bug was initially created as a clone of Bug #1001965 +++

Description of problem:
cpio with crc format fails to verfy chjecksums and also can't extract the files.
This happens with files > ~200M (didn't see it with smaller ones).

Version-Release number of selected component (if applicable):
Version     : 2.11
Release     : 24.el7
Architecture: x86_64

How reproducible:
Always

Steps to Reproduce:
1. Run:
dd if=/dev/urandom of=rand bs=1M count=300
echo rand | cpio --create --format=crc --verbose > rand.cpio
cpio --extract --only-verify-crc < rand.cpio

Actual results:
cpio fails with checksum error:
rand
614401 blocks
cpio: rand: checksum error (0x9568bd204, should be 0x568bd204)
614401 blocks


Expected results:
cpio doesn't get a checksum error

Additional info:
This issue does not exist in F24.

Name        : cpio
Version     : 2.12
Release     : 3.fc24
Architecture: x86_64


Following commit is missing in the RHEL version:

* Mo Sep 30 2013 Pavel Raiskup <praiskup> - 2.11-24
- properly trim "crc" checksum to 32 bits (#1001965)           <=====
- remove unneeded patch for config.gues/config.sub (#951442)
- allow treat read() errors (#996150)

Comment 15 errata-xmlrpc 2018-04-10 10:07:29 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, 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-2018:0693