Retrying revoke()
Retrying revoke()
Posted Apr 11, 2013 2:42 UTC (Thu) by nybble41 (subscriber, #55106)In reply to: Retrying revoke() by butlerm
Parent article: Retrying revoke()
Posted Apr 14, 2013 12:54 UTC (Sun)
by Karellen (subscriber, #67644)
[Link]
Processes could then try to catch SIGBUS and internally mark any mmap()ed regions as invalid if they want. Or mremap() them? Which could return EINVAL rather than EFAULT for revoked mappings?
There will presumably still be race conditions where one thread might access the mapped region before the signal handler completes, but presumably that's still better than the alternative - no notice, guaranteed segv.
Retrying revoke()