Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1408168 - tar hangs with --extract --xattrs --skip-old-files
tar hangs with --extract --xattrs --skip-old-files
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tar (Show other bugs)
7.2
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Pavel Raiskup
Vaclav Danek
:
Depends On: 1399036
Blocks:
  Show dependency treegraph
 
Reported: 2016-12-22 06:04 EST by Pavel Raiskup
Modified: 2018-04-10 07:31 EDT (History)
9 users (show)

See Also:
Fixed In Version: tar-1.26-33.el7
Doc Type: Bug Fix
Doc Text:
Cause: Tar mistakenly tried to extract extended attributes also for files which were not expected to be extracted. Consequence: Tar got stuck in busy loop, repeatedly trying to restore extended file attributes. Fix: The extended attribute extraction method was fixed to respect --skip-old-files option. Result: Tar now behaves properly with --xattrs and --skip-old-files.
Story Points: ---
Clone Of: 1399036
Environment:
Last Closed: 2018-04-10 07:30:49 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0716 None None None 2018-04-10 07:31 EDT

  None (edit)
Description Pavel Raiskup 2016-12-22 06:04:43 EST
The busy hang is IMO worth fixing in RHEL 7, too.

+++ This bug was initially created as a clone of Bug #1399036 +++)

Steps to reproduce:

$ tar tvf a.tar --xattrs
-rw-------* praiskup/praiskup 0 2016-11-28 07:06 a
$ touch a
$ tar xf a.tar --xattrs --skip-old-files
[busy loop..]

Upstream report:
http://www.mail-archive.com/bug-tar@gnu.org/msg05184.html

Upstream fix:
597b0ae509 and ca9399d4e
Comment 1 Tomas Repik 2017-01-05 03:16:15 EST
(In reply to Pavel Raiskup from comment #0)

Tried to reproduce it but I'm not able to.
I'm not sure how to get this output line:
> -rw-------* praiskup/praiskup 0 2016-11-28 07:06 a

expecialy the star in file mode.
Comment 2 Pavel Raiskup 2017-01-05 03:25:41 EST
Some files in archive need to have xattrs set.
Comment 14 Vaclav Danek 2017-12-15 05:33:21 EST
143: xattrs: basic functionality                     ok
144: xattrs: change directory with -C option         ok
146: xattrs: s/open/openat/ regression               ok
147: xattrs: keywords with '=' and '%'               ok
148: xattrs: exclude xattrs on create                ok
149: xattrs: xattrs and --skip-old-files             ok
=> Verified
Comment 17 errata-xmlrpc 2018-04-10 07:30:49 EDT
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:0716

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