Re: [PATCH] x86/retpoline: Fix NOSPEC_JMP for tip

From: Thomas Gleixner
Date: Tue Jan 09 2018 - 19:39:21 EST


On Tue, 9 Jan 2018, Andi Kleen wrote:

> From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
>
> With the latest tip x86/pti I get oopses when booting
> a 64bit VM in qemu with RETPOLINE/gcc7 and PTI enabled.
>
> The following patch fixes it for me. Something doesn't
> seem to work with ALTERNATIVE_2. It adds only a few bytes
> more code, so seems acceptable.

Can you please figure out what goes wrong. David has tested this with his
compiler and I really don't want to 'fix' this just because some random
compiler version fails to build it.

Thanks,

tglx