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

From: Pawan Gupta
Date: Wed Oct 25 2023 - 11:29:39 EST


On Wed, Oct 25, 2023 at 09:22:55AM +0200, Peter Zijlstra wrote:

> I'm thinking you need to at the very least stay in a section that's
> actually still mapped with PTI :-)
>
> .entry.text is the only thing that is reliably mapped with PTI (IIRC),
> some configs also get a chunk of the kernel image, but not all.
>
> Something like the below should do I suppose.

Thanks, will do this with Andrew's improvements.

> ---
> arch/x86/entry/entry.S | 15 +++++++++++++++