Re: [PATCH 2/3] multiboot2: Use rel_min and rel_max for mbi destination

2021-09-13 Thread Simon Horman
On Fri, Sep 10, 2021 at 07:48:59PM -0700, Zhaofeng Li wrote: > This would segfault if mhi.rel_tag didn't exist. > > Signed-off-by: Zhaofeng Li Does the same problem exist a little further up, around line 574, also in multiboot2_x86_load() ? /* Pick the next aligned spot

[PATCH 2/3] multiboot2: Use rel_min and rel_max for mbi destination

2021-09-10 Thread Zhaofeng Li
This would segfault if mhi.rel_tag didn't exist. Signed-off-by: Zhaofeng Li --- kexec/arch/i386/kexec-mb2-x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kexec/arch/i386/kexec-mb2-x86.c b/kexec/arch/i386/kexec-mb2-x86.c index c10c0ef..49fcc2d 100644 --- a/kexec/arch/i38