Re: [RFC] Fix si->si_code for guard page access on PowerPC

2016-02-24 Thread Michael Ellerman
Hi Gustavo, On Fri, 2016-22-01 at 16:23:31 UTC, Gustavo Romero wrote: > Fix si->si_code for guard page access on PowerPC > ... > > diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c > index a67c6d7..6954971 100644 > --- a/arch/powerpc/mm/fault.c > +++ b/arch/powerpc/mm/fault.c > @@

[RFC] Fix si->si_code for guard page access on PowerPC

2016-01-22 Thread Gustavo Romero
Fix si->si_code for guard page access on PowerPC Currently, the mm code on PowerPC/POWER returns a si->si_code = 2 (SEGV_ACCERR) when the stack tries to grow beyond the stack guard (stack ulimit). On other architectures, notably x86, the si->si_code returned when a guard page access occurs is 1