From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 8 Sep 2017 00:53:47 -0700 From: Christoph Hellwig 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> Subject: [kernel-hardening] Re: [PATCH v6 05/11] arm64/mm: Add support for XPFO 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 List-ID: > +/* > + * 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.