On Fri, Nov 24, 2017 at 10:14:16AM +0100, Ingo Molnar wrote: > From: Andy Lutomirski <l...@kernel.org> > > 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 <l...@kernel.org> > Reviewed-by: Thomas Gleixner <t...@linutronix.de> > Cc: Borislav Petkov <b...@alien8.de> > Cc: Borislav Petkov <bpet...@suse.de> > Cc: Brian Gerst <brge...@gmail.com> > Cc: Dave Hansen <dave.han...@intel.com> > Cc: Denys Vlasenko <dvlas...@redhat.com> > Cc: H. Peter Anvin <h...@zytor.com> > Cc: Josh Poimboeuf <jpoim...@redhat.com> > Cc: Linus Torvalds <torva...@linux-foundation.org> > Cc: Peter Zijlstra <pet...@infradead.org> > Link: > http://lkml.kernel.org/r/f56634c746a2926eb7bae61e7b80ed51a1940769.1511497875.git.l...@kernel.org > Signed-off-by: Ingo Molnar <mi...@kernel.org> > --- > 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 <b...@suse.de> -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.