Files
linux/init
Masami Hiramatsu 9d152949f5 bootconfig: Extend the magic check range to the preceding 3 bytes
commit 50b8a74285 upstream.

Since Grub may align the size of initrd to 4 if user pass
initrd from cpio, we have to check the preceding 3 bytes as well.

Link: https://lkml.kernel.org/r/160520205132.303174.4876760192433315429.stgit@devnote2

Cc: stable@vger.kernel.org
Fixes: 85c46b78da ("bootconfig: Add bootconfig magic word for indicating bootconfig explicitly")
Reported-by: Chen Yu <yu.chen.surf@gmail.com>
Tested-by: Chen Yu <yu.chen.surf@gmail.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-18 19:22:26 +01:00
..
2020-07-31 08:17:52 +02:00
2020-07-31 08:17:52 +02:00
2020-07-31 08:17:54 +02:00
2020-07-31 08:17:54 +02:00