From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:55726 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752007AbeBTP3A (ORCPT ); Tue, 20 Feb 2018 10:29:00 -0500 Date: Tue, 20 Feb 2018 16:29:01 +0100 From: Greg KH To: Will Deacon Cc: stable@vger.kernel.org, Catalin Marinas Subject: Re: [PATCH] arm64: proc: Set PTE_NG for table entries to avoid traversing them twice Message-ID: <20180220152901.GA30387@kroah.com> References: <1519126806-16595-1-git-send-email-will.deacon@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519126806-16595-1-git-send-email-will.deacon@arm.com> Sender: stable-owner@vger.kernel.org List-ID: On Tue, Feb 20, 2018 at 11:40:06AM +0000, Will Deacon wrote: > Commit 2ce77f6d8a9ae9ce6d80397d88bdceb84a2004cd upstream. > > When KASAN is enabled, the swapper page table contains many identical > mappings of the zero page, which can lead to a stall during boot whilst > the G -> nG code continually walks the same page table entries looking > for global mappings. > > This patch sets the nG bit (bit 11, which is IGNORED) in table entries > after processing the subtree so we can easily skip them if we see them > a second time. > > Cc: # 4.14+ Now queued up, thanks. greg k-h