diff options
author | Masami Hiramatsu <[email protected]> | 2020-04-26 15:53:30 +0900 |
---|---|---|
committer | Steven Rostedt (VMware) <[email protected]> | 2020-05-06 09:04:11 -0400 |
commit | de462e5f10718517bacf2f84c8aa2804567ef7df (patch) | |
tree | 249437f9aee0e376efae8ee7831bfabbc95e81c1 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 6a8b55ed4056ea5559ebe4f6a4b247f627870d4c (diff) |
bootconfig: Fix to remove bootconfig data from initrd while boot
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.
Link: http://lkml.kernel.org/r/158788401014.24243.17424755854115077915.stgit@devnote2
Cc: Borislav Petkov <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: [email protected]
Fixes: 7684b8582c24 ("bootconfig: Load boot config from the tail of initrd")
Signed-off-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions