From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751151AbbCNQAu (ORCPT ); Sat, 14 Mar 2015 12:00:50 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:36484 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750784AbbCNQAs (ORCPT ); Sat, 14 Mar 2015 12:00:48 -0400 Date: Sat, 14 Mar 2015 17:00:42 +0100 From: Pavel Machek To: Denys Vlasenko Cc: Andy Lutomirski , Linus Torvalds , Steven Rostedt , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Oleg Nesterov , Frederic Weisbecker , Alexei Starovoitov , Will Drewry , Kees Cook , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2 v2] x86: make 32-bit "emergency stack" better documented Message-ID: <20150314160042.GA1338@xo-6d-61-c0.localdomain> References: <1425912738-559-1-git-send-email-dvlasenk@redhat.com> <1425912738-559-2-git-send-email-dvlasenk@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1425912738-559-2-git-send-email-dvlasenk@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > arch/x86/kernel/asm-offsets_32.c | 2 +- > arch/x86/kernel/cpu/common.c | 3 ++- > 3 files changed, 5 insertions(+), 4 deletions(-) > > diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h > index 48a61c1..9e65cf8 100644 > --- a/arch/x86/include/asm/processor.h > +++ b/arch/x86/include/asm/processor.h > @@ -276,9 +276,9 @@ struct tss_struct { > unsigned long io_bitmap[IO_BITMAP_LONGS + 1]; > > /* > - * .. and then another 0x100 bytes for the emergency kernel stack: > + * and then space for temporary SYSENTER stack: > */ > - unsigned long stack[64]; > + unsigned long SYSENTER_stack[64]; Would it make sense to make it unsigned char ...stack[256], like the comment said? Or is it supposed to be different size on 64bit, and comment was wrong? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html