Re: [PATCH v2] x86, efi: never relocate kernel below lowest acceptable address

2019-10-11 Thread Kairui Song
On Fri, Oct 11, 2019 at 9:24 PM Borislav Petkov wrote: > > On Fri, Sep 20, 2019 at 12:05:21AM +0800, Kairui Song wrote: > > Currently, kernel fails to boot on some HyperV VMs when using EFI. > > And it's a potential issue on all platforms. > > > > It's caused a broken kernel relocation on EFI

Re: [PATCH v2] x86, efi: never relocate kernel below lowest acceptable address

2019-10-11 Thread Borislav Petkov
On Fri, Sep 20, 2019 at 12:05:21AM +0800, Kairui Song wrote: > Currently, kernel fails to boot on some HyperV VMs when using EFI. > And it's a potential issue on all platforms. > > It's caused a broken kernel relocation on EFI systems, when below three > conditions are met: > > 1. Kernel image

Re: [PATCH v2] x86, efi: never relocate kernel below lowest acceptable address

2019-10-11 Thread Kairui Song
On Thu, Sep 26, 2019 at 1:36 AM Kairui Song wrote: > > On Wed, Sep 25, 2019 at 11:25 PM Ard Biesheuvel > wrote: > > > > On Thu, 19 Sep 2019 at 18:06, Kairui Song wrote: > > > > > > Currently, kernel fails to boot on some HyperV VMs when using EFI. > > > And it's a potential issue on all

Re: [PATCH v2] x86, efi: never relocate kernel below lowest acceptable address

2019-09-25 Thread Kairui Song
On Wed, Sep 25, 2019 at 11:25 PM Ard Biesheuvel wrote: > > On Thu, 19 Sep 2019 at 18:06, Kairui Song wrote: > > > > Currently, kernel fails to boot on some HyperV VMs when using EFI. > > And it's a potential issue on all platforms. > > > > It's caused a broken kernel relocation on EFI systems,

Re: [PATCH v2] x86, efi: never relocate kernel below lowest acceptable address

2019-09-25 Thread Ard Biesheuvel
On Thu, 19 Sep 2019 at 18:06, Kairui Song wrote: > > Currently, kernel fails to boot on some HyperV VMs when using EFI. > And it's a potential issue on all platforms. > > It's caused a broken kernel relocation on EFI systems, when below three > conditions are met: > > 1. Kernel image is not

Re: [PATCH v2] x86, efi: never relocate kernel below lowest acceptable address

2019-09-25 Thread Jarkko Sakkinen
On Fri, Sep 20, 2019 at 12:05:21AM +0800, Kairui Song wrote: > Currently, kernel fails to boot on some HyperV VMs when using EFI. > And it's a potential issue on all platforms. > > It's caused a broken kernel relocation on EFI systems, when below three > conditions are met: > > 1. Kernel image

[PATCH v2] x86, efi: never relocate kernel below lowest acceptable address

2019-09-19 Thread Kairui Song
Currently, kernel fails to boot on some HyperV VMs when using EFI. And it's a potential issue on all platforms. It's caused a broken kernel relocation on EFI systems, when below three conditions are met: 1. Kernel image is not loaded to the default address (LOAD_PHYSICAL_ADDR) by the loader.