vm_protect vs mprotect
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Organization: Oracle Corporation User-agent: Thunderbird 2.0.0.21 (Windows/20090302) _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com Hi, I am seeing an issue because of vm_protect being called from signal handlers, where another system call was already in progress.It works fine using mprotect. The mach call vm_protect() calls vm_map_protect() directly , whearas bsd syscall mprotect calls mach_vm_protect() which eventually calls vm_map_protect(). I guess vm_protect is avoiding some extra checks as compared to mprotect(). Which the preferred interface ? Has anyone heard of any issues with vm_protect ? Thanks.
participants (1)
-
Rohitash Panda