Re: [PATCH] powerpc/mm: add exec protection on powerpc 603

2018-11-29 Thread Christophe LEROY
Le 29/11/2018 à 12:25, Aneesh Kumar K.V a écrit : On 11/16/18 10:50 PM, Christophe Leroy wrote: The 603 doesn't have a HASH table, TLB misses are handled by software. It is then possible to generate page fault when _PAGE_EXEC is not set like in nohash/32. In order to support it,

Re: [PATCH] powerpc/mm: add exec protection on powerpc 603

2018-11-29 Thread Aneesh Kumar K.V
On 11/16/18 10:50 PM, Christophe Leroy wrote: The 603 doesn't have a HASH table, TLB misses are handled by software. It is then possible to generate page fault when _PAGE_EXEC is not set like in nohash/32. In order to support it, set_pte_filter() and set_access_flags_filter() are made common,