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

2019-10-23 Thread Kairui Song
On Tue, Oct 22, 2019 at 6:15 PM Ard Biesheuvel wrote: > > On Tue, 22 Oct 2019 at 09:45, Borislav Petkov wrote: > > > > On Tue, Oct 22, 2019 at 08:13:56AM +0200, Ard Biesheuvel wrote: > > > On Thu, 17 Oct 2019 at 11:30, Kairui Song wrote: > > > > > > > > Currently, kernel fails to boot on some

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

2019-10-22 Thread Ard Biesheuvel
On Tue, 22 Oct 2019 at 09:45, Borislav Petkov wrote: > > On Tue, Oct 22, 2019 at 08:13:56AM +0200, Ard Biesheuvel wrote: > > On Thu, 17 Oct 2019 at 11:30, 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 v4] x86, efi: never relocate kernel below lowest acceptable address

2019-10-22 Thread Borislav Petkov
On Tue, Oct 22, 2019 at 08:13:56AM +0200, Ard Biesheuvel wrote: > On Thu, 17 Oct 2019 at 11:30, 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 by broken kernel relocation on EFI

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

2019-10-22 Thread Ard Biesheuvel
On Thu, 17 Oct 2019 at 11:30, 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 by broken kernel relocation on EFI systems, when below three > conditions are met: > > 1. Kernel image is not

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

2019-10-17 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 by 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.