From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753511AbdKXLor (ORCPT ); Fri, 24 Nov 2017 06:44:47 -0500 Received: from mail.skyhub.de ([5.9.137.197]:56646 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753435AbdKXLoq (ORCPT ); Fri, 24 Nov 2017 06:44:46 -0500 Date: Fri, 24 Nov 2017 12:44:36 +0100 From: Borislav Petkov To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Dave Hansen , Andy Lutomirski , Thomas Gleixner , "H . Peter Anvin" , Peter Zijlstra , Linus Torvalds Subject: Re: [PATCH 09/43] x86/entry: Move SYSENTER_stack to the beginning of struct tss_struct Message-ID: <20171124114436.k7bxyawxli75qsbl@pd.tnic> References: <20171124091448.7649-1-mingo@kernel.org> <20171124091448.7649-10-mingo@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20171124091448.7649-10-mingo@kernel.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 24, 2017 at 10:14:14AM +0100, Ingo Molnar wrote: > From: Andy Lutomirski > > 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 > Reviewed-by: Thomas Gleixner > Cc: Borislav Petkov > Cc: Borislav Petkov > Cc: Brian Gerst > Cc: Dave Hansen > Cc: Denys Vlasenko > Cc: H. Peter Anvin > Cc: Josh Poimboeuf > Cc: Linus Torvalds > Cc: Peter Zijlstra > Link: http://lkml.kernel.org/r/8de9901e7c3a6aa8fac95b37b9c7b96f1900f11a.1511497875.git.luto@kernel.org > Signed-off-by: Ingo Molnar > --- > 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 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.