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 +++++++++++++++