Re: [PATCH] powerpc/mm: Fix spurrious segfaults on radix with Autonuma

2017-02-06 Thread Balbir Singh
On Fri, Feb 03, 2017 at 05:10:28PM +1100, Benjamin Herrenschmidt wrote: > When autonuma marks a PTE inaccessible it clears all the protection > bits but leave the PTE valid. > > With the Radix MMU, an attempt at executing from such a PTE will > take a fault with bit 35 of SRR1 set "SRR1_ISI_N_OR_G

Re: [PATCH] powerpc/mm: Fix spurrious segfaults on radix with Autonuma

2017-02-03 Thread Balbir Singh
On Fri, Feb 03, 2017 at 05:10:28PM +1100, Benjamin Herrenschmidt wrote: > When autonuma marks a PTE inaccessible it clears all the protection > bits but leave the PTE valid. > > With the Radix MMU, an attempt at executing from such a PTE will > take a fault with bit 35 of SRR1 set "SRR1_ISI_N_OR_G

Re: [PATCH] powerpc/mm: Fix spurrious segfaults on radix with Autonuma

2017-02-02 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt writes: > When autonuma marks a PTE inaccessible it clears all the protection > bits but leave the PTE valid. > > With the Radix MMU, an attempt at executing from such a PTE will > take a fault with bit 35 of SRR1 set "SRR1_ISI_N_OR_G". > > It is thus incorrect to treat all

[PATCH] powerpc/mm: Fix spurrious segfaults on radix with Autonuma

2017-02-02 Thread Benjamin Herrenschmidt
When autonuma marks a PTE inaccessible it clears all the protection bits but leave the PTE valid. With the Radix MMU, an attempt at executing from such a PTE will take a fault with bit 35 of SRR1 set "SRR1_ISI_N_OR_G". It is thus incorrect to treat all such faults as errors. We should pass them t