Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1154501ybz; Wed, 29 Apr 2020 16:06:43 -0700 (PDT) X-Google-Smtp-Source: APiQypK0EN9sImCJJIipGAEAjCTh+wW/F7ZSmVxflIxmu1+AAWaeOTGKs17qC/tUCQq0jIOYo9xn X-Received: by 2002:a05:6402:1c07:: with SMTP id ck7mr305614edb.202.1588201603620; Wed, 29 Apr 2020 16:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588201603; cv=none; d=google.com; s=arc-20160816; b=CE0J7fmcy+BA7xUj6Cmi2NXD+2vKWp9o1rVtKw2YlRSXiBOVXGuqapl7En9SC1JYwP KQx5JYiNK9wpfdv2INttqhYLCRuRXv2xNX8v+0ME2pRs3CvTM4aY1A1kqMeOzL2aj/Zv 9VMT+zEKaDh4wNQdQt/1hHp6+Smm2KeFj0cXZbnc40yfwaQm/86ncXhwiuZjOnGqLF/Y WBAiGkNkz3q84k3Ja5UKxVmkE8oC50yNRhGkSQXJpbugmPaIzkoZnM+QFbQTJmIuAYPc VpJHI6q4VQv70f696T52lYM38dB8VLljIt9h3ruz6jcP6eRWBzPMbk122Vjq1ANaCQU1 CgtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id :ironport-sdr:ironport-sdr; bh=qLvlaBhPdYeq2iRkyH/adfxFRMRxqVKsJqeHrePzOmQ=; b=mS2fpJRFcHunQQM82DBJKWiCFpIUT2fR9jp42jgjVYejS7VQWhwGkO7TpidBamBFJX Kr72vHPsksFXZQhLmrAdGfDpKJl4lI6ro9I9WRtJLeIEfSrcYOY9ty/H7VP370CItTJJ dEdQoBeiwLSMAmWU/NQSjibqZqwRl3MrXJifbnqU+ZV/Uw83GPvjM3JSjAyDSiyehaoe +Z/5kN13ZxCo4NnlBjfmpsNwQSbAGPWATI8j3W2EhIAMtvZsMJSNytNqMQZ5+5qJny0N zH7ml9T7sT85IMo1YHFxCBL5p4a8w5EkupPh4WPwRq5JKYCvC5hJKiNOqdY5VocIeF2e yaig== 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 df22si4651529edb.272.2020.04.29.16.06.21; Wed, 29 Apr 2020 16:06:43 -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 S1727896AbgD2XCc (ORCPT + 99 others); Wed, 29 Apr 2020 19:02:32 -0400 Received: from mga11.intel.com ([192.55.52.93]:65455 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726164AbgD2XCc (ORCPT ); Wed, 29 Apr 2020 19:02:32 -0400 IronPort-SDR: iWRh/dzCdigfwf3JFZ8vSIJuaBggYo5ezW3522W6R9U9d4KkEG1k/SM+5urXKTLuBbp21b6vm0 jbR99PfxCzUQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 16:02:31 -0700 IronPort-SDR: vaokhmIa5VvUIIGTviyZG7HRd2E2dm4X6gRMTkTynFEuEdgrWdwd8jJvVqbzFY+T805xnbtKLB MEqgunexeidg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,333,1583222400"; d="scan'208";a="405202065" Received: from yyu32-desk.sc.intel.com ([143.183.136.146]) by orsmga004.jf.intel.com with ESMTP; 29 Apr 2020 16:02:30 -0700 Message-ID: Subject: Re: [PATCH v10 01/26] Documentation/x86: Add CET description From: Yu-cheng Yu To: Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin , Weijiang Yang Date: Wed, 29 Apr 2020 16:02:33 -0700 In-Reply-To: References: <20200429220732.31602-1-yu-cheng.yu@intel.com> <20200429220732.31602-2-yu-cheng.yu@intel.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-04-29 at 15:53 -0700, Dave Hansen wrote: > On 4/29/20 3:07 PM, Yu-cheng Yu wrote: > > +Note: > > + There is no CET-enabling arch_prctl function. By design, CET is enabled > > + automatically if the binary and the system can support it. > > I think Andy and I danced around this last time. Let me try to say it > more explicitly. > > I want CET kernel enabling to able to be disconnected from the on-disk > binary. I want a binary compiled with CET to be able to disable it, and > I want a binary not compiled with CET to be able to enable it. I want > different threads in a process to be able to each have different CET status. The kernel patches we have now can be modified to support this model. If after discussion this is favorable, I will modify code accordingly. > Which JITs was this tested with? I think as a bare minimum we need to > know that this design can accommodate _a_ modern JIT. It would be > horrible if the browser javascript engines couldn't use this design, for > instance. JIT work is still in progress. When that is available I will test it. Yu-cheng