Re: [PATCH] powerpc/mm: restore SEGV_ACCERR for segv on mapped region

2018-01-01 Thread Benjamin Herrenschmidt
On Sun, 2017-12-31 at 21:24 -0800, John Sperbeck wrote: > A recent refactoring of the powerpc page fault handler caused > access to protected memory regions to indicate SEGV_MAPERR instead > of the traditional SEGV_ACCERR in the si_code field of a user-space > signal handler. This can confuse debu

[PATCH] powerpc/mm: restore SEGV_ACCERR for segv on mapped region

2017-12-31 Thread John Sperbeck
A recent refactoring of the powerpc page fault handler caused access to protected memory regions to indicate SEGV_MAPERR instead of the traditional SEGV_ACCERR in the si_code field of a user-space signal handler. This can confuse debug libraries that temporarily change the protection of memory reg