Re: [PATCH] x86/kexec: fix a kexec_file_load failure

2018-12-27 Thread Dave Young
On 12/27/18 at 01:06pm, Dave Young wrote: > The code cleanup mentioned in Fixes tag changed the behavior of > kexec_locate_mem_hole. The kexec_locate_mem_hole will try to > allocate free memory only when kbuf.mem is initialized as zero. > > But in x86 kexec_file_load implementation there are a

[PATCH] x86/kexec: fix a kexec_file_load failure

2018-12-26 Thread Dave Young
The code cleanup mentioned in Fixes tag changed the behavior of kexec_locate_mem_hole. The kexec_locate_mem_hole will try to allocate free memory only when kbuf.mem is initialized as zero. But in x86 kexec_file_load implementation there are a few places the kbuf.mem is reused like below: /*