[PATCH v3 24/75] x86/boot/compressed/64: Unmap GHCB page before booting the kernel

2020-04-28 Thread Joerg Roedel
From: Joerg Roedel Force a page-fault on any further accesses to the GHCB page when they shouldn't happen anymore. This will catch the bugs where a #VC exception is raised when no one is expected anymore. Signed-off-by: Joerg Roedel --- arch/x86/boot/compressed/ident_map_64.c | 23

Re: [PATCH v3 24/75] x86/boot/compressed/64: Unmap GHCB page before booting the kernel

2020-05-13 Thread Borislav Petkov
On Tue, Apr 28, 2020 at 05:16:34PM +0200, Joerg Roedel wrote: > @@ -302,9 +313,13 @@ void do_boot_page_fault(struct pt_regs *regs, unsigned > long error_code) >* - User faults >* - Reserved bits set >*/ > - if (error_code & (X86_PF_PROT | X86_PF_USER | X86_PF_

Re: [PATCH v3 24/75] x86/boot/compressed/64: Unmap GHCB page before booting the kernel

2020-05-13 Thread Joerg Roedel
On Wed, May 13, 2020 at 01:13:40PM +0200, Borislav Petkov wrote: > On Tue, Apr 28, 2020 at 05:16:34PM +0200, Joerg Roedel wrote: > > @@ -302,9 +313,13 @@ void do_boot_page_fault(struct pt_regs *regs, unsigned > > long error_code) > > * - User faults > > * - Reserved bits set >

Re: [PATCH v3 24/75] x86/boot/compressed/64: Unmap GHCB page before booting the kernel

2020-05-13 Thread Borislav Petkov
On Wed, May 13, 2020 at 01:30:11PM +0200, Joerg Roedel wrote: > Yeah, I had this this way in v2, but changed it upon you request[1] :) Yeah, I was wondering why this isn't a separate function - you like them so much. :-P > [1] https://lore.kernel.org/lkml/20200402114941.ga9...@zn.tnic/ But that

Re: [PATCH v3 24/75] x86/boot/compressed/64: Unmap GHCB page before booting the kernel

2020-06-03 Thread Joerg Roedel
On Wed, May 13, 2020 at 01:46:33PM +0200, Borislav Petkov wrote: > On Wed, May 13, 2020 at 01:30:11PM +0200, Joerg Roedel wrote: > > Yeah, I had this this way in v2, but changed it upon you request[1] :) > > Yeah, I was wondering why this isn't a separate function - you like them > so much. :-P >