Re: [PATCH v2 0/2] x86/asm: avoid register pressure from static_cpu_has()

From: Borislav Petkov
Date: Fri Sep 10 2021 - 09:24:42 EST


On Fri, Sep 10, 2021 at 11:16:47AM +0200, Borislav Petkov wrote:
> Right, maybe I'm missing something but what is wrong with the immediate
> addressing variant, i.e., that thing:
>
> testb $0x8,0xffffffff89346eea
>
> and you need to *force* %rip-relative?

To answer my own question after peterz asked: that hardcoded address
won't work with KASLR, ofc.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette