Details
- Reviewers
vitalybuka - Commits
- rGa34e702aa16f: [ASAN] Add mmap and munmap interceptor in ASAN
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/asan/asan_interceptors.cpp | ||
---|---|---|
153 | why do you drop errno = errno_EINVAL; cases? | |
177 | I guess PoisonShadow will work the same way | |
compiler-rt/test/asan/TestCases/mapped_mem_interceptors.c | ||
27 | __asan_poison_memory_region() before munmap | |
33 | __asan_poison_memory_region() before mmap(r, size, | |
46 | No newline at end of file |
Addressed comments.
compiler-rt/lib/asan/asan_interceptors.cpp | ||
---|---|---|
153 | I made this change because compiler-rt/test/asan/TestCases/Linux/cuda_test.cpp failed. HWASAN implementation was somewhat restrictive because it wouldn't allow mmapping of any memory which is not managed by the sanitizers. This implementation will only manipulate shadow memory if the region is sanitizer managed. |
why do you drop errno = errno_EINVAL; cases?
Can we keep as close as possible to hwasan_interceptors.cpp one?