Re: [PATCH] bootconfig: Extend the magic check range to the preceding 3 bytes

2020-11-12 Thread Steven Rostedt
On November 12, 2020 9:21:08 PM EST, Masami Hiramatsu wrote: >On Fri, 13 Nov 2020 09:27:38 +0800 >Chen Yu wrote: > >> On Fri, Nov 13, 2020 at 1:27 AM Masami Hiramatsu > wrote: >> > >> > Since Grub may align the size of initrd to 4 if user pass >> > initrd from cpio, we have to check the prece

Re: [PATCH] bootconfig: Extend the magic check range to the preceding 3 bytes

2020-11-12 Thread Masami Hiramatsu
On Fri, 13 Nov 2020 09:27:38 +0800 Chen Yu wrote: > On Fri, Nov 13, 2020 at 1:27 AM Masami Hiramatsu wrote: > > > > 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. > > > > Fixes: 85c46b78da58 ("bootconfig: Add bootco

Re: [PATCH] bootconfig: Extend the magic check range to the preceding 3 bytes

2020-11-12 Thread Chen Yu
On Fri, Nov 13, 2020 at 1:27 AM Masami Hiramatsu wrote: > > 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. > > Fixes: 85c46b78da58 ("bootconfig: Add bootconfig magic word for indicating > bootconfig explicitly") > Repo

[PATCH] bootconfig: Extend the magic check range to the preceding 3 bytes

2020-11-12 Thread Masami Hiramatsu
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. Fixes: 85c46b78da58 ("bootconfig: Add bootconfig magic word for indicating bootconfig explicitly") Reported-by: Chen Yu Signed-off-by: Masami Hiramatsu --- init/main.c |