On Fri, Nov 24, 2017 at 10:14:14AM +0100, Ingo Molnar wrote: > From: Andy Lutomirski <l...@kernel.org> > > SYSENTER_stack should have reliable overflow detection, which > means that it needs to be at the bottom of a page, not the top. > Move it to the beginning of struct tss_struct and page-align it. > > Also add an assertion to make sure that the fixed hardware TSS > doesn't cross a page boundary. > > 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/8de9901e7c3a6aa8fac95b37b9c7b96f1900f11a.1511497875.git.l...@kernel.org > Signed-off-by: Ingo Molnar <mi...@kernel.org> > --- > arch/x86/include/asm/processor.h | 21 ++++++++++++--------- > arch/x86/kernel/cpu/common.c | 21 +++++++++++++++++++++ > 2 files changed, 33 insertions(+), 9 deletions(-)
Reviewed-by: Borislav Petkov <b...@suse.de> Thanks to tglx for clarifying the whole top and bottom meaning here for me - I was confused. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.