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


Groups > linux.debian.kernel > #66122

Bug#946469: initramfs-tools-core: unmkinitrams creates broken binaries

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#946469: initramfs-tools-core: unmkinitrams creates broken binaries
Date 2020-01-18 18:10 +0100
Message-ID <zpZLH-2Yt-1@gated-at.bofh.it> (permalink)
References <zbtLI-8of-13@gated-at.bofh.it> <zbtLI-8of-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


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

Control: reassign -1 cpio 2.13+dfsg-1

On Mon, 09 Dec 2019 15:58:54 +0000 Jen Bowen <debianfangirl@gmail.com> wrote:
> Package: initramfs-tools-core
> Version: 0.135
> Severity: normal
> 
> Dear Maintainer,
> 
> When unmkinitramfs is used on prepended initramfs images, such as the
> initrd.img-5.3.0-2-amd64 generated by the linux-image-5.3.0-2-amd64 package,
> the symlink at main/lib64/ld-linux-x86-64.so.2 is broken.  This seems to be a
> result of the use of the "--no-absolute-filenames" flag with cpio.

I think we need to use this option, so that it's safe to unpack an
untrusted initramfs image.

> If I remove this flag and run unmkinitramfs again, the symlink to the linker is
> intact, and it's possible to chroot into the extracted initramfs image and run
> binaries in main/bin .
> 
> I don't know if it's the intention of unmkinitramfs to create functional
> binaries in the extracted images, but it's very helpful in my use case!

It's not a specific goal, but the symlinks should not be broken.

This seems to be a regression in cpio: the filename restrictions
requested by this option are being applied to symlink targets, whereas
they should only be applied to destination filenames and hard link
targets.

Ben.
 
-- 
Ben Hutchings
Humans are not rational beings; they are rationalising beings.

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


Thread

Bug#946469: initramfs-tools-core: unmkinitrams creates broken binaries Jen Bowen <debianfangirl@gmail.com> - 2019-12-09 17:10 +0100
  Bug#946469: initramfs-tools-core: unmkinitrams creates broken binaries Ben Hutchings <ben@decadent.org.uk> - 2020-01-18 18:10 +0100
  Processed: Re: initramfs-tools-core: unmkinitrams creates broken  binaries "Debian Bug Tracking System" <owner@bugs.debian.org> - 2020-01-18 18:10 +0100

csiph-web