From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yu-cheng Yu Subject: Re: [RFC PATCH v3 05/24] Documentation/x86: Add CET description Date: Fri, 14 Sep 2018 14:17:12 -0700 Message-ID: <1536959832.12990.34.camel@intel.com> References: <20180830143904.3168-1-yu-cheng.yu@intel.com> <20180830143904.3168-6-yu-cheng.yu@intel.com> <20180830203948.GB1936@amd> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20180830203948.GB1936@amd> Sender: linux-kernel-owner@vger.kernel.org To: Pavel Machek Cc: 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 , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Peter Zijlstra List-Id: linux-arch.vger.kernel.org On Thu, 2018-08-30 at 22:39 +0200, Pavel Machek wrote: > Hi! > > > > > diff --git a/Documentation/admin-guide/kernel-parameters.txt > > b/Documentation/admin-guide/kernel-parameters.txt > > index 9871e649ffef..b090787188b4 100644 > > --- a/Documentation/admin-guide/kernel-parameters.txt > > +++ b/Documentation/admin-guide/kernel-parameters.txt > > @@ -2764,6 +2764,12 @@ > >   noexec=on: enable non-executable mappings (default) > >   noexec=off: disable non-executable mappings > >   > > + no_cet_ibt [X86-64] Disable indirect branch tracking for > > user-mode > > + applications > > + > > + no_cet_shstk [X86-64] Disable shadow stack support for user- > > mode > > + applications > Hmm, not too consistent with "nosmap" below. Would it make sense to > have cet=on/off/ibt/shstk instead? We also have noxsave, noxsaveopt, noxsaves, etc.  This style is more decisive? If "cet=" is preferred, we can change it later? Yu-cheng From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com ([192.55.52.115]:9165 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727762AbeIOChz (ORCPT ); Fri, 14 Sep 2018 22:37:55 -0400 Message-ID: <1536959832.12990.34.camel@intel.com> Subject: Re: [RFC PATCH v3 05/24] Documentation/x86: Add CET description From: Yu-cheng Yu Date: Fri, 14 Sep 2018 14:17:12 -0700 In-Reply-To: <20180830203948.GB1936@amd> References: <20180830143904.3168-1-yu-cheng.yu@intel.com> <20180830143904.3168-6-yu-cheng.yu@intel.com> <20180830203948.GB1936@amd> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: Pavel Machek Cc: 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 , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Peter Zijlstra , "Ravi V. Shankar" , Vedvyas Shanbhogue Message-ID: <20180914211712.ekQTtPcK_nCejEgG5u4sh1Nj73LXkxiplUAMFnRoFDU@z> On Thu, 2018-08-30 at 22:39 +0200, Pavel Machek wrote: > Hi! > > > > > diff --git a/Documentation/admin-guide/kernel-parameters.txt > > b/Documentation/admin-guide/kernel-parameters.txt > > index 9871e649ffef..b090787188b4 100644 > > --- a/Documentation/admin-guide/kernel-parameters.txt > > +++ b/Documentation/admin-guide/kernel-parameters.txt > > @@ -2764,6 +2764,12 @@ > >   noexec=on: enable non-executable mappings (default) > >   noexec=off: disable non-executable mappings > >   > > + no_cet_ibt [X86-64] Disable indirect branch tracking for > > user-mode > > + applications > > + > > + no_cet_shstk [X86-64] Disable shadow stack support for user- > > mode > > + applications > Hmm, not too consistent with "nosmap" below. Would it make sense to > have cet=on/off/ibt/shstk instead? We also have noxsave, noxsaveopt, noxsaves, etc.  This style is more decisive? If "cet=" is preferred, we can change it later? Yu-cheng