Mmap interceptor is not atomic in the sense that it
exposes unmapped shadow for a brief period of time.
This breaks programs that mmap over another mmap
and access the region concurrently.
Don't unmap shadow in the mmap interceptor to fix this.
Just mapping new shadow on top should be enough to zero it.
Details
Details
- Reviewers
vitalybuka - Commits
- rG1db68fcd8e76: tsan: fix mmap atomicity
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo