Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #61454

Bug#903931: [initramfs-tools-core] unmkinitramfs uses "-t" for zcat like it was a "test integrity" option (it's not and it causes crashes)

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#903931: [initramfs-tools-core] unmkinitramfs uses "-t" for zcat like it was a "test integrity" option (it's not and it causes crashes)
Date Wed, 18 Jul 2018 07:10:01 +0200
Message-ID <wcMSR-1e5-1@gated-at.bofh.it> (permalink)
References <wcMSR-1e5-3@gated-at.bofh.it> <wcii6-89r-1@gated-at.bofh.it> <wcii6-89r-1@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Wed Jul 18 05:09:09 2018
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -2.05
Reply-To Ben Hutchings <ben@decadent.org.uk>, 903931@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian kernel team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message followup 903931
X-Debian-Pr-Package initramfs-tools-core
X-Debian-Pr-Source initramfs-tools
X-Spam-Bayes score:0.0000 Tokens: new, 18; hammy, 150; neutral, 53; spammy, 0. spammytokens: hammytokens:0.000-+--H*c:pgp-sha512, 0.000-+--H*F:D*decadent.org.uk, 0.000-+--H*RU:sk:shadbol, 0.000-+--H*r:sk:shadbol, 0.000-+--HX-SA-Exim-Scanned:sk:shadbol
Content-Type multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-vXf2CIHb71euaLjx0CxP"
X-Mailer Evolution 3.28.2-1
MIME-Version 1.0
X-Sa-Exim-Connect-IP 2a02:8011:400e:2:cbab:f00:c93f:614
X-Sa-Exim-Mail-From ben@decadent.org.uk
X-Sa-Exim-Scanned No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1473201
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 63
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc 903931@bugs.debian.org, gzip@packages.debian.org
X-Original-Date Wed, 18 Jul 2018 06:03:51 +0100
X-Original-Message-ID <6e3500c445db51e2aa478f1aad14411cd2a924b7.camel@decadent.org.uk>
X-Original-References <1443448681.5299882.1531772233505.ref@mail.yahoo.com> <1443448681.5299882.1531772233505@mail.yahoo.com> <1443448681.5299882.1531772233505@mail.yahoo.com>
Xref csiph.com linux.debian.bugs.dist:908157 linux.debian.kernel:61454

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Control: reassign -1 gzip
Control: retitle -1 zcat -t sometimes crashes with heap corruption
Control: tag -1 moreinfo

On Mon, 16 Jul 2018 20:17:13 +0000 (UTC) john terragon <terragonjohn@yahoo.com> wrote:
[...]
> the -t flag used with zcat does not have the same meaning it had with
the other programs, xzcat, bzip2 and lzop. With the latter it
> means "just do  a test" with the former it is equivalent to -vT
(neither -v nor -T means "test").

The manual page for zcat clearly states that -t does an integrity test.
 If it does not, that's a bug in zcat.

> Now, this causes a strange and
> unpredictable behavior of unmkinitramfs (and of lsinitramfs, which
uses unmkinitramfs) where for some, not all, initrd files it just
aborts its operations with this
>
> free(): invalid next size (normal)
> 
> Aborted
[...]

Crashing on weird input is a bug in the program that crashes.

Please report which version of gzip is installed.

Ben.

-- 
Ben Hutchings
Logic doesn't apply to the real world. - Marvin Minsky

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#903931: [initramfs-tools-core] unmkinitramfs uses "-t" for zcat like it was a "test integrity" option (it's not and it causes crashes) john terragon <terragonjohn@yahoo.com> - 2018-07-16 22:30 +0200
  Processed: Re: [initramfs-tools-core] unmkinitramfs uses "-t" for  zcat like it was a "test integrity" option (it's not and it causes  crashes) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2018-07-18 07:10 +0200
  Bug#903931: [initramfs-tools-core] unmkinitramfs uses "-t" for zcat like it was a "test integrity" option (it's not and it causes crashes) Ben Hutchings <ben@decadent.org.uk> - 2018-07-18 07:10 +0200
  Bug#903931: Neither zcat nor xzcat should be used in scripts Antonio Diaz Diaz <antonio@gnu.org> - 2018-07-27 09:50 +0200
  Bug#903931: Maybe trailing garbage or data in an unsupported format is causing the problem? Antonio Diaz Diaz <antonio@gnu.org> - 2018-07-30 00:50 +0200

csiph-web