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.



Thanks, that worked.

Do you know why this is different for amd64? On amd64, I can attach and step even when security.pax.mprotect.ptrace is 1.

Thanks and regards,
--Gopikrishnan Sidhardhan


On Tuesday, 7 November 2017, 17:37:08 GMT+5:30, Nick Hudson <skrll%netbsd.org@localhost> wrote:


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