Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753990AbbGWPcu (ORCPT ); Thu, 23 Jul 2015 11:32:50 -0400 Received: from mail.kernel.org ([198.145.29.136]:46805 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752095AbbGWPcA (ORCPT ); Thu, 23 Jul 2015 11:32:00 -0400 From: Andy Lutomirski To: X86 ML , linux-kernel@vger.kernel.org Cc: Steven Rostedt , Willy Tarreau , Borislav Petkov , Thomas Gleixner , Peter Zijlstra , Linus Torvalds , Andy Lutomirski Subject: [PATCH 4/5] x86/entry: Only allocate space for SYSENTER_stack if needed Date: Thu, 23 Jul 2015 08:31:42 -0700 Message-Id: X-Mailer: git-send-email 2.4.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1021 Lines: 33 The SYSENTER stack is only used in configurations that support 32-bit code and, hence, SYSENTER. Remove it in 64-bit non-compat configurations. Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/processor.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index befc1341f110..786f50e4bd90 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -298,10 +298,12 @@ struct tss_struct { */ unsigned long io_bitmap[IO_BITMAP_LONGS + 1]; +#if defined(CONFIG_X86_32) || defined(CONFIG_IA32_EMULATION) /* * Space for the temporary SYSENTER stack: */ unsigned long SYSENTER_stack[64]; +#endif } ____cacheline_aligned; -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/