Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The ptrace APIs also can’t write to read only memory, at least not on modern Linux running on CPUs with modern MMUs. But SMC doesn’t require that, because you can always map (or remap) executable pages as writable.

Executable code is only read-only by default, you can always change that (or just not do it, in the case of a JIT).



> The ptrace APIs also can’t write to read only memory

Sure they can.

https://stackoverflow.com/questions/49442087/how-does-ptrace...


Huh, this is news to me! I always thought that ptrace temporarily changed the page's permissions, rather than bypassing them entirely. My mistake.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: