summaryrefslogtreecommitdiff
path: root/lib/asan/asan_linux.cc
Commit message (Collapse)AuthorAge
* [asan] ASan Linux MIPS32 support (compiler-rt part), patch by Jyun-Yan YKostya Serebryany2013-06-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183105 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Move GetStackTrace from ASan to sanitizer_common.Sergey Matveev2013-05-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181424 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Kill the remainders of platform defines in favor of SANITIZER_ definesAlexey Samsonov2013-04-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178629 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Switch ASan to generic ThreadRegistry from sanitizer_common. Delete ↵Alexey Samsonov2013-03-21
| | | | | | ASan-specific AsanThreadRegistry. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177634 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class ↵Alexey Samsonov2013-03-20
| | | | | | into plain functions: they don't actually use registry git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177501 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Replace more platform checks with SANITIZER_ constants.Evgeniy Stepanov2013-03-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177400 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Move ASan platform macros to sanitizer_common and rename them ↵Evgeniy Stepanov2013-03-19
| | | | | | appropriately. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177397 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] fixes for Android buildAlexey Samsonov2013-01-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172800 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] minor changes to swapcontext handling: don't clear shadow memory if ↵Alexey Samsonov2013-01-17
| | | | | | context stack is too large git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172727 91177308-0d34-0410-b5e6-96231b3b80d8
* asan/tsan: move blocking mutex from asan to sanitizer_commonDmitry Vyukov2013-01-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172380 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] pop the internal stack frames in SlowUnwindStack, extend the test to ↵Kostya Serebryany2012-12-13
| | | | | | check this git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170124 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] add two asan flags: fast_unwind_on_fatal and fast_unwind_on_malloc to ↵Kostya Serebryany2012-12-13
| | | | | | allow using the slow CFI-based unwinder git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170117 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] two more bits for __sparc__Kostya Serebryany2012-12-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169141 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] get rid of some of the uses of kPageSize. The intent is to get rid of ↵Kostya Serebryany2012-11-23
| | | | | | it completely to support platforms with multiple possible page sizes. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168517 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] intercept swapcontext on Linux onlyAlexey Samsonov2012-11-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168509 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] pop the two internal functions from the stack trace produced by ↵Kostya Serebryany2012-11-20
| | | | | | _Unwind_Backtrace (Peter Bergner) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168369 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] more support for powerpc, patch by Peter BergnerKostya Serebryany2012-11-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168356 91177308-0d34-0410-b5e6-96231b3b80d8
* asan: sync with gcc r193553Dmitry Vyukov2012-11-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168151 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] more refactoring to move StackTrace to sanitizer_commonKostya Serebryany2012-08-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162752 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] some renaming before we move StackTrace into sanitizer_commonKostya Serebryany2012-08-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162747 91177308-0d34-0410-b5e6-96231b3b80d8
* A few tweaks for building ASanRT against Android NDK.Evgeniy Stepanov2012-08-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162666 91177308-0d34-0410-b5e6-96231b3b80d8
* If the program is linked to a dynamic ASan runtime which is not present in ↵Alexander Potapenko2012-08-24
| | | | | | | | | | DYLD_INSERT_LIBRARIES (which, in turn, is required for our interceptors to take effect), re-exec the program with DYLD_INSERT_LIBRARIES set. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162547 91177308-0d34-0410-b5e6-96231b3b80d8
* Intercept CFAllocator for each thread in the program.Alexander Potapenko2012-07-23
| | | | | | | | Test that child threads use the ASan allocator, that allocated memory can be passed to another thread and deallocated on it. This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=81 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160630 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Use common flags parsing machinery.Alexey Samsonov2012-07-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159933 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] move rest of mmap routines to common sanitizer runtimeAlexey Samsonov2012-06-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158452 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] move portable GetEnv to common sanitizer runtimeAlexey Samsonov2012-06-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158451 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] don't include deleted headerAlexey Samsonov2012-06-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158448 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Fix mac build.Alexey Samsonov2012-06-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158141 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] factor out GetThreadStackTopAndBottom from ASan runtime to common.Alexey Samsonov2012-06-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158140 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] __asan::AsanProcMaps -> __sanitizer::ProcessMaps.Alexey Samsonov2012-06-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158139 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] Switch to common mmap/munmap routines in ASan run-time.Alexey Samsonov2012-06-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158078 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] Use __sanitizer::Die() in ASan runtime.Alexey Samsonov2012-06-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158051 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] remove using namespace __sanitizer linesAlexey Samsonov2012-06-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157999 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] add sanitizer_posix.cc. Move more various functions into ↵Alexey Samsonov2012-06-05
| | | | | | sanitizer_libc: sscanf, munmap, memchr git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157994 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] use internal_{close,read,write} in ASan runtime.Alexey Samsonov2012-06-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157991 91177308-0d34-0410-b5e6-96231b3b80d8
* [ASan] use internal_open from sanitizer_libc in ASan runtimeAlexey Samsonov2012-06-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157986 91177308-0d34-0410-b5e6-96231b3b80d8
* Created files sanitizer_linux.cc and sanitizer_mac.cc for platform-specific ↵Alexey Samsonov2012-06-04
| | | | | | implementations of common functions. Turned asan_mmap into __sanitizer::internal_mmap. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157930 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] more renamingKostya Serebryany2012-05-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157747 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] more renamingKostya Serebryany2012-05-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157746 91177308-0d34-0410-b5e6-96231b3b80d8
* Move AsanShadowRangeIsAvailable() from mac to posix.Evgeniy Stepanov2012-05-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157326 91177308-0d34-0410-b5e6-96231b3b80d8
* asan: fix typo in commentDmitry Vyukov2012-05-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157314 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] nuke some old unused codeKostya Serebryany2012-05-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157250 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] increase the stack size limit to 256M (yes, that happens); also CHECK ↵Kostya Serebryany2012-05-22
| | | | | | that the stack size is less than that on a non-main thread git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157249 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid including link.h.Evgeniy Stepanov2012-03-26
| | | | | | | | | It's not available on Android. We only use this header to find out if _DYNAMIC is present; declaring it "extern void*" does the trick. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153431 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] don't use dl_iterate_phdr on linux, go back to using /proc/self/maps. ↵Kostya Serebryany2012-03-08
| | | | | | Hopefully fixes the problem reported by our mozilla friends. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152341 91177308-0d34-0410-b5e6-96231b3b80d8
* Move the non-trivial implementation of AsanShadowRangeIsAvailable to asan_mac.ccAlexander Potapenko2012-02-13
| | | | | | | to avoid crashes on Linux and Win. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150398 91177308-0d34-0410-b5e6-96231b3b80d8
* AddressSanitizer: replace all "real_X" calls with "REAL(X)"Alexey Samsonov2012-02-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150073 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] don't crash if /proc/self/maps has enormous size (linux)Kostya Serebryany2012-02-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149944 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] use raw syscalls for open/close on linux to avoid being interceptedKostya Serebryany2012-02-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149892 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] remove dead codeKostya Serebryany2012-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149392 91177308-0d34-0410-b5e6-96231b3b80d8