summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* asan: fix Android buildDmitry Vyukov2013-01-141-2/+2
| | | | llvm-svn: 172389
* tsan: fix cmake warning (unused private field)Dmitry Vyukov2013-01-141-0/+1
| | | | llvm-svn: 172387
* asan: fix compilation errors in mutexDmitry Vyukov2013-01-141-4/+1
| | | | llvm-svn: 172385
* asan/tsan: move blocking mutex from asan to sanitizer_commonDmitry Vyukov2013-01-141-0/+29
| | | | llvm-svn: 172380
* [asan] make the slow unwinder a bit more robust. The unittests pass with ↵Kostya Serebryany2013-01-091-6/+8
| | | | | | fast_unwind_on_fatal=0, but I still observe some differences between the two unwinders llvm-svn: 171973
* tsan: fix buildDmitry Vyukov2012-12-141-0/+3
| | | | llvm-svn: 170191
* [asan] pop the internal stack frames in SlowUnwindStack, extend the test to ↵Kostya Serebryany2012-12-131-3/+13
| | | | | | check this llvm-svn: 170124
* [asan] add two asan flags: fast_unwind_on_fatal and fast_unwind_on_malloc to ↵Kostya Serebryany2012-12-131-0/+43
| | | | | | allow using the slow CFI-based unwinder llvm-svn: 170117
* Add a libsanitizer API __sanitizer_sandbox_on_notify(void* reserved), which ↵Alexander Potapenko2012-12-101-0/+8
| | | | | | | | should be used by the client programs to notify the tools that sandboxing is about to be turned on. llvm-svn: 169732
* tsan: fix lint warningsDmitry Vyukov2012-12-071-2/+2
| | | | llvm-svn: 169606
* [sanitizer] implement SanitizerSetThreadName/SanitizerGetThreadName. Just ↵Kostya Serebryany2012-12-071-0/+14
| | | | | | for linux so far (using prctl(PR_GET_NAME)) llvm-svn: 169598
* tsan: fix lint warningsDmitry Vyukov2012-12-051-2/+3
| | | | llvm-svn: 169369
* Fix a use-after-unmap bug in /proc/self/maps caching. The cached buffer was ↵Alexander Potapenko2012-12-041-1/+5
| | | | | | occasionally deleted in the MemoryMappingLayout destructor. llvm-svn: 169335
* Use a struct to hold the /proc/self/maps buffer on Linux.Alexander Potapenko2012-12-031-32/+23
| | | | llvm-svn: 169155
* Add caching to the MemoryMappingLayout class on Linux. This is necessary for ↵Alexander Potapenko2012-12-011-1/+45
| | | | | | | | | the cases when a sandbox prevents ASan from reading the mappings from /proc/self/maps. The mappings are currently being cached on each access to /proc/self/maps. In the future we'll need to add an API that allows the client to notify ASan about the sandbox. llvm-svn: 169076
* [asan/tsan] do not use __WORDSIZE macro, as it is glibc-private thing. ↵Kostya Serebryany2012-11-211-2/+2
| | | | | | Instead, define our own SANITIZER_WORDSIZE llvm-svn: 168424
* [asan] better support for powerpc and sparc targets (thanks to H.J. Liu and ↵Kostya Serebryany2012-11-201-4/+3
| | | | | | David Miller) llvm-svn: 168358
* [asan] support PowerPC and SPARC in sanitizer_linux.ccKostya Serebryany2012-11-191-3/+13
| | | | llvm-svn: 168301
* [asan] use #if defined __x86_64__ instead of #if __WORDSIZE == 64 in ↵Kostya Serebryany2012-11-131-3/+3
| | | | | | sanitizer_linux.cc llvm-svn: 167883
* [Sanitizer] add sanity checks for communication with external symbolizerAlexey Samsonov2012-11-091-0/+14
| | | | llvm-svn: 167617
* [*San]: handle EINTR.Evgeniy Stepanov2012-10-021-2/+7
| | | | llvm-svn: 165006
* tsan: fix mac buildDmitry Vyukov2012-10-021-0/+4
| | | | llvm-svn: 165004
* [Sanitizer] Hoist functions to get/set stack size and re-exec from ↵Alexey Samsonov2012-09-171-0/+20
| | | | | | memory-sanitizer branch to sanitizer_common llvm-svn: 164020
* [Sanitizer] implement readlink as syscall on LinuxAlexey Samsonov2012-09-051-0/+4
| | | | llvm-svn: 163213
* [Sanitizer] Rename ProcessMaps to MemoryMappingLayout and fix Windows build ↵Alexey Samsonov2012-08-271-10/+10
| | | | | | by providing stub implementation llvm-svn: 162671
* [Sanitizer] move OS-dependent pieces of symbolizer to separate source filesAlexey Samsonov2012-08-141-83/+0
| | | | llvm-svn: 161862
* [Sanitizer] When obtaining the data for loaded modules, add address ranges ↵Alexey Samsonov2012-07-191-4/+9
| | | | | | of loadable segments only. Looks like address range of PT_TLS segment may intersect with loadable segments of other modules. llvm-svn: 160498
* [Sanitizer] Extend a symbolizer code. Implemented for Linux only. Use ↵Alexey Samsonov2012-07-031-1/+86
| | | | | | dl_iterate_phdr to get virtual addresses of mapped module sections. To symbolize an address from a module, map this module to memory and obtain pointers to debug info sections. Later these pointers can be passed to constructor of DWARF context-in-memory from LLVM DebugInfo lib. llvm-svn: 159652
* [asan] fix lintKostya Serebryany2012-06-291-7/+7
| | | | llvm-svn: 159429
* [asan] get rid of libc's sscanf as it causes infinite recursion on Fedora. Kostya Serebryany2012-06-291-9/+48
| | | | llvm-svn: 159424
* [tsan] a bit more lint and Makefile changes to run tests from sanitizer_commonKostya Serebryany2012-06-201-3/+3
| | | | llvm-svn: 158821
* [Sanitizer] move different wrappers from TSan to common sanitizer runtimeAlexey Samsonov2012-06-181-0/+5
| | | | llvm-svn: 158655
* [Sanitizer] move portable GetEnv to common sanitizer runtimeAlexey Samsonov2012-06-141-0/+28
| | | | llvm-svn: 158451
* [Sanitizer] Fix mac build.Alexey Samsonov2012-06-071-2/+2
| | | | llvm-svn: 158141
* [Sanitizer] factor out GetThreadStackTopAndBottom from ASan runtime to common.Alexey Samsonov2012-06-071-1/+53
| | | | llvm-svn: 158140
* [Sanitizer] __asan::AsanProcMaps -> __sanitizer::ProcessMaps.Alexey Samsonov2012-06-071-0/+63
| | | | llvm-svn: 158139
* [tsan,asan] comment out O_CLOEXEC as it causes build failures on old linux ↵Kostya Serebryany2012-06-061-1/+1
| | | | | | kernels llvm-svn: 158071
* [Sanitizer] move internal_filesize and internal_dup2 from TSan to ↵Alexey Samsonov2012-06-061-0/+11
| | | | | | sanitizer_common. llvm-svn: 158052
* [Sanitizer] rename sanitizer_defs.h to sanitizer_internal_defs.hAlexey Samsonov2012-06-051-1/+1
| | | | llvm-svn: 158001
* [Sanitizer] add sanitizer_posix.cc. Move more various functions into ↵Alexey Samsonov2012-06-051-0/+4
| | | | | | sanitizer_libc: sscanf, munmap, memchr llvm-svn: 157994
* [Sanitizer] add internal_{close,read,write} functions to sanitizer_libcAlexey Samsonov2012-06-051-0/+12
| | | | llvm-svn: 157990
* [Sanitizer] Add sanitizer_win.cc for windows-specific implementations of ↵Alexey Samsonov2012-06-051-0/+7
| | | | | | libc functions. Add internal_open. llvm-svn: 157985
* Created files sanitizer_linux.cc and sanitizer_mac.cc for platform-specific ↵Alexey Samsonov2012-06-041-0/+37
implementations of common functions. Turned asan_mmap into __sanitizer::internal_mmap. llvm-svn: 157930
OpenPOWER on IntegriCloud