Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752112AbaDVXk4 (ORCPT ); Tue, 22 Apr 2014 19:40:56 -0400 Received: from mga02.intel.com ([134.134.136.20]:8492 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750860AbaDVXky (ORCPT ); Tue, 22 Apr 2014 19:40:54 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,907,1389772800"; d="scan'208";a="525741693" Message-ID: <5356FE03.5070000@linux.intel.com> Date: Tue, 22 Apr 2014 16:40:51 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Andi Kleen , "H. Peter Anvin" CC: Brian Gerst , Andrew Lutomirski , Linus Torvalds , Borislav Petkov , Linux Kernel Mailing List , Ingo Molnar , Alexander van Heukelum , Konrad Rzeszutek Wilk , Boris Ostrovsky , Arjan van de Ven , Alexandre Julliard , Thomas Gleixner Subject: Re: [PATCH] x86-64: espfix for 64-bit mode *PROTOTYPE* References: <5356A70A.5090907@zytor.com> <5356AF9F.4010301@zytor.com> <5356BA2F.2030007@zytor.com> <20140422233930.GN22728@two.firstfloor.org> In-Reply-To: <20140422233930.GN22728@two.firstfloor.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/22/2014 04:39 PM, Andi Kleen wrote: >> That simply will not work if you can take a #GP due to the "safe" MSR >> functions from NMI and #MC context, which would be my main concern. > > At some point the IST entry functions subtracted 1K while the > handler ran to handle simple nesting cases. > > Not sure that code is still there. Doesn't help if you take an NMI on the first instruction of the #GP handler. -hpa -- 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/