Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753609AbbGWQKN (ORCPT ); Thu, 23 Jul 2015 12:10:13 -0400 Received: from smtprelay0069.hostedemail.com ([216.40.44.69]:42996 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752255AbbGWQKF (ORCPT ); Thu, 23 Jul 2015 12:10:05 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:5007:6119:6261:7875:7903:8526:10004:10400:10848:10967:11232:11658:11914:12517:12519:12663:12740:13069:13149:13230:13255:13311:13357:14096:14097:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: tin29_74c42a2922c63 X-Filterd-Recvd-Size: 2544 Date: Thu, 23 Jul 2015 12:10:01 -0400 From: Steven Rostedt To: Andy Lutomirski Cc: Andy Lutomirski , X86 ML , "linux-kernel@vger.kernel.org" , Willy Tarreau , Borislav Petkov , Thomas Gleixner , Peter Zijlstra , Linus Torvalds Subject: Re: [PATCH 2/5] x86/entry/64, entry: Set up a valid sysenter stack and prepare for 32-bit merge Message-ID: <20150723121001.2d7d8812@gandalf.local.home> In-Reply-To: References: <1287f683e32f1bbe7fc545bff675f30dcda8d5c1.1437665045.git.luto@kernel.org> <20150723120125.7c6d74d3@gandalf.local.home> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1436 Lines: 33 On Thu, 23 Jul 2015 09:04:38 -0700 Andy Lutomirski wrote: > On Thu, Jul 23, 2015 at 9:01 AM, Steven Rostedt wrote: > > On Thu, 23 Jul 2015 08:31:40 -0700 > > Andy Lutomirski wrote: > > > >> Oddly, 64-bit kernels already allocate a percpu sysenter stack, but > >> they don't enable it. Enable the stack and tweak the rest of the > >> sysenter setup code to be similar to the 32-bit version. > > > > I'm curious. Did you do any investigation into the 64bit code to why it > > wasn't set? Do you know if that was just overlooked with some of the > > merging between i386 and x86_64 systems? > > > > I'm not asking you to do it if you have not, but if you have, I think > > it would be more comforting to know that it was just overlooked than > > there being some other subtle reason. > > I think it's just that it was never necessary. #DB has always used > IST on x86_64 (IIRC it was like that in the very first commit), so the > sysenter stack was never actually referenced. > Hmm, should this be commented? If it is never referenced, I could imagine that would add some confusion to future reviewers of this code. -- Steve -- 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/