From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933448AbaDVRZp (ORCPT ); Tue, 22 Apr 2014 13:25:45 -0400 Received: from terminus.zytor.com ([198.137.202.10]:52249 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932873AbaDVRZn (ORCPT ); Tue, 22 Apr 2014 13:25:43 -0400 Message-ID: <5356A5EB.6010702@zytor.com> Date: Tue, 22 Apr 2014 10:24:59 -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: Andrew Lutomirski CC: Linus Torvalds , Borislav Petkov , "H. Peter Anvin" , Linux Kernel Mailing List , Ingo Molnar , Alexander van Heukelum , Konrad Rzeszutek Wilk , Boris Ostrovsky , Arjan van de Ven , Brian Gerst , Alexandre Julliard , Andi Kleen , Thomas Gleixner Subject: Re: [PATCH] x86-64: espfix for 64-bit mode *PROTOTYPE* References: <1dbe8155-58da-45c2-9dc0-d9f4b5a6e643@email.android.com> <20140422112312.GB15882@pd.tnic> <20140422144659.GF15882@pd.tnic> <53569467.1030809@zytor.com> <5356A248.5060605@zytor.com> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 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 10:20 AM, Andrew Lutomirski wrote: > > It won't, given the above. I misunderstood what you were checking. > > It still seems to me that only #GP needs this special handling. The > IST entries should never run on the espfix stack, and #MC, #DB, #NM, > and #SS (I missed that one earlier) use IST. > > Would it ever make sense to make #GP use IST as well? That might > allow espfix_adjust_stack to be removed entirely. I don't know how > much other fiddling would be needed to make that work. > Interesting thought. It might even be able to share an IST entry with #SS. -hpa