Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1199371imm; Wed, 11 Jul 2018 19:57:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe2SizqNbCpCq8NTei34qiLh2sg2CE6//4tttSwlU/rqGJqQxf44n43t8kRAoMSgLgnnsck X-Received: by 2002:aa7:86d7:: with SMTP id h23-v6mr488483pfo.132.1531364266794; Wed, 11 Jul 2018 19:57:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531364266; cv=none; d=google.com; s=arc-20160816; b=kJvH7y7XimO2IF9sEs8gMkBb6j0GmaOAts9TrPDguAHBcrDxI0lat2UXX6hsGZT554 YZDk2EOvQM31s3DW8+GL+tvUNWuF6j06WYVfMayA5rtqeQAJSkPINhYabOMG+yLkV9Mf BcpFYWEpbxqYIfNcrQMBmtqc4xnQmJWStV1iSkTm7KsBjceIuoURkUwBpfpdui5rDhl6 Qo5iYgDK4oTJb8+7qvpcaA4EEqkUbnozpDHZla6sX+H4viZOtI4bY2dOkQXqzjZFvOzT PqbG3ENRJpEvhy2talsaXmcHHUT4967IGaqub7XMEVGcwai/5PNH0dEYD0/EGPnvl2kI KkjQ== 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 :references:in-reply-to:date:to:from:subject:message-id :arc-authentication-results; bh=508kPc0stADrFtO6Xft8uiAAOAmW2Q76wLq6+mOLLjQ=; b=k2NU04fsyPtXKiV3nx3yg5q6UKW+2+9h2opWvnbYLrYlO+SB5yV37cj5fCm1ZLdbQP MHUWH88KrfDnt2eFkRMhi+1j/jtw8fLYFKmVHRrCVZ8ffyxZbRsD3bRVXK3fnNw58ocz 7R/KQkeZi7HXgWHmIFV/GSDcuQZH3boxNtGg8wfARMl8crH0KLNYb1PrKHA2YW3jItE6 MjsfcDU+orofPCujpvMUi5xALkHhR3UFyfUomgI3JrGtJn2TCC9WmqYbz8L8DDuSR22H t5aXULlARm5mXtLyDp18dKQZiIClojdHs/oO6STHQC2odX6+1+R7F1SoXtCj2KZ4O8uX yIlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id o12-v6si20297628plg.154.2018.07.11.19.57.31; Wed, 11 Jul 2018 19:57:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2387564AbeGKVM2 (ORCPT + 99 others); Wed, 11 Jul 2018 17:12:28 -0400 Received: from mga03.intel.com ([134.134.136.65]:30442 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732552AbeGKVM1 (ORCPT ); Wed, 11 Jul 2018 17:12:27 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jul 2018 14:06:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,339,1526367600"; d="scan'208";a="66171654" Received: from 2b52.sc.intel.com ([143.183.136.52]) by fmsmga002.fm.intel.com with ESMTP; 11 Jul 2018 14:06:14 -0700 Message-ID: <1531342956.15351.38.camel@intel.com> Subject: Re: [RFC PATCH v2 27/27] x86/cet: Add arch_prctl functions for CET From: Yu-cheng Yu To: Florian Weimer , 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 , Cyrill Gorcunov , Dave Hansen , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , "Ravi V. Shankar" , Vedvyas Shanbhogue Date: Wed, 11 Jul 2018 14:02:36 -0700 In-Reply-To: References: <20180710222639.8241-1-yu-cheng.yu@intel.com> <20180710222639.8241-28-yu-cheng.yu@intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-07-11 at 14:19 +0200, Florian Weimer wrote: > On 07/11/2018 12:26 AM, Yu-cheng Yu wrote: > > > > arch_prctl(ARCH_CET_DISABLE, unsigned long features) > >      Disable SHSTK and/or IBT specified in 'features'.  Return > > -EPERM > >      if CET is locked out. > > > > arch_prctl(ARCH_CET_LOCK) > >      Lock out CET feature. > Isn't it a “lock in” rather than a “lock out”? Yes, that makes more sense.  I will fix it.