On Fri, Nov 24, 2017 at 10:14:14AM +0100, Ingo Molnar wrote: > From: Andy Lutomirski <[email protected]> > > 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 <[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/8de9901e7c3a6aa8fac95b37b9c7b96f1900f11a.1511497875.git.l...@kernel.org > Signed-off-by: Ingo Molnar <[email protected]> > --- > 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 <[email protected]> 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.

