Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #65847 > unrolled thread
| Started by | Jen Bowen <debianfangirl@gmail.com> |
|---|---|
| First post | 2019-12-09 17:10 +0100 |
| Last post | 2020-01-18 18:10 +0100 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.debian.kernel
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
| From | Jen Bowen <debianfangirl@gmail.com> |
|---|---|
| Date | 2019-12-09 17:10 +0100 |
| Subject | Bug#946469: initramfs-tools-core: unmkinitrams creates broken binaries |
| Message-ID | <zbtLI-8of-13@gated-at.bofh.it> |
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. 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! Thanks for your assistance. -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.3.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_IE.utf8, LC_CTYPE=en_IE.utf8 (charmap=UTF-8), LANGUAGE=en_IE:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages initramfs-tools-core depends on: ii coreutils 8.30-3+b1 ii cpio 2.13+dfsg-1 ii e2fsprogs 1.45.4-1 ii klibc-utils 2.0.7-1 ii kmod 26-3 ii logsave 1.45.4-1 ii udev 244-3 Versions of packages initramfs-tools-core recommends: ii busybox 1:1.30.1-4 ii pigz 2.4-1+b1 Versions of packages initramfs-tools-core suggests: ii bash-completion 1:2.9-1 -- no debconf information
[toc] | [next] | [standalone]
| From | Ben Hutchings <ben@decadent.org.uk> |
|---|---|
| Date | 2020-01-18 18:10 +0100 |
| Message-ID | <zpZLH-2Yt-1@gated-at.bofh.it> |
| In reply to | #65847 |
[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.
[toc] | [prev] | [next] | [standalone]
| From | "Debian Bug Tracking System" <owner@bugs.debian.org> |
|---|---|
| Date | 2020-01-18 18:10 +0100 |
| Subject | Processed: Re: initramfs-tools-core: unmkinitrams creates broken binaries |
| Message-ID | <zpZLI-2Yt-15@gated-at.bofh.it> |
| In reply to | #65847 |
Processing control commands: > reassign -1 cpio 2.13+dfsg-1 Bug #946469 [initramfs-tools-core] initramfs-tools-core: unmkinitrams creates broken binaries Bug reassigned from package 'initramfs-tools-core' to 'cpio'. No longer marked as found in versions initramfs-tools/0.135. Ignoring request to alter fixed versions of bug #946469 to the same values previously set Bug #946469 [cpio] initramfs-tools-core: unmkinitrams creates broken binaries Marked as found in versions cpio/2.13+dfsg-1. -- 946469: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=946469 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.kernel
csiph-web