[Bug 864302] New: GNU tar rpm cannot dealt with large uid_t
https://bugzilla.novell.com/show_bug.cgi?id=864302 https://bugzilla.novell.com/show_bug.cgi?id=864302#c0 Summary: GNU tar rpm cannot dealt with large uid_t Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: All OS/Version: openSUSE 13.1 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: external.martin.konold@de.bosch.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 SUSE/31.0.1650.63 Name : tar Version : 1.26 Release : 19.1.2 Cannot deal with large uid_t. Reason: Default format got changed from GNU to POSIX. Problem: In contrast to what the GNU tar documentation claims --format=posix cannot deal with large uids. Reproducible: Always Steps to Reproduce: 1. create directory hierarchy testdir/ with large uidnumber e.g. 20000001. 2. tar cvf deleteme.tar testdir/ 3. echo $? will give a 2. Actual Results: $? is 2 Expected Results: $? should be 0. tar cvf --format=gnu gives the expected result. This is a regression from older versions of OpenSuSE which used to have --format=gnu as a default format. E.g. OpenSuSE 11.3: km82rt@rt-z9854:~> tar --version tar (GNU tar) 1.23 km82rt@rt-z9854:~> tar –help | tail -5 *Dieses* „tar“ hat als Voreinstellung: --format=gnu -f- -b20 --quoting-style=escape --rmt-command=/usr/libexec/rmt --rsh-command=/usr/bin/rsh OpenSuSE 13.1: km82rt@rt-ccs7560:tmp> tar --version tar (GNU tar) 1.26 km82rt@rt-ccs7560:tmp> tar --help | tail -5 *This* tar defaults to: --format=posix -f- -b20 --quoting-style=escape --rmt-command=/usr/lib/rmt --rsh-command=/usr/bin/rsh The misleading documentation is available from http://www.gnu.org/software/tar/manual/html_section/Formats.html Format | UID File Size File Name Devn -------+----------------------------------------- gnu | 1.8e19 Unlimited Unlimited 63 oldgnu | 1.8e19 Unlimited Unlimited 63 v7 | 2097151 8GB 99 n/a ustar | 2097151 8GB 256 21 posix | Unlimited Unlimited Unlimited Unlimited Workaround: Go back to +export DEFAULT_ARCHIVE_FORMAT="GNU" -export DEFAULT_ARCHIVE_FORMAT="POSIX" in tar.spec and recreate the tar RPM. The current bug breaks many existing shell scripts which evaluate the exit code of tar. The bug is often triggered in setups using idmap_rid. For obvious reasons there is no way in large installation to change the uid to values which accomodate the buggy tar implementation. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864302 https://bugzilla.novell.com/show_bug.cgi?id=864302#c Xiyuan Liu <xyliu@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyliu@suse.com AssignedTo|bnc-team-screening@forge.pr |vcizek@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864302 https://bugzilla.novell.com/show_bug.cgi?id=864302#c1 Vitezslav Cizek <vcizek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |vcizek@suse.com InfoProvider| |external.martin.konold@de.b | |osch.com --- Comment #1 from Vitezslav Cizek <vcizek@suse.com> 2014-02-18 15:15:49 CET --- This is a regression in tar. The posix format should really be unlimited. I'm getting slightly different errors when I run tar with a user with large uid: # tar --format=gnu -cf archiv.tar large-uid-dir/ # tar --format=posix -cf archiv.tar large-uid-dir/ tar: value 20000001 out of uid_t range 0..2097151 tar: value 20000001 out of uid_t range 0..2097151 tar: value 20000001 out of uid_t range 0..2097151 tar: value 20000001 out of uid_t range 0..2097151 tar: Exiting with failure status due to previous errors This problem doesn't appear in Factory tar. Could you test whether a tar package from Factory works for you too? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864302 https://bugzilla.novell.com/show_bug.cgi?id=864302#c2 --- Comment #2 from Martin Konold <external.martin.konold@de.bosch.com> 2014-02-18 18:13:45 CET --- The errors are identical. Simply check the error level and $? will be 2 instead of 0 in your test. I did not reproduce the error text output (fd 2). OpenSuSE 13.1: tar 1.26 --> above error Running OpenSuSE Factory on OpenSuSE 13.1 install: tar-1.27.1-1.1.i586.rpm --> works as expected rt-z9856:/home/DE/km82rt # tar --version | head -1 tar (GNU tar) 1.27.1 rt-z9856:/home/DE/km82rt # tar --help | tail -5 *Dieses* „tar“ hat als Voreinstellung: --format=posix -f- -b20 --quoting-style=escape --rmt-command=/usr/lib/rmt --rsh-command=/usr/bin/rsh So regression with "--format=posix" is fixed in upstream 1.27.1. So what is the OpenSuSE policy in order to provide a fix for OpenSuSE 13.1? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864302 https://bugzilla.novell.com/show_bug.cgi?id=864302#c3 Vitezslav Cizek <vcizek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|external.martin.konold@de.b | |osch.com | --- Comment #3 from Vitezslav Cizek <vcizek@suse.com> 2014-02-18 19:00:13 CET --- (In reply to comment #2)
The errors are identical. Simply check the error level and $? will be 2 instead of 0 in your test. I did not reproduce the error text output (fd 2).
Right.
So regression with "--format=posix" is fixed in upstream 1.27.1.
So what is the OpenSuSE policy in order to provide a fix for OpenSuSE 13.1?
I'll just initiate a maintenance update for 12.3 and 13.1. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864302 https://bugzilla.novell.com/show_bug.cgi?id=864302#c4 --- Comment #4 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-02-18 20:00:48 CET --- This is an autogenerated message for OBS integration: This bug (864302) was mentioned in https://build.opensuse.org/request/show/222767 13.1+12.3 / tar -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864302 https://bugzilla.novell.com/show_bug.cgi?id=864302#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:planned:update -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864302 https://bugzilla.novell.com/show_bug.cgi?id=864302#c7 --- Comment #7 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-02-20 01:12:21 CET --- This is an autogenerated message for OBS integration: This bug (864302) was mentioned in https://build.opensuse.org/request/show/222767 13.1+12.3 / tar -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864302 https://bugzilla.novell.com/show_bug.cgi?id=864302#c8 --- Comment #8 from SMASH SMASH <smash_bz@suse.de> 2014-02-20 01:46:14 UTC --- Affected packages: SLE-11-SP3: tar SLE-11-SP2: tar SLE-11-SP1: tar -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864302 https://bugzilla.novell.com/show_bug.cgi?id=864302#c10 --- Comment #10 from Swamp Workflow Management <swamp@suse.de> 2014-02-27 18:04:44 UTC --- openSUSE-RU-2014:0304-1: An update that has one recommended fix can now be installed. Category: recommended (moderate) Bug References: 864302 CVE References: Sources used: openSUSE 13.1 (src): tar-1.26-19.4.1 openSUSE 12.3 (src): tar-1.26-14.4.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864302 https://bugzilla.novell.com/show_bug.cgi?id=864302#c15 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:planned:update | maint:running:58657:low --- Comment #15 from Swamp Workflow Management <swamp@suse.de> 2014-08-20 12:13:26 UTC --- An update workflow for this issue was started. This issue was rated as low. Please submit fixed packages until 2014-09-17. https://swamp.suse.de/webswamp/wf/58657 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864302 https://bugzilla.novell.com/show_bug.cgi?id=864302#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| maint:running:58657:low | maint:running:58657:low | |maint:released:sle11-sp3:58 | |658 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864302 https://bugzilla.novell.com/show_bug.cgi?id=864302#c16 --- Comment #16 from Swamp Workflow Management <swamp@suse.de> 2014-08-29 19:04:26 UTC --- SUSE-RU-2014:1075-1: An update that has two recommended fixes can now be installed. Category: recommended (low) Bug References: 864302,881863 CVE References: Sources used: SUSE Linux Enterprise Server 11 SP3 for VMware (src): tar-1.26-1.2.6.1 SUSE Linux Enterprise Server 11 SP3 (src): tar-1.26-1.2.6.1 SUSE Linux Enterprise Desktop 11 SP3 (src): tar-1.26-1.2.6.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=864302 https://bugzilla.novell.com/show_bug.cgi?id=864302#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| maint:running:58657:low | |maint:released:sle11-sp3:58 |maint:released:sle11-sp3:58 |658 |658 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=864302 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard| |maint:released:sle11-sp3:58 |maint:released:sle11-sp3:58 |658 maint:planned:update |658 | -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com