check result of mprotect()