From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752243AbdLLK2V (ORCPT ); Tue, 12 Dec 2017 05:28:21 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:41772 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751400AbdLLK2T (ORCPT ); Tue, 12 Dec 2017 05:28:19 -0500 Date: Tue, 12 Dec 2017 10:28:27 +0000 From: Will Deacon To: Geert Uytterhoeven Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Catalin Marinas , Mark Rutland , Ard Biesheuvel , Stephen Boyd , Dave Hansen , Kees Cook , Mark Salter , Laura Abbott , Thomas Gleixner Subject: Re: [PATCH v2 17/18] arm64: Kconfig: Add CONFIG_UNMAP_KERNEL_AT_EL0 Message-ID: <20171212102826.GC28301@arm.com> References: <1512059986-21325-1-git-send-email-will.deacon@arm.com> <1512059986-21325-18-git-send-email-will.deacon@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 12, 2017 at 09:44:09AM +0100, Geert Uytterhoeven wrote: > Hi Will, > > On Thu, Nov 30, 2017 at 5:39 PM, Will Deacon wrote: > > Add a Kconfig entry to control use of the entry trampoline, which allows > > us to unmap the kernel whilst running in userspace and improve the > > robustness of KASLR. > > > > Signed-off-by: Will Deacon > > This is now commit 084eb77cd3a81134 in arm64/for-next/core. > > > --- > > arch/arm64/Kconfig | 13 +++++++++++++ > > 1 file changed, 13 insertions(+) > > > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > > index fdcc7b9bb15d..3af1657fcac3 100644 > > --- a/arch/arm64/Kconfig > > +++ b/arch/arm64/Kconfig > > @@ -833,6 +833,19 @@ config FORCE_MAX_ZONEORDER > > However for 4K, we choose a higher default value, 11 as opposed to 10, giving us > > 4M allocations matching the default size used by generic code. > > > > +config UNMAP_KERNEL_AT_EL0 > > + bool "Unmap kernel when running in userspace (aka \"KAISER\")" > > But I believe this is no longer called KAISER? That's right, but KAISER is the original name in the paper and so I figured it was worth mentioning just here to help people identify what this feature is. The command line option is "kpti" to align with x86. Will