Re: [BUGFIX PATCH 1/1] bootconfig: Fix to remove bootconfig data from initrd while boot

From: Steven Rostedt
Date: Fri Apr 24 2020 - 19:00:50 EST


On Sat, 25 Apr 2020 01:34:12 +0900
Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote:

> If there is a bootconfig data in the tail of initrd/initramfs,
> initrd image sanity check caused an error while decompression
> stage as follows.
>
> [ 0.883882] Unpacking initramfs...
> [ 2.696429] Initramfs unpacking failed: invalid magic at start of compressed archive
>
> This error will be ignored if CONFIG_BLK_DEV_RAM=n,
> but CONFIG_BLK_DEV_RAM=y the kernel failed to mount rootfs
> and causes a panic.
>
> To fix this issue, shrink down the initrd_end for removing
> tailing bootconfig data while boot the kernel.
>
> Fixes: 7684b8582c24 ("bootconfig: Load boot config from the tail of initrd")
> Signed-off-by: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx
> ---

Thanks Masami! I pulled this into my urgent queue.

-- Steve