Re: [PATCH] x86/mce: Make machine check speculation protected

2018-01-19 Thread Woodhouse, David
On Thu, 2018-01-18 at 16:28 +0100, Thomas Gleixner wrote: > The machine check idtentry uses an indirect branch directly from the low > level code. This evades the speculation protection. > > Replace it by a direct call into C code and issue the indirect call there > so the compiler can apply the p

Re: [PATCH] x86/mce: Make machine check speculation protected

2018-01-18 Thread Peter Zijlstra
On Thu, Jan 18, 2018 at 04:28:26PM +0100, Thomas Gleixner wrote: > The machine check idtentry uses an indirect branch directly from the low > level code. This evades the speculation protection. > > Replace it by a direct call into C code and issue the indirect call there > so the compiler can appl

Re: [PATCH] x86/mce: Make machine check speculation protected

2018-01-18 Thread David Woodhouse
On Thu, 2018-01-18 at 16:28 +0100, Thomas Gleixner wrote: > The machine check idtentry uses an indirect branch directly from the low > level code. This evades the speculation protection. > > Replace it by a direct call into C code and issue the indirect call there > so the compiler can apply the p

Re: [PATCH] x86/mce: Make machine check speculation protected

2018-01-18 Thread Borislav Petkov
On Thu, Jan 18, 2018 at 04:28:26PM +0100, Thomas Gleixner wrote: > The machine check idtentry uses an indirect branch directly from the low > level code. This evades the speculation protection. > > Replace it by a direct call into C code and issue the indirect call there > so the compiler can appl