Re: powerpc/nohash: fix pte_access_permitted()

2018-08-23 Thread Michael Ellerman
On Tue, 2018-08-21 at 13:03:23 UTC, Christophe Leroy wrote: > Commit 5769beaf180a8 ("powerpc/mm: Add proper pte access check helper > for other platforms") replaced generic pte_access_permitted() by an > arch specific one. > > The generic one is defined as > (pte_present(pte) && (!(write) ||

Re: [PATCH] powerpc/nohash: fix pte_access_permitted()

2018-08-21 Thread Christophe LEROY
Le 21/08/2018 à 16:25, Aneesh Kumar K.V a écrit : Christophe Leroy writes: Commit 5769beaf180a8 ("powerpc/mm: Add proper pte access check helper for other platforms") replaced generic pte_access_permitted() by an arch specific one. The generic one is defined as (pte_present(pte) &&

Re: [PATCH] powerpc/nohash: fix pte_access_permitted()

2018-08-21 Thread Aneesh Kumar K.V
Christophe Leroy writes: > Commit 5769beaf180a8 ("powerpc/mm: Add proper pte access check helper > for other platforms") replaced generic pte_access_permitted() by an > arch specific one. > > The generic one is defined as > (pte_present(pte) && (!(write) || pte_write(pte))) > > The arch specific

[PATCH] powerpc/nohash: fix pte_access_permitted()

2018-08-21 Thread Christophe Leroy
Commit 5769beaf180a8 ("powerpc/mm: Add proper pte access check helper for other platforms") replaced generic pte_access_permitted() by an arch specific one. The generic one is defined as (pte_present(pte) && (!(write) || pte_write(pte))) The arch specific one is open coded checking that