Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933822Ab0GOQtW (ORCPT ); Thu, 15 Jul 2010 12:49:22 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:54675 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933755Ab0GOQtU (ORCPT ); Thu, 15 Jul 2010 12:49:20 -0400 MIME-Version: 1.0 In-Reply-To: <20100715164450.GC30989@Krystal> References: <20100714154923.947138065@efficios.com> <20100714155804.049012415@efficios.com> <20100714170617.GB4955@Krystal> <20100714203940.GC22096@Krystal> <20100714222115.GA30122@Krystal> <20100715164450.GC30989@Krystal> Date: Thu, 15 Jul 2010 09:49:10 -0700 Message-ID: Subject: Re: [patch 1/2] x86_64 page fault NMI-safe From: Linus Torvalds To: Mathieu Desnoyers Cc: 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 , Andi Kleen , "H. Peter Anvin" , 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: 1023 Lines: 24 On Thu, Jul 15, 2010 at 9:44 AM, Mathieu Desnoyers wrote: > > The first thing that strikes me is that we could be interrupted by a standard > interrupt on top of the iret instruction below. No, that can never happen. Why? Simple: regular interrupts aren't ever enabled in eflags. So the only kinds of traps we can get are NMI's (that don't follow the normal rules), and exceptions. Of course, if there is some trap that re-enables interrupts even if the trap happened in an interrupt-disabled region, then that would change things, but that would be a bad bug regardless (and totally independently of any NMI issues). So in that sense it's a "could happen", but it's something that would be a totally separate bug. 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/