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 996150 - Segmentation fault (core dumped) when cpio compress /sys directory
Summary: Segmentation fault (core dumped) when cpio compress /sys directory
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: cpio
Version: 6.2
Hardware: Unspecified
OS: Unspecified
urgent
medium
Target Milestone: rc
: ---
Assignee: Pavel Raiskup
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 1070830 1099875 1135423 1138148 1145039
TreeView+ depends on / blocked
 
Reported: 2013-08-12 14:11 UTC by sunshineway
Modified: 2018-12-06 15:13 UTC (History)
10 users (show)

Fixed In Version: cpio-2.10-12.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1135423 1145039 (view as bug list)
Environment:
Last Closed: 2014-10-22 07:15:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Check that read() did not fail (2.63 KB, patch)
2014-05-22 13:10 UTC, Pavel Raiskup
no flags Details | Diff

Description sunshineway 2013-08-12 14:11:39 UTC
Description of problem:
Segmentation fault (core dumped) when cpio compress /sys directory.

Version-Release number of selected component (if applicable):
[root@localhost tmp]# rpm -qi cpio
Name        : cpio                         Relocations: (not relocatable)
Version     : 2.10                              Vendor: CentOS
Release     : 9.el6                         Build Date: Wed 10 Nov 2010 10:43:45 PM EST
Install Date: Sun 23 Jun 2013 03:23:13 AM EDT      Build Host: c6b6.bsys.dev.centos.org
Group       : Applications/Archiving        Source RPM: cpio-2.10-9.el6.src.rpm
Size        : 650610                           License: GPLv3+
Signature   : RSA/8, Sun 03 Jul 2011 12:08:07 AM EDT, Key ID 0946fca2c105b9de
Packager    : CentOS BuildSystem <http://bugs.centos.org>
URL         : http://www.gnu.org/software/cpio/
Summary     : A GNU archiving program

How reproducible:


Steps to Reproduce:
1.run :
[root@localhost tmp]# find /sys |cpio -ocvB > a.cpio 
2.then:
....
/sys/devices/virtual/dmi/id/uevent
cpio: /sys/devices/virtual/dmi/id/subsystem: Warning: Cannot readlink: Invalid argument
/sys/devices/virtual/dmi/id/bios_vendor
Segmentation fault (core dumped)
3.

Actual results:
compress failed.

Expected results:
compress success.

Additional info:

Comment 1 Pavel Raiskup 2013-08-12 14:20:48 UTC
Thank you for taking the time to enter a bug report with us. We appreciate the
feedback and look to use reports such as this to guide our efforts at
improving our products. That being said, this bug tracking system is not a
mechanism for requesting support, and we are not able to  guarantee the
timeliness or suitability of a resolution.

If this issue is critical or in any way time sensitive, please raise a ticket
through your regular Red Hat support channels to make certain  it receives the
proper attention and prioritization to assure a timely resolution.

For information on how to contact the Red Hat production support team, please visit:

https://www.redhat.com/support/process/production/#howto

Comment 4 Pavel Raiskup 2013-09-20 20:00:20 UTC
Ups, bad bug.  Sorry for previous comment.

Comment 6 RHEL Program Management 2013-10-13 23:16:30 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 11 Pavel Raiskup 2014-05-22 13:10:00 UTC
Created attachment 898389 [details]
Check that read() did not fail

Attaching another fix which checks return values for SAFE_READ_ERROR.  This is
principally better approach.


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