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

2018-11-29 Thread Christophe LEROY
Le 28/11/2018 à 18:21, Christophe Leroy a écrit : 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. There is one "reserved" PTE bit available, this patch uses it for _PAGE_EXEC. In o

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

2018-11-28 Thread Christophe Leroy
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. There is one "reserved" PTE bit available, this patch uses it for _PAGE_EXEC. In order to support it, set_pte_filter() and set_access_fla