Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp110203pxb; Mon, 2 Nov 2020 15:38:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOzD9dLqzpXegMlwSkpUUmcEuNfy9evViOWChbcz2vKTrXOFCb+6qx8Xf5oAkonx5tEtN2 X-Received: by 2002:a05:6402:1765:: with SMTP id da5mr18517065edb.155.1604360290162; Mon, 02 Nov 2020 15:38:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604360290; cv=none; d=google.com; s=arc-20160816; b=df1o7unb8ZxN9+hZM93up8m7HMRkd5qOTt1a/2LvU58mSdJkIPuHYgsENRvpw4fDqO zWNBsjxV6UQuTuErSc/EzjDLnkI3pQAE3o4ZhXji3RNXHK7gNxyhLXjSez9VJRv7UDwt phGlllFs/gLh0S/nQPkSCRe3QyIQl0VJ+cDcjIMxzm1DDTBB5cZz3AwP1RucAMI/0jIW +v0rwp/3fKqjisFfyRzl/kgIoEAJobQBuL7AL9CphyqpYOdfBNHgzlTUU9/QqtuMQeTo 7oIDBrBD/JFj1B0otpn6yhYCow7F+++F4zqZ3Bj1OZdTMDniqOgH7B6Dmsdb+Op8NkVc 5u7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=kn1MrKipST+qlcwJ1zIgvlMXZ9bQBl36MnESiK2hrlI=; b=D7GkJQZKxV9vFOYHFllHUDctdlMIAwLxjeZ9nMXGYN8JHZMBMTgCB97Ka1wZrdldmJ Euw/xoV3UbfPyXSf+iJitn8E1sTwhy0B3gOBhtsPQUQ/LVXD5lg5Iy8h+fBfUhk2HlXk ofaaRXzO/oIa3qJrkCgtmfmRPT3r/JEdVCugFo63e6FILyWcle85ccrGv7dRV3Jsf4t1 NlyGkI/6K0LWTmSOcdtxbzHmwE3NLobpV8BvyL3JuMEhIlHMk+nH29mBs3jOGGfa+az/ AHodWhMu6wH0u9w8vPU2l1ol/N2U2OBo/4aGRioOV/fORfZ0wMLdqDibUdDQksHQUx7k x4BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=WO4xZRYl; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y20si12182739edm.530.2020.11.02.15.37.47; Mon, 02 Nov 2020 15:38:10 -0800 (PST) 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=pass header.i=@linutronix.de header.s=2020 header.b=WO4xZRYl; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726723AbgKBXgU (ORCPT + 99 others); Mon, 2 Nov 2020 18:36:20 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:33808 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726485AbgKBXgU (ORCPT ); Mon, 2 Nov 2020 18:36:20 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1604360177; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kn1MrKipST+qlcwJ1zIgvlMXZ9bQBl36MnESiK2hrlI=; b=WO4xZRYluSA07JQGA2x48KKqtKPj2AWnFhCX4J0d8fVYBAG/4KfuMoZaJM3qbomnboDi2z CNoPbn8hgmPj4tBAxx2T73ZlDljs9QXge+xSx3bZ+PcwOR5lyCNU9REeAlg9L0b+LqMlOJ M+nbdv2UCJEEKxD3Vo67CqeXb6qvIcZzQJrF9+2il5iGZKzN+3o8X2F0Gk/EoJjsAsRUR+ Lt0wWGitJ3ETEGTmjWfa5e52sdgqUPh7KLMFsyHVdGhHUOuP7R2zhChRleod61fGgukIXx i4TTKKT/QElFLXZav/sLONz5cABtcUlL8x6e++SDwGhZ6EqbgQJC25ccEH8AkQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1604360177; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kn1MrKipST+qlcwJ1zIgvlMXZ9bQBl36MnESiK2hrlI=; b=bDzdY9iY6ze7qjRQmBLq0m9WmLMx8uKsr4lxx48nJ3PFoOuoYOrQ6mJCbDTbxc7miMSovu UMAas1KFWr29U4Dw== To: ira.weiny@intel.com, Ingo Molnar , Borislav Petkov , Andy Lutomirski , Peter Zijlstra , Dave Hansen Cc: Ira Weiny , x86@kernel.org, Dan Williams , Andrew Morton , Fenghua Yu , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH V2 00/10] PKS: Add Protection Keys Supervisor (PKS) support In-Reply-To: <20201102205320.1458656-1-ira.weiny@intel.com> References: <20201102205320.1458656-1-ira.weiny@intel.com> Date: Tue, 03 Nov 2020 00:36:16 +0100 Message-ID: <871rhb8h73.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 02 2020 at 12:53, ira weiny wrote: > Fenghua Yu (2): > x86/pks: Enable Protection Keys Supervisor (PKS) > x86/pks: Add PKS kernel API > > Ira Weiny (7): > x86/pkeys: Create pkeys_common.h > x86/fpu: Refactor arch_set_user_pkey_access() for PKS support > x86/pks: Preserve the PKRS MSR on context switch > x86/entry: Pass irqentry_state_t by reference > x86/entry: Preserve PKRS MSR across exceptions > x86/fault: Report the PKRS state on fault > x86/pks: Add PKS test code > > Thomas Gleixner (1): > x86/entry: Move nmi entry/exit into common code So the actual patch ordering is: x86/pkeys: Create pkeys_common.h x86/fpu: Refactor arch_set_user_pkey_access() for PKS support x86/pks: Enable Protection Keys Supervisor (PKS) x86/pks: Preserve the PKRS MSR on context switch x86/pks: Add PKS kernel API x86/entry: Move nmi entry/exit into common code x86/entry: Pass irqentry_state_t by reference x86/entry: Preserve PKRS MSR across exceptions x86/fault: Report the PKRS state on fault x86/pks: Add PKS test code This is the wrong ordering, really. x86/entry: Move nmi entry/exit into common code is a general cleanup and has absolutely nothing to do with PKRS.So this wants to go first. Also: x86/entry: Move nmi entry/exit into common code is a prerequisite for the rest. So why is it in the middle of the series? And then you enable all that muck _before_ it is usable: Patch 3/N: x86/pks: Enable Protection Keys Supervisor (PKS) Bisectability is overrrated, right? Once again: Read an understand Documentation/process/* Aside of that using a spell checker is not optional. Thanks, tglx