News for hackers. Stuff that matters.
Re:The cpio trailer problem (2018) by rwmj on Sunday July 19, 2020 @06:17AM (#23888336)
The Linux kernel will keep going after the "TRAILER!!!" entry in the initramfs. This is useful in the context of initramfs because you can concatenate them together - a trivial way to add more files to the init ramdisk or even overwrite existing ones. You can even concat gz-compressed cpio initramfs files which causes a similar problem finding the uncompressed size because the last 4 bytes will only show the size of the last gzip section (try with gzip -l).

There are no comments on this comment yet.