From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.codeaurora.org by pdx-caf-mail.web.codeaurora.org (Dovecot) with LMTP id wAvULtIaG1tTXwAAmS7hNA ; Sat, 09 Jun 2018 00:10:46 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 55A5F608BA; Sat, 9 Jun 2018 00:10:46 +0000 (UTC) Authentication-Results: smtp.codeaurora.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="P5ben5uH" X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by smtp.codeaurora.org (Postfix) with ESMTP id C8798602FC; Sat, 9 Jun 2018 00:10:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C8798602FC Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753320AbeFIAKo (ORCPT + 25 others); Fri, 8 Jun 2018 20:10:44 -0400 Received: from merlin.infradead.org ([205.233.59.134]:41602 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753039AbeFIAKm (ORCPT ); Fri, 8 Jun 2018 20:10:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=nB8hSxv0O1j7Dg4ADjfxQSWfIKeFH39X9kWYSmhDa7E=; b=P5ben5uHoX9hFH+31mqthGbFNR OuUEXzj8LWQDQhS55FJ5wwbkDLyA9kQ23bPzWX4tva/qjQ+RhFKj4vJLBNytOKBYlgOczEzVnyKTD VBcUwUZZDLHsznDAOR4uUcND5EvRZQF/0n0x0OajUOrq9Kd+fo+2aNzRx9Nvf7HcCijVpDCCAq3Uq IAHqI+s7mxRJmfj9lhJrKlBt4BXiWwZZ3DcXmOgTbS9R+YkTTGT2NoKszOO8bbSVsB8U/lu1YTOEr KeW5YDsxpmQFI8mPwCEJn2kF18JLvtBru6TUcnyXuaVUnGqTTJOawM3urJsGuGe+ip42Fk4VcEy3Z RXyE8XvA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fRRSU-0001Sm-GM; Sat, 09 Jun 2018 00:10:18 +0000 Subject: Re: [PATCH 5/5] Documentation/x86: Add CET description To: Yu-cheng Yu , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , "H.J. Lu" , Vedvyas Shanbhogue , "Ravi V. Shankar" , Dave Hansen , Andy Lutomirski , Jonathan Corbet , Oleg Nesterov , Arnd Bergmann , Mike Kravetz References: <20180607143544.3477-1-yu-cheng.yu@intel.com> <20180607143544.3477-6-yu-cheng.yu@intel.com> From: Randy Dunlap Message-ID: <0c91f979-85e1-6deb-9570-9749c8eaf15b@infradead.org> Date: Fri, 8 Jun 2018 17:10:13 -0700 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: <20180607143544.3477-6-yu-cheng.yu@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/07/2018 07:35 AM, Yu-cheng Yu wrote: > Explain how CET works and the noshstk/noibt kernel parameters. > > Signed-off-by: Yu-cheng Yu > --- > Documentation/admin-guide/kernel-parameters.txt | 6 + > Documentation/x86/intel_cet.txt | 161 ++++++++++++++++++++++++ > 2 files changed, 167 insertions(+) > create mode 100644 Documentation/x86/intel_cet.txt > > diff --git a/Documentation/x86/intel_cet.txt b/Documentation/x86/intel_cet.txt > new file mode 100644 > index 000000000000..1b902a6c49f4 > --- /dev/null > +++ b/Documentation/x86/intel_cet.txt > @@ -0,0 +1,161 @@ > +----------------------------------------- > +Control Flow Enforcement Technology (CET) > +----------------------------------------- > + > +[1] Overview > + > +Control Flow Enforcement Technology (CET) provides protection against > +return/jump-oriented programing (ROP) attacks. It can be implemented to programming > +protect both the kernel and applications. In the first phase, only the > +user-mode protection is implemented for the 64-bit kernel. Thirty-two bit > +applications are supported under the compatibility mode. > + > +CET includes shadow stack (SHSTK) and indirect branch tracking (IBT) and > +they are enabled from two kernel configuration options: > + > + INTEL_X86_SHADOW_STACK_USER, and no comma. > + INTEL_X86_BRANCH_TRACKING_USER. > + > +There are two command-line options for disabling CET features: > + > + noshstk - disables shadow stack, and > + noibt - disables indirect branch tracking. > + > +At run time, /proc/cpuinfo shows the availability of SHSTK and IBT. > + [snip] thanks, -- ~Randy