Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp620583imm; Wed, 11 Jul 2018 08:11:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeLKKOL88rdXN4fD2XHDzR7J32jmr6TTFR1srNjmpjFCwadjbG6P2S2vBn90boSe1SWQUdN X-Received: by 2002:a17:902:42e4:: with SMTP id h91-v6mr28936565pld.27.1531321876492; Wed, 11 Jul 2018 08:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531321876; cv=none; d=google.com; s=arc-20160816; b=B08QFBruXsFzABwarw64Tn9KYjFL6aOk67JEbFx3ktppyv1xg+017DSVhl4Dmk462w NMyKkZ47NJUza0yS5P4+jahQ/LrpjCJjj8cEIdUatyYH8+8DSMLt8ewPzDF/Uu63oBXG J5BeqdfyTj7l8EKquM/F6y9a8jxe1fPz+69FTtaXEbWoC/vwgN24GLmelCgQmMa6b7z9 U4fFm6Dis421o8ckczRaZFa4lDswvF+F5HCLtvUNlYxGndfuTzpYr8kpa7TxzSTzEvZS 3zdxu8ggCrq1fJdPjZYlcioqZLrSoYQYU0wJb9jJ57JC3OseVSl/aYkJgiwnx1jpjksd XCkg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:arc-authentication-results; bh=wwLEv2Zny88JX8S0qR/hIlviz8hBJcw0hFuZYcfND1I=; b=lrReZZ0SJ540UzGdiNV6J1SnI1lDAglG5wMmN9ZzeFBraCHzuDduFNKJ2r56rzeDPP 2xWTfksB0dbzCQ97V7X4pEjn7PEM5pvRTWwKb0FkNlExqA2JcyP7Q6pRV80sWbWKcqN1 4cu/Ckl3HqDCiyjXCkNY+fJg4CYaJhfQobk5DybpSJkx+CvpijWGUEpVy1hNCJ5lirhA RZjUcw2dQejcfbymxEuwvEDD9dyKmVyuHB2/tt5PS5ipkWfe7VzyvqqG43/x4mN+i+Sg TfMZ8/WPuxg+rMrC0POfwIp07JIMhU5QKAstUpzWwRd/uQ6FLJsNqeryR7/OLCcNsreu i55w== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3-v6si18830636pge.41.2018.07.11.08.11.00; Wed, 11 Jul 2018 08:11:16 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733036AbeGKMX7 (ORCPT + 99 others); Wed, 11 Jul 2018 08:23:59 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:60334 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726587AbeGKMX6 (ORCPT ); Wed, 11 Jul 2018 08:23:58 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E81AC4023820; Wed, 11 Jul 2018 12:19:53 +0000 (UTC) Received: from oldenburg.str.redhat.com (dhcp-192-212.str.redhat.com [10.33.192.212]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7265E10F1BE0; Wed, 11 Jul 2018 12:19:44 +0000 (UTC) Subject: Re: [RFC PATCH v2 27/27] x86/cet: Add arch_prctl functions for CET To: Yu-cheng Yu , 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 References: <20180710222639.8241-1-yu-cheng.yu@intel.com> <20180710222639.8241-28-yu-cheng.yu@intel.com> From: Florian Weimer Message-ID: Date: Wed, 11 Jul 2018 14:19:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180710222639.8241-28-yu-cheng.yu@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 11 Jul 2018 12:19:54 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 11 Jul 2018 12:19:54 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'fweimer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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”? Thanks, Florian