Your message dated Wed, 06 Feb 2019 20:48:59 +0000 with message-id <E1grU7v-000J6r-7q@fasolo.debian.org> and subject line Bug#903931: fixed in initramfs-tools 0.133 has caused the Debian Bug report #903931, regarding please use gzip instead of zcat in unmkinitramfs to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 903931: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903931 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: "submit@bugs.debian.org" <submit@bugs.debian.org>
- Subject: [initramfs-tools-core] unmkinitramfs uses "-t" for zcat like it was a "test integrity" option (it's not and it causes crashes)
- From: john terragon <terragonjohn@yahoo.com>
- Date: Mon, 16 Jul 2018 20:17:13 +0000 (UTC)
- Message-id: <1443448681.5299882.1531772233505@mail.yahoo.com>
- References: <1443448681.5299882.1531772233505.ref@mail.yahoo.com>
Package: initramfs-tools-core
Version: 0.130
Severity: normal
--- Please enter the report below this line. ---
The following code fragment is in the xcpio() function of unmkinitramfsunmkinitramfs:
if zcat -t "$archive" >/dev/null 2>&1 ; then
zcat "$archive"
elif xzcat -t "$archive" >/dev/null 2>&1 ; then
xzcat "$archive"
elif bzip2 -t "$archive" >/dev/null 2>&1 ; then
bzip2 -c -d "$archive"
elif lzop -t "$archive" >/dev/null 2>&1 ; then
lzop -c -d "$archive"
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"). 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
Notice that even when it aborts, the "guilty" initrd file is perfectly fine and it can uncrompressed with gunzip or with zcat (without the -t, which, again, it is not the flag for testing the input file).
Solution: remove the -t from "if zcat -t "$archive" >/dev/null 2>&1 ;"--- System information. ---
Architecture:
Kernel: Linux 4.17.4-cu5
Debian Release: buster/sid
500 unstable ftp.debian.org
500 testing ftp.debian.org
500 stable ftp.debian.org
500 oldstable ftp.debian.org
500 oldoldstable ftp.debian.org
1 experimental ftp.debian.org
--- Package information. ---
Depends (Version) | Installed
===================================-+-==============
klibc-utils (>= 2.0.4-8~) | 2.0.4-11
cpio | 2.12+dfsg-6
kmod | 25-1
OR module-init-tools | 20-1
udev | 239-5
Recommends (Version) | Installed
=====================================-+-===================
busybox (>= 1:1.22.0-17~) | 1:1.27.2-2
OR busybox-static (>= 1:1.22.0-17~) |
Suggests (Version) | Installed
==============================-+-===========
bash-completion | 1:2.8-1
--- End Message ---
--- Begin Message ---
- To: 903931-close@bugs.debian.org
- Subject: Bug#903931: fixed in initramfs-tools 0.133
- From: Ben Hutchings <ben@decadent.org.uk>
- Date: Wed, 06 Feb 2019 20:48:59 +0000
- Message-id: <E1grU7v-000J6r-7q@fasolo.debian.org>
Source: initramfs-tools Source-Version: 0.133 We believe that the bug you reported is fixed in the latest version of initramfs-tools, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 903931@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Ben Hutchings <ben@decadent.org.uk> (supplier of updated initramfs-tools package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Wed, 06 Feb 2019 20:13:59 +0000 Source: initramfs-tools Architecture: source Version: 0.133 Distribution: unstable Urgency: medium Maintainer: Debian kernel team <debian-kernel@lists.debian.org> Changed-By: Ben Hutchings <ben@decadent.org.uk> Closes: 677049 766446 848906 893897 903931 908967 916935 Changes: initramfs-tools (0.133) unstable; urgency=medium . [ Ben Hutchings ] * [942f1d2] unmkinitramfs, lsinitramfs: Avoid zcat compatibility issue by running gzip (Closes: #903931) * [94683ef] mkinitramfs: Remove check for kernel version < 2.6.38 * [40fb032] mkinitramfs; Stop setting both compress and COMPRESS variables * [01af757] initramfs-tools: Change trigger declaration to "interest-await" * [2bb6a9c] update-initramfs: Remove test for working dpkg-trigger * [1f10559] kernel hooks: Remove use of update-initramfs -t option * [1343b68] update-initramfs: Remove undocumented -y option * [e0d4024] mkinitramfs: Warn if the compression command is not recognised * [bafb9d4] init: Always export the resume and noresume variables, as documented * [f21fdae] debian/rules: Use a more conservative "find" for shellcheck arguments * [9c63564] Change get_fstype to be silent on failure * [58df6d3] scripts/functions: Abort _checkfs_once early if fs type is unknown * [f8ceeb9] scripts/local: Explicitly check for missing root parameter and mount failure. Thanks to "G.raud" <graud@gmx.com> (Closes: #848906) * [a5ae8a1] scripts/{local,nfs}: Remove redundant modprobe of filesystem modules * [4807ede] hook-functions: Avoid symlinks that conflict with usr-merge in copy_file * [79f49b9] {hooks,scripts}/keymap: Use setupcon --setup-dir * [839be1b] scripts/local: Handle rootfstype=auto the same as if type is unspecified (Closes: #908967) * [f086b72] mkinitramfs: Use default compression level for lzop (Closes: #916935) * [d343f5e] README: Summarise what initramfs-tools does and point to manual pages * [c5dd80a] initramfs-tools(7): Document how to update the initramfs from another package (Closes: #893897) * [2e5e389] scripts/functions: Revert change to _log_msg and make callers format-safe * [49139ca] scripts/local-premount/resume: Report when we are resuming. Thanks to Mario Limonciello <mario.limonciello@dell.com> * [28b9d1d] scripts/nfs: Use "sleep" instead of /bin/sleep (Closes: #677049) * [db394d3] Print warnings and errors in initramfs generation consistently * [d9cf2f2] hooks/fsck: If get_fstype fails, report which file system it failed for (Closes: #766446) * [1ae0994] mkinitramfs: Change EXTRA_CONF to include directory names * [34f84b4] mkinitramfs: Don't add directories to EXTRA_CONF * [db31e7e] mkinitramfs: Use pigz if available instead of gzip * [e4a5589] initramfs-tools-core: Recommend pigz * [b8d3d59] Remove descriptions of removed/deprecated options from man page synopses * [4d57f63] mkinitramfs(8), update-initramfs(8): Fix over-indentation of options * [66902db] update-initramfs(8): Fix formatting of mode options in the synopsis * [bb9d247] Move usage function for mkinitramfs out of hook-functions * [2380cb8] update-initramfs: Use getopt instead of getopts * [abca193] update-initramfs: Make -h option return 0 and write usage to stdout * [ccf07ee] update-initramfs: Support --help option * [c800321] Make all commands return 2 in case of a usage error * [fc81f7f] mkinitramfs: Support -h and --help options * [94e05dd] unmkinitramfs(8): Abbreviate synopsis to avoid wrapping * [00809d7] Make manual pages and usage messages more consistent * [45f4d15] unmkinitramfs: Write usage on stderr in case of error * [908bd7d] lsinitramfs, mkinitramfs, unmkinitramfs: Show usage if getopt fails * [1cc6e78] lsinitramfs: Check for empty list of arguments after parsing options * [fb3ea62] hooks/resume: Report in excruciating detail if the -v option is used . [ Benjamin Drung ] * [806c757] scripts/functions: Fix syntax error: unexpected "(" on panic * [88b0c9b] mkinitramfs: Fix termination of gzip compression case * [5438f31] scripts/functions: Drop render function * [3c8b4c3] Remove trailing newline from debian/changelog * [f277309] Fix (nearly) all issues found by shellcheck * [2bab73b] Disable shellcheck for desired behaviour * [3650731] Replace 'echo -n' by printf * [9c0feb2] Run shellcheck on package build time * [c9cb0a0] Add autopkgtest for shellcheck Checksums-Sha1: 935bb5cd557cfb57fc049ad0d8ab207dcf2ad1d9 1821 initramfs-tools_0.133.dsc 532acccee5057c4e0fad42c5a04d4ad195f9277e 90132 initramfs-tools_0.133.tar.xz e22a1033c784c9f3122afff2a6680601b9444e96 6138 initramfs-tools_0.133_source.buildinfo Checksums-Sha256: bf608639c7d5100663d4f35b182e3ade0f63beac0e3e216dc8e5cb9984ec6a41 1821 initramfs-tools_0.133.dsc b68226091ad2047c76b517498b1d921a28f35b252a7351003b0822220d632921 90132 initramfs-tools_0.133.tar.xz 17343a0067185fdda1432a1229b875f06bf25f8f974fa09899c42f8e848079a8 6138 initramfs-tools_0.133_source.buildinfo Files: 5bc39635346a0d9b7effbd53fc0b21aa 1821 utils optional initramfs-tools_0.133.dsc a51863f6cc15e39b1c368ef256e12a34 90132 utils optional initramfs-tools_0.133.tar.xz e7fcbb60695de37344eea726080d62c5 6138 utils optional initramfs-tools_0.133_source.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAlxbRPoACgkQ57/I7JWG EQnmgQ//RKHiLOaKD7B6B6MNU3UwJI1LApzUSwXCAr/OvPsLG/mRrL9C1phnHJ1K brki5eoCDIOy+dXnEfZaebwL/AQQdSBq2GdNt+honc1YT8jcVjANtJdxUQRmGnQD khOkcGH8mNDIuFPygWYVtF0bBcGHfw8NpDn7TfAblPkjIxKlxmj9CU4TYXA70Av/ nYcNrnOz0Z28WN64ckvbyqkHMrPvUG9k63ahcKRQP3KpK+G8vLSH9cnpV//VUz+g aU/5OTVSzx3SNnuViySR03TKQVVXOJirCUfUM8ybLc58rcq0dNoGAG1JXTEgohOU 6NxUfvsrDag5hzVZlP1yFtDRtNV+f3wzvrhgvRo1KrrBmPI9KNNV7q/0V2sbCS7y r6gLukYATR8/lZ/b4KfFE7Hsutokz0RL/AG04WWPXPQth7MExIt0G8o69G79Ni00 UPQTjKS41ow5/V9F4WYgspnLBQl7CyOzYaXfhiiL6/hzSRMOrf0dXhP7V4K9pyR1 cteSgYYZcTqXhqj0piK0SbfwsyEBKP12jI6zciMoTeBOSglgU5OELrsOO2SeCKdX SCw/NiI5gRHUOSGMCBY5esjWzgfKa/ZHL9TORcvYDXDK6lH133b3vfaBSDdHh5fZ AU3NkV7rH8pIoL+hQTtwKjBHC6FcidzRE89DFaslouiqkqvFrIM= =5DW4 -----END PGP SIGNATURE-----
--- End Message ---