Re: [PATCH] x86/tlb: Flush global mappings when KAISER is disabled

2021-03-25 Thread Ben Hutchings
On Thu, 2021-03-25 at 19:19 -0400, Sasha Levin wrote: > On Thu, Mar 25, 2021 at 04:36:55PM -0400, Sasha Levin wrote: > > On Thu, Mar 25, 2021 at 09:09:42PM +0100, Borislav Petkov wrote: > > > Hi stable folks, > > > > > > the patch below fixes kernels 4.4 and 4.9 booting on AMD platforms with > >

Re: [PATCH] x86/tlb: Flush global mappings when KAISER is disabled

2021-03-25 Thread Sasha Levin
On Thu, Mar 25, 2021 at 04:36:55PM -0400, Sasha Levin wrote: On Thu, Mar 25, 2021 at 09:09:42PM +0100, Borislav Petkov wrote: Hi stable folks, the patch below fixes kernels 4.4 and 4.9 booting on AMD platforms with PCID support. It doesn't have an upstream counterpart because it patches the

Re: [PATCH] x86/tlb: Flush global mappings when KAISER is disabled

2021-03-25 Thread Sasha Levin
On Thu, Mar 25, 2021 at 09:09:42PM +0100, Borislav Petkov wrote: Hi stable folks, the patch below fixes kernels 4.4 and 4.9 booting on AMD platforms with PCID support. It doesn't have an upstream counterpart because it patches the KAISER code which didn't go upstream. It applies fine to both of

[PATCH] x86/tlb: Flush global mappings when KAISER is disabled

2021-03-25 Thread Borislav Petkov
: Borislav Petkov Date: Thu, 25 Mar 2021 11:02:31 +0100 Subject: [PATCH] x86/tlb: Flush global mappings when KAISER is disabled Jim Mattson reported that Debian 9 guests using a 4.9-stable kernel are exploding during alternatives patching: kernel BUG at /build/linux-dqnRSc/linux-4.9.228/arch/x86

Re: [PATCH] x86/tlb: Flush global mappings when KAISER is disabled

2021-03-25 Thread Jim Mattson
On Thu, Mar 25, 2021 at 9:33 AM Hugh Dickins wrote: > > On Thu, 25 Mar 2021, Borislav Petkov wrote: > > > Ok, > > > > I tried to be as specific as possible in the commit message so that we > > don't forget. Please lemme know if I've missed something. > > > > Babu, Jim, I'd appreciate it if you

Re: [PATCH] x86/tlb: Flush global mappings when KAISER is disabled

2021-03-25 Thread Hugh Dickins
On Thu, 25 Mar 2021, Borislav Petkov wrote: > Ok, > > I tried to be as specific as possible in the commit message so that we > don't forget. Please lemme know if I've missed something. > > Babu, Jim, I'd appreciate it if you ran this to confirm. > > Thx. > > --- > From: Borislav Petkov >

Re: [PATCH] x86/tlb: Flush global mappings when KAISER is disabled

2021-03-25 Thread Babu Moger
On 3/25/21 5:29 AM, Borislav Petkov wrote: > Ok, > > I tried to be as specific as possible in the commit message so that we > don't forget. Please lemme know if I've missed something. > > Babu, Jim, I'd appreciate it if you ran this to confirm. > > Thx. > > --- > From: Borislav Petkov >

Re: [PATCH] x86/tlb: Flush global mappings when KAISER is disabled

2021-03-25 Thread Paolo Bonzini
On 25/03/21 11:29, Borislav Petkov wrote: diff --git a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h index f5ca15622dc9..2bfa4deb8cae 100644 --- a/arch/x86/include/asm/tlbflush.h +++ b/arch/x86/include/asm/tlbflush.h @@ -245,12 +245,15 @@ static inline void

[PATCH] x86/tlb: Flush global mappings when KAISER is disabled

2021-03-25 Thread Borislav Petkov
Ok, I tried to be as specific as possible in the commit message so that we don't forget. Please lemme know if I've missed something. Babu, Jim, I'd appreciate it if you ran this to confirm. Thx. --- From: Borislav Petkov Date: Thu, 25 Mar 2021 11:02:31 +0100 Jim Mattson reported that Debian