Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp437690pxk; Wed, 2 Sep 2020 05:55:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXvUh13qGtTrRePNhZPdrmyedfxjjEUCBS2KnuPFPkxFEFyBL7Gd51r23EK1jVqKHbaJuL X-Received: by 2002:a17:906:e8f:: with SMTP id p15mr6487802ejf.290.1599051346586; Wed, 02 Sep 2020 05:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599051346; cv=none; d=google.com; s=arc-20160816; b=EzaT040/1oQAG9BqRAg7uZztNgIgeviVmVPOhyceY5vDxhOTzue+kJtkXVdwVuMALJ T06eOYOLHxe0f25cAi8gPFjvljsvJaLqHzU7TdgrPajLxfYPDOHzYqm6JT3Kq9Z16fl8 0N/CfksQGNgFSbss6zhK7OL2BBHsmyLSdoux/uVKxEaIPHE6n2aY43RanIgI7YHRUarC Xts98NYj/6jQVh+15QA9nHupyhnr67gfgBcvpL4uvcSQDKm4HFeewdoFBuhfx/YR7PVm WgaTJfkSSmN97/DFp8tv8mihrpCY1lhwx/gKXgfka461FeW93dEgKZe9Eaw1gxTCLomX 2/RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=isrzndUDYiz7AVFuWayAZA6ecBCJ63M610eK0GJhjus=; b=pxOMn9pfEVMHDvYIFc0HD3swujm/XalqobxZtBwm5RTVhfpfI9ZBsKnn+8C4IVduoZ Fn64aHCYQeEwAHkF6DMPv31UuVv3Pj4LhvI3WWNRsyk4fhHso0+6xOSvwEAvbc1oNf17 L7BDvVTsO/u04nLsw6ktxHC7fM33Fj2Uyor34VcnuGey4fpaUDlFNInBV8gwp2Q26naX +O3TN6s+RtJeTLVNDzAMHDXGNneHkkT1THIZ7hn+H4i0zElY9QJ98oPz2Hp2hLJSU7ht P+HR34ckp/Nt7t/1o8uzJqgMnCApXHiNUMLd7BjaisztQeq3d14U1Pjv/Qx+kNIBnkyg VDsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=CJFTE95K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k19si2492791ejx.426.2020.09.02.05.55.23; Wed, 02 Sep 2020 05:55:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=CJFTE95K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727080AbgIBMyb (ORCPT + 99 others); Wed, 2 Sep 2020 08:54:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727028AbgIBMyM (ORCPT ); Wed, 2 Sep 2020 08:54:12 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26BD2C061245; Wed, 2 Sep 2020 05:54:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=isrzndUDYiz7AVFuWayAZA6ecBCJ63M610eK0GJhjus=; b=CJFTE95KS0gBy1UFDjdzh0P6Zl vDTCAlAnnxWW+J6nr0RwUn6VRG66ylaYFPPlvlH8rhBCX30JAYid8uFSWuD69AtxC76S30Nr9yXsl H9eSsb8jb691xbcuFWqBvs8VP94SA83/8/9kYBol3nd+u6Kw5IwsV0Hk7tHlS+sSfBM/nIW8oe1Ld NuJu5EM1RRyv7zitERugqVYenzVQi7IoEjJFh8U4MGebZbpucb8EHJA9shCLT3QeAcitanIwf1GXL hStgfJKmdVxowB0QR8dps2hyFpcFWoP2BEp4/AhKrNEmBmnuKbo2ZTE+mBMXLgyJG+bQq8WDwt5/L 6ggoxK7Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDSH5-00015w-UD; Wed, 02 Sep 2020 12:54:04 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id F0D3E3011C6; Wed, 2 Sep 2020 14:54:02 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id DE4C423D3D75E; Wed, 2 Sep 2020 14:54:02 +0200 (CEST) Date: Wed, 2 Sep 2020 14:54:02 +0200 From: peterz@infradead.org To: Nadav Amit Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Nadav Amit , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Andy Lutomirski , Kees Cook , stable@vger.kernel.org Subject: Re: [PATCH] x86/special_insn: reverse __force_order logic Message-ID: <20200902125402.GG1362448@hirez.programming.kicks-ass.net> References: <20200901161857.566142-1-namit@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200901161857.566142-1-namit@vmware.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 01, 2020 at 09:18:57AM -0700, Nadav Amit wrote: > Unless I misunderstand the logic, __force_order should also be used by > rdpkru() and wrpkru() which do not have dependency on __force_order. I > also did not understand why native_write_cr0() has R/W dependency on > __force_order, and why native_write_cr4() no longer has any dependency > on __force_order. There was a fairly large thread about this thing here: https://lkml.kernel.org/r/20200527135329.1172644-1-arnd@arndb.de I didn't keep up, but I think the general concensus was that it's indeed a bit naf.