summaryrefslogtreecommitdiff
path: root/tools/bootconfig/main.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2020-11-12 20:27:31 +0300
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-11-13 04:36:52 +0300
commit50b8a742850fce7293bed45753152c425f7e931b (patch)
tree2e1a2a5174f4db385f491e143be0f6800a3c65c7 /tools/bootconfig/main.c
parent645f224e7ba2f4200bf163153d384ceb0de5462e (diff)
downloadlinux-50b8a742850fce7293bed45753152c425f7e931b.tar.xz
bootconfig: Extend the magic check range to the preceding 3 bytes
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: 85c46b78da58 ("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>
Diffstat (limited to 'tools/bootconfig/main.c')
0 files changed, 0 insertions, 0 deletions