Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755135AbdIHHxt (ORCPT ); Fri, 8 Sep 2017 03:53:49 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:35179 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754212AbdIHHxs (ORCPT ); Fri, 8 Sep 2017 03:53:48 -0400 Date: Fri, 8 Sep 2017 00:53:47 -0700 From: Christoph Hellwig To: Tycho Andersen Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel-hardening@lists.openwall.com, Marco Benatto , Juerg Haefliger , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v6 05/11] arm64/mm: Add support for XPFO Message-ID: <20170908075347.GC4957@infradead.org> References: <20170907173609.22696-1-tycho@docker.com> <20170907173609.22696-6-tycho@docker.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170907173609.22696-6-tycho@docker.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 271 Lines: 8 > +/* > + * Lookup the page table entry for a virtual address and return a pointer to > + * the entry. Based on x86 tree. > + */ > +static pte_t *lookup_address(unsigned long addr) Seems like this should be moved to common arm64 mm code and used by kernel_page_present.