From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Subject: Re: [RFC PATCH v3 1/8] x86/cet/ibt: Add Kconfig option for user-mode Indirect Branch Tracking Date: Thu, 30 Aug 2018 12:38:06 -0700 Message-ID: References: <20180830144009.3314-1-yu-cheng.yu@intel.com> <20180830144009.3314-2-yu-cheng.yu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180830144009.3314-2-yu-cheng.yu@intel.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org 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 , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel List-Id: linux-arch.vger.kernel.org On 08/30/2018 07:40 AM, Yu-cheng Yu wrote: > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 2cfe11e1cf7f..0d97b03f35f6 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -1941,6 +1941,18 @@ config X86_INTEL_SHADOW_STACK_USER > > If unsure, say y. > > +config X86_INTEL_BRANCH_TRACKING_USER > + prompt "Intel Indirect Branch Tracking for user-mode" > + def_bool n > + depends on CPU_SUP_INTEL && X86_64 > + select X86_INTEL_CET > + select ARCH_HAS_PROGRAM_PROPERTIES > + ---help--- > + Indirect Branch Tracking provides hardware protection against return-/jmp- > + oriented programing attacks. programming > + > + If unsure, say y > + > config EFI > bool "EFI runtime service support" > depends on ACPI -- ~Randy From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([198.137.202.133]:59368 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbeH3XmJ (ORCPT ); Thu, 30 Aug 2018 19:42:09 -0400 Subject: Re: [RFC PATCH v3 1/8] x86/cet/ibt: Add Kconfig option for user-mode Indirect Branch Tracking References: <20180830144009.3314-1-yu-cheng.yu@intel.com> <20180830144009.3314-2-yu-cheng.yu@intel.com> From: Randy Dunlap Message-ID: Date: Thu, 30 Aug 2018 12:38:06 -0700 MIME-Version: 1.0 In-Reply-To: <20180830144009.3314-2-yu-cheng.yu@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org List-ID: 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 , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , "Ravi V. Shankar" , Vedvyas Shanbhogue Message-ID: <20180830193806.fl4ndZ--ocdzqkqjJAgmYIBud4RGW8XFpBquh3VF9lQ@z> On 08/30/2018 07:40 AM, Yu-cheng Yu wrote: > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 2cfe11e1cf7f..0d97b03f35f6 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -1941,6 +1941,18 @@ config X86_INTEL_SHADOW_STACK_USER > > If unsure, say y. > > +config X86_INTEL_BRANCH_TRACKING_USER > + prompt "Intel Indirect Branch Tracking for user-mode" > + def_bool n > + depends on CPU_SUP_INTEL && X86_64 > + select X86_INTEL_CET > + select ARCH_HAS_PROGRAM_PROPERTIES > + ---help--- > + Indirect Branch Tracking provides hardware protection against return-/jmp- > + oriented programing attacks. programming > + > + If unsure, say y > + > config EFI > bool "EFI runtime service support" > depends on ACPI -- ~Randy