linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* RFC: tolerate junk after valid initramfs
@ 2012-10-25  8:06 Ben Peddell
  0 siblings, 0 replies; only message in thread
From: Ben Peddell @ 2012-10-25  8:06 UTC (permalink / raw)
  To: linux-arm-kernel

At the moment, the initramfs handling code will reject a valid initramfs
if there is junk between the end of the valid initramfs and the
initramfs size given to the kernel.

For example passing initrd=0x01000000,4M will not work unless the
initramfs is either exactly 4M in size or is padded with zeroes up to 4M.

As those working with ARM processors might know, the initialization code
in the bootloader generally doesn't zero out unused memory, so that
memory will contain garbage.

What downsides are there to patching init/initramfs.c to have the kernel
accept valid initramfs images where the image is shorter than the length
passed to the kernel by the bootloader?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-25  8:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-25  8:06 RFC: tolerate junk after valid initramfs Ben Peddell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).