Re: [kernel-hardening] [PATCH v6 05/11] arm64/mm: Add support for XPFO

2017-09-18 Thread Tycho Andersen
Hi Mark, On Thu, Sep 14, 2017 at 07:22:08PM +0100, Mark Rutland wrote: > Hi, > > On Thu, Sep 07, 2017 at 11:36:03AM -0600, Tycho Andersen wrote: > > From: Juerg Haefliger > > > > Enable support for eXclusive Page Frame Ownership (XPFO) for arm64 and > > provide a hook for updating a single kern

Re: [kernel-hardening] [PATCH v6 05/11] arm64/mm: Add support for XPFO

2017-09-14 Thread Mark Rutland
Hi, On Thu, Sep 07, 2017 at 11:36:03AM -0600, Tycho Andersen wrote: > From: Juerg Haefliger > > Enable support for eXclusive Page Frame Ownership (XPFO) for arm64 and > provide a hook for updating a single kernel page table entry (which is > required by the generic XPFO code). > > v6: use flush

Re: [PATCH v6 05/11] arm64/mm: Add support for XPFO

2017-09-14 Thread Juergen Gross
On 14/09/17 12:41, Julien Grall wrote: > Hi, > > CC Juergen, Boris and Stefano. > > On 08/09/17 18:24, Tycho Andersen wrote: >> On Fri, Sep 08, 2017 at 12:53:47AM -0700, Christoph Hellwig wrote: +/* + * Lookup the page table entry for a virtual address and return a pointer to

Re: [PATCH v6 05/11] arm64/mm: Add support for XPFO

2017-09-14 Thread Julien Grall
Hi, CC Juergen, Boris and Stefano. On 08/09/17 18:24, Tycho Andersen wrote: On Fri, Sep 08, 2017 at 12:53:47AM -0700, Christoph Hellwig wrote: +/* + * 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(

Re: [PATCH v6 05/11] arm64/mm: Add support for XPFO

2017-09-08 Thread Tycho Andersen
On Fri, Sep 08, 2017 at 12:53:47AM -0700, Christoph Hellwig wrote: > > +/* > > + * 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

Re: [PATCH v6 05/11] arm64/mm: Add support for XPFO

2017-09-08 Thread Christoph Hellwig
> +/* > + * 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.

[PATCH v6 05/11] arm64/mm: Add support for XPFO

2017-09-07 Thread Tycho Andersen
From: Juerg Haefliger Enable support for eXclusive Page Frame Ownership (XPFO) for arm64 and provide a hook for updating a single kernel page table entry (which is required by the generic XPFO code). v6: use flush_tlb_kernel_range() instead of __flush_tlb_one() CC: linux-arm-ker...@lists.infrad