Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932255AbaDVLXU (ORCPT ); Tue, 22 Apr 2014 07:23:20 -0400 Received: from mail.skyhub.de ([78.46.96.112]:52420 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932096AbaDVLXQ (ORCPT ); Tue, 22 Apr 2014 07:23:16 -0400 Date: Tue, 22 Apr 2014 13:23:12 +0200 From: Borislav Petkov To: Andrew Lutomirski , "H. Peter Anvin" Cc: "H. Peter Anvin" , Linux Kernel Mailing List , Linus Torvalds , 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* Message-ID: <20140422112312.GB15882@pd.tnic> References: <1398120472-6190-1-git-send-email-hpa@linux.intel.com> <5355A9E9.9070102@zytor.com> <1dbe8155-58da-45c2-9dc0-d9f4b5a6e643@email.android.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 21, 2014 at 06:53:36PM -0700, Andrew Lutomirski wrote: > On Mon, Apr 21, 2014 at 6:47 PM, H. Peter Anvin wrote: > > Race condition (although with x86 being globally ordered, it probably can't actually happen.) The bitmask is probably the way to go. > > Does the race matter? In the worst case you take the lock > unnecessarily. But yes, the bitmask is easy. I wonder if it would be workable to use a bit in the espfix PGD to denote that it has been initialized already... I hear, near NX there's some room :-) -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. -- -- 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/