Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kernel: Clear the region lookup cache on exec()
Each process has a 1-level lookup cache for fast repeated lookups of the same VM region (which tends to be the majority of lookups.) The cache is used by the following syscalls: munmap, madvise, mprotect and set_mmap_name. After a succesful exec(), there could be a stale Region* in the lookup cache, and the new executable was able to manipulate it using a number of use-after-free code paths.
- Loading branch information