Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935010Ab0GOXYL (ORCPT ); Thu, 15 Jul 2010 19:24:11 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:54405 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934975Ab0GOXYJ (ORCPT ); Thu, 15 Jul 2010 19:24:09 -0400 MIME-Version: 1.0 In-Reply-To: <4C3F97A5.4020107@zytor.com> References: <20100714222115.GA30122@Krystal> <20100715183153.GA9276@Krystal> <20100715220117.GA1499@Krystal> <20100715225844.GA25420@one.firstfloor.org> <4C3F97A5.4020107@zytor.com> Date: Thu, 15 Jul 2010 16:23:20 -0700 Message-ID: Subject: Re: [patch 1/2] x86_64 page fault NMI-safe From: Linus Torvalds To: "H. Peter Anvin" Cc: 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 Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 788 Lines: 20 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... ? Linus -- 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/