Re: [PATCH v2 1/6] x86/bugs: Add asm helpers for executing VERW

From: Pawan Gupta
Date: Tue Oct 24 2023 - 13:30:31 EST


On Tue, Oct 24, 2023 at 07:02:48PM +0200, Peter Zijlstra wrote:
> On Tue, Oct 24, 2023 at 09:45:20AM -0700, Pawan Gupta wrote:
>
> > > > modules being within 4GB of kernel.
>
> FWIW, it's 2G, it's a s32 displacement, the highest most address can
> jump 2g down, while the lowest most address can jump 2g up. Leaving a 2G
> directly addressable range.
>
> And yeah, we ensure kernel text and modules are inside that 2G range.

Ah, okay. Thanks for the info.