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


Groups > linux.debian.kernel > #53627

Bug#815915: lsinitramfs fails to properly skip the padding after each cpio archive

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#815915: lsinitramfs fails to properly skip the padding after each cpio archive
Date 2016-04-16 15:10 +0200
Message-ID <roy94-3Uq-13@gated-at.bofh.it> (permalink)
References <roy94-3Uq-15@gated-at.bofh.it> <risg2-jV-21@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

On Wed, 30 Mar 2016 14:33:52 -0300 Henrique de Moraes Holschuh <hmh@debian.org> wrote:
> (note: I am not subscribed to this bug report. If you want a reply from
> me, please keep me Cc'd).
[...]
> Now, to the root cause of the breakage:
> 
> The heuristics initramfs-tools "lsinitramfs" uses (used?) to locate the
> next initramfs are incomplete (it does not skip over the padding at the
> end of each initramfs)

Nope.

[...]
> lsinitramfs needs to skip all zero bytes (or dwords) to locate the next
> initramfs segment, instead of assuming a cpio block size of 512 bytes.
[...]

That is exactly what it does.

Please don't guess what the 'root cause' is, actually do the research.

Ben.

-- 
Ben Hutchings
All the simple programs have been written, and all the good names taken.

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


Thread

Bug#815915: lsinitramfs fails to properly skip the padding after each cpio archive Henrique de Moraes Holschuh <hmh@debian.org> - 2016-03-30 19:40 +0200
  Bug#815915: lsinitramfs fails to properly skip the padding after each cpio archive Ben Hutchings <ben@decadent.org.uk> - 2016-04-16 15:10 +0200
    Bug#815915: lsinitramfs fails to properly skip the padding after each cpio archive Henrique de Moraes Holschuh <hmh@debian.org> - 2016-04-17 19:50 +0200

csiph-web