On Fri, Nov 24, 2017 at 10:14:16AM +0100, Ingo Molnar wrote:
> From: Andy Lutomirski <[email protected]>
> 
> On 64-bit kernels, we used to assume that TSS.sp0 was the current
> top of stack.  With the addition of an entry trampoline, this will
> no longer be the case.  Store the current top of stack in TSS.sp1,
> which is otherwise unused but shares the same cacheline.
> 
> Signed-off-by: Andy Lutomirski <[email protected]>
> Reviewed-by: Thomas Gleixner <[email protected]>
> Cc: Borislav Petkov <[email protected]>
> Cc: Borislav Petkov <[email protected]>
> Cc: Brian Gerst <[email protected]>
> Cc: Dave Hansen <[email protected]>
> Cc: Denys Vlasenko <[email protected]>
> Cc: H. Peter Anvin <[email protected]>
> Cc: Josh Poimboeuf <[email protected]>
> Cc: Linus Torvalds <[email protected]>
> Cc: Peter Zijlstra <[email protected]>
> Link: 
> http://lkml.kernel.org/r/f56634c746a2926eb7bae61e7b80ed51a1940769.1511497875.git.l...@kernel.org
> Signed-off-by: Ingo Molnar <[email protected]>
> ---
>  arch/x86/include/asm/processor.h   | 18 +++++++++++++-----
>  arch/x86/include/asm/thread_info.h |  2 +-
>  arch/x86/kernel/asm-offsets_64.c   |  1 +
>  arch/x86/kernel/process.c          | 10 ++++++++++
>  arch/x86/kernel/process_64.c       |  1 +
>  5 files changed, 26 insertions(+), 6 deletions(-)

Reviewed-by: Borislav Petkov <[email protected]>

-- 
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

Reply via email to