Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935050Ab0GOXsX (ORCPT ); Thu, 15 Jul 2010 19:48:23 -0400 Received: from one.firstfloor.org ([213.235.205.2]:51724 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933992Ab0GOXsW (ORCPT ); Thu, 15 Jul 2010 19:48:22 -0400 Date: Fri, 16 Jul 2010 01:48:21 +0200 From: Andi Kleen To: Linus Torvalds Cc: "H. Peter Anvin" , Andi Kleen , Mathieu Desnoyers , LKML , Andrew Morton , Ingo Molnar , Peter Zijlstra , Steven Rostedt , Steven Rostedt , Frederic Weisbecker , Thomas Gleixner , Christoph Hellwig , Li Zefan , Lai Jiangshan , Johannes Berg , Masami Hiramatsu , Arnaldo Carvalho de Melo , Tom Zanussi , KOSAKI Motohiro , Jeremy Fitzhardinge , "Frank Ch. Eigler" , Tejun Heo Subject: Re: [patch 1/2] x86_64 page fault NMI-safe Message-ID: <20100715234821.GB25420@one.firstfloor.org> References: <20100715183153.GA9276@Krystal> <20100715220117.GA1499@Krystal> <20100715225844.GA25420@one.firstfloor.org> <4C3F97A5.4020107@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 986 Lines: 26 On Thu, Jul 15, 2010 at 04:23:20PM -0700, Linus Torvalds wrote: > On Thu, Jul 15, 2010 at 4:20 PM, H. Peter Anvin wrote: > > On 07/15/2010 03:58 PM, Andi Kleen wrote: > >>> Why do we force IST use for NMI, btw? Maybe we shouldn't, and just use > >>> the normal kernel stack mechanisms? > >> > >> If you don't use IST the SYSCALL entry is racy during the window > >> when RSP is not set up yet (same for MCE etc.) > >> > > > > Right, the kernel stack is not ready. > > Well, it may not be ready for the _current_ NMI handler, but if we're > going to do a stack switch in sw on NMI anyway... ? The CPU written initial stack frame would still go on the wrong stack. -Andi -- ak@linux.intel.com -- Speaking for myself only. -- 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/