Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [gdb] - step after attach fails on current.



On 11/03/17 19:21, Gopikrishnan S wrote:
I suspect that the call is failing because the page protection bits are not being set correctly on attach on the RPi.

sysctl(7) has

             security.pax.mprotect.ptrace
                     This variable allows ptrace(2) to override PaX MPROTECT
                     permissions.  It can have the following values:
                     0   Does not let override any permissions.
                     1   Disables PaX MPROTECT from processes that start
                         executing while traced (default).
                     2   Bypasses PaX MPROTECT for all processes being traced.


you need security.pax.mprotect.ptrace=2

Nick



Home | Main Index | Thread Index | Old Index