I\'m wondering if there\'s a way to write-protect every page in a Linux
process\' address space (from inside of the process itself, by way of
mprotect()
). By \
Start simple. Write-protect a few page and make sure your signal handler works for these pages. Then worry about expanding the scope of the protection. For example, you probably do not need to write-protect the code-section: operating systems can implement write-or-execute protection semantics on memory that will prevent code sections from ever being written to: