Re: [PATCH v3 03/13] x86/retpoline/entry: Convert entry assembler indirect jumps

From: Dave Hansen
Date: Thu Jan 04 2018 - 09:46:51 EST


On 01/04/2018 06:37 AM, David Woodhouse wrote:
> KPTI complicates this a little; the one in entry_SYSCALL_64_trampoline
> can't just jump to the thunk because the thunk isn't mapped. So it gets
> its own copy of the thunk, inline.

This one call site isn't too painful, of course.

But, is there anything keeping us from just sticking the thunk in the
entry text section where it would be available while still in the
trampoline?