Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp711885pxj; Fri, 14 May 2021 13:52:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5E46K7ESmEabBVwdGK5hIvlKqH5kQBBQPOCkrSOgZ9/GKS6RLzAUjWwLQqw7cMkTbNjCj X-Received: by 2002:a5d:9c84:: with SMTP id p4mr25262954iop.56.1621025575751; Fri, 14 May 2021 13:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621025575; cv=none; d=google.com; s=arc-20160816; b=iphqhPL5nKv/6N7uKL4CnhycYxKwzjyncs6dIrES1mRJmHmZ4FLSX/KC0vPo5Y5aGP IHodZI2GjffQCwTp+MXDhWrTNgf29eQ3wY3NEAfVO61NUwp9siZ55rpJ1pcVpDGep6qY OUwW6BTplkOvgLWAIGUzFRWpNDD7SwtQmxtFRmtDq59xizvlunXHxdlmUWcvjsRshtYv BYz78mvZvPZMykbUfowwC6JEGuhDnws3ESLPMzfRQ6Dg/A3s+RcnlS1EPQt0+9a20hP+ 4ZZG2hr1Pe6dmPTi+2hbNLJ85bXH9yi2891dBW0EWyr1iumD7IYMFmQzob6XXPod9GCs H7cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=XHMfkc3J+IOrHbM6PLFoo6gMFwnRRSO8+NeXYaJJyOE=; b=aOH4P8rqGw11bjNu7qg4LUkR2gfqEavCMbYGX+Iy47BLl+E9/+8grwwUU1IJ1Rudgi GqdrlEIsOTOIaeqStjTYq2iVnw0lh+XwDIU0QD7eETXf4Vz87gurYSfOoATLWMontn39 pp9B11zCYqI51XrUTBnUO97xjy7tWZWPf/hPN1xswHyL0c5lME6VBTtjitS4Z+ZOQ97w EwdbpWnQQonINAwINKZpJupl67uz5bi8a08RoVpyr8Ypwt3jEAP4l+z3WWtZAUJkLY4c aelsX0IS8FEl3nP4JAI6hggrvecCUH2X74jdUY3HvJXjYiiwWzU+E44bhsvi7fR/msfm tOHA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si3463322ilg.25.2021.05.14.13.52.43; Fri, 14 May 2021 13:52:55 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230202AbhENUYF (ORCPT + 99 others); Fri, 14 May 2021 16:24:05 -0400 Received: from mga17.intel.com ([192.55.52.151]:54603 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229952AbhENUYE (ORCPT ); Fri, 14 May 2021 16:24:04 -0400 IronPort-SDR: Va9ZVF8fijqzHqkFjkT9dbepwe5KLqGKVBbamsKUQJWXhOsS4LcVEQu3VsqL2puurFCtzGijKn unxrsRtUni+Q== X-IronPort-AV: E=McAfee;i="6200,9189,9984"; a="180508770" X-IronPort-AV: E=Sophos;i="5.82,300,1613462400"; d="scan'208";a="180508770" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2021 13:22:52 -0700 IronPort-SDR: tCSdz899VH5JJU8cO3QGNvawjmbQ0pbYXGZeGsr3S5AvmMZR+bisRoQRv/wld6f0/vIusXNZ8V QOAcdpp8Li4Q== X-IronPort-AV: E=Sophos;i="5.82,300,1613462400"; d="scan'208";a="431845038" Received: from iweiny-desk2.sc.intel.com (HELO localhost) ([10.3.52.147]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2021 13:22:51 -0700 Date: Fri, 14 May 2021 13:22:51 -0700 From: Ira Weiny To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Andy Lutomirski , Peter Zijlstra Cc: Edgecombe@iweiny-DESK2.sc.intel.com, Rick P , Dave Hansen , Dan Williams , x86@kernel.org, linux-kernel@vger.kernel.org, Fenghua Yu Subject: Re: [PATCH V6 00/10] PKS: Add Protection Key Supervisor support Message-ID: <20210514202250.GA1722585@iweiny-DESK2.sc.intel.com> References: <20210401225833.566238-1-ira.weiny@intel.com> <20210416220950.GE1904484@iweiny-DESK2.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210416220950.GE1904484@iweiny-DESK2.sc.intel.com> User-Agent: Mutt/1.11.1 (2018-12-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 16, 2021 at 03:14:56PM -0700, 'Ira Weiny' wrote: > On Thu, Apr 01, 2021 at 03:58:23PM -0700, 'Ira Weiny' wrote: > > From: Ira Weiny > > > > Introduce a new page protection mechanism for supervisor pages, Protection Key > > Supervisor (PKS). > > Is there any feedback on this series? Please disregard this series... (If you have not done so already). Along with Rick posting his RFC for page table protections[1] he has raised a concern with me about pkeys being allocated and then reallocated to another user. It turns out the code has a bug in this area and the fix is not trivial. Because the PMEM use case never needed to free its key and even if it did a small window of access was not a concern this was not tested. The best solutions involve changing the API therefore this series is going to need a respin. Thank you, Ira [1] https://lore.kernel.org/lkml/20210505003032.489164-1-rick.p.edgecombe@intel.com/