Re: [PATCH] x86: static_cpu_has_safe: discard dynamic check after init
From: H. Peter Anvin
Date: Thu Jan 21 2016 - 18:36:36 EST
On 01/21/16 14:56, Borislav Petkov wrote:
> so this is silly: we're basically jumping after the JMP instruction
> itself. So that will be the case on !X86_BUG_SYSRET_SS_ATTRS CPUs.
> Still a two-byte and now even a useless JMP.
> The right thing to do would be to generate a NOP simply.
OK, so gcc isn't as clever as I thought.