Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753879AbeAJT0L (ORCPT + 1 other); Wed, 10 Jan 2018 14:26:11 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:47998 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751506AbeAJT0I (ORCPT ); Wed, 10 Jan 2018 14:26:08 -0500 Date: Wed, 10 Jan 2018 19:26:11 +0000 From: Will Deacon To: Christoph Hellwig Cc: linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, ard.biesheuvel@linaro.org, marc.zyngier@arm.com, lorenzo.pieralisi@arm.com, christoffer.dall@linaro.org, linux-kernel@vger.kernel.org, shankerd@codeaurora.org, jnair@caviumnetworks.com Subject: Re: [PATCH v3 02/13] arm64: Kconfig: Reword UNMAP_KERNEL_AT_EL0 kconfig entry Message-ID: <20180110192610.GB9723@arm.com> References: <1515432758-26440-1-git-send-email-will.deacon@arm.com> <1515432758-26440-3-git-send-email-will.deacon@arm.com> <20180109171700.GA18100@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180109171700.GA18100@infradead.org> 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 Return-Path: On Tue, Jan 09, 2018 at 09:17:00AM -0800, Christoph Hellwig wrote: > On Mon, Jan 08, 2018 at 05:32:27PM +0000, Will Deacon wrote: > > Although CONFIG_UNMAP_KERNEL_AT_EL0 does make KASLR more robust, it's > > actually more useful as a mitigation against speculation attacks that > > can leak arbitrary kernel data to userspace through speculation. > > > > Reword the Kconfig help message to reflect this, and make the option > > depend on EXPERT so that it is on by default for the majority of users. > > I still haven't heard an anwer on why this isn't using > CONFIG_PAGE_TABLE_ISOLATION but instead reinvents its own symbol. Mainly because this code was written before CONFIG_PAGE_TABLE_ISOLATION had been proposed and I wanted to avoid confusion with the ongoing backports just to align on the naming for an arch-specific config option. We could CONFIG_PAGE_TABLE_ISOLATION and make it select CONFIG_UNMAP_KERNEL_AT_EL) if you like, but worth noting that this is default 'y' anyway and depends on EXPERT. Will