From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753195AbdLEJe2 (ORCPT ); Tue, 5 Dec 2017 04:34:28 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:35701 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752783AbdLEJeY (ORCPT ); Tue, 5 Dec 2017 04:34:24 -0500 Date: Tue, 5 Dec 2017 10:34:08 +0100 (CET) From: Thomas Gleixner To: Andy Lutomirski cc: LKML , X86 ML , Linus Torvalds , Peter Zijlstra , Dave Hansen , Borislav Petkov , Greg KH , Kees Cook , Hugh Dickins , Brian Gerst , Josh Poimboeuf , Denys Vlasenko , Rik van Riel , Boris Ostrovsky , Juergen Gross , David Laight , Eduardo Valentin , aliguori@amazon.com, Will Deacon , Daniel Gruss , Dave Hansen , Ingo Molnar , moritz.lipp@iaik.tugraz.at, "linux-mm@kvack.org" , Borislav Petkov , michael.schwarz@iaik.tugraz.at, richard.fellner@student.tugraz.at Subject: Re: [patch 57/60] x86/mm/kpti: Add Kconfig In-Reply-To: Message-ID: References: <20171204140706.296109558@linutronix.de> <20171204150609.511885345@linutronix.de> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 4 Dec 2017, Thomas Gleixner wrote: > On Mon, 4 Dec 2017, Andy Lutomirski wrote: > > On Mon, Dec 4, 2017 at 6:08 AM, Thomas Gleixner wrote: > > > --- a/security/Kconfig > > > +++ b/security/Kconfig > > > @@ -54,6 +54,16 @@ config SECURITY_NETWORK > > > implement socket and networking access controls. > > > If you are unsure how to answer this question, answer N. > > > > > > +config KERNEL_PAGE_TABLE_ISOLATION > > > + bool "Remove the kernel mapping in user mode" > > > + depends on X86_64 && JUMP_LABEL > > > > select JUMP_LABEL perhaps? > > Silly me. Yes. Peter just pointed out that we switched everything to cpu_has() which is using alternatives so jump label is not longer required at all. Thanks, tglx