summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_linux.h
Commit message (Collapse)AuthorAgeFilesLines
...
* [LSan] [MIPS] adding support of LSan for mips64/mips64el archMohit K. Bhakkad2015-02-191-1/+1
| | | | | | | | | | | | Patch by Sagar Thakur Reviewers: petarj, earthdok, kcc. Subscribers: samsonov, dsanders, mohit.bhakkad, Anand.Takale, llvm-commits. Differential Revision: http://reviews.llvm.org/D7013 llvm-svn: 229830
* Removed r221896, it seems to break build in various ways.Yury Gribov2014-11-131-0/+5
| | | | llvm-svn: 221912
* [ASan] Add process basename to log name and error message to simplify ↵Yury Gribov2014-11-131-5/+0
| | | | | | | | analysis of sanitized systems logs. Reviewed at http://reviews.llvm.org/D5724 llvm-svn: 221896
* [FreeBSD] Port sanitizers' syscalls.Alexey Samsonov2014-03-071-4/+7
| | | | | | Patch by Viktor Kutuzov! llvm-svn: 203227
* A set of trivial changes to support sanitizers on FreeBSD.Alexey Samsonov2014-03-041-2/+2
| | | | | | Patch by Viktor Kutuzov! llvm-svn: 202801
* AdjustStackSizeLinux() is used in Lsan, Tsan and Msan non-Linux-specific ↵Kostya Serebryany2014-02-241-2/+0
| | | | | | | | | code so it seems it should have more generic name and moved to a common scope. Renamed to AdjustStackSize. Patch by Viktor Kutuzov. llvm-svn: 202011
* Make signal-related functions use __sanitizer_* structures instead of ↵Alexander Potapenko2014-01-311-6/+8
| | | | | | | | | | | __sanitizer_kernel_* ones. Also rename internal_sigaction() into internal_sigaction_norestorer(), as this function doesn't fully implement the sigaction() functionality on Linux. This change is a part of refactoring intended to have common signal handling behavior in all tools. llvm-svn: 200535
* tsan: use verbosity flag in sanitizer_common code directlyDmitry Vyukov2013-10-151-1/+1
| | | | | | now it's available from common_flags() llvm-svn: 192705
* tsan: move kernel struct definition from sanitizer_linux.h to ↵Dmitry Vyukov2013-10-151-21/+7
| | | | | | sanitizer_platform_limits_posix.h llvm-svn: 192695
* tsan: implement internal syscall-based versions of sigaction/sigprocmaskDmitry Vyukov2013-10-151-0/+22
| | | | | | | use them in stoptheworld fixes applications that intercept sigaction/sigprocmask llvm-svn: 192686
* [sanitizer] Define kPthreadDestructorIterations on POSIX systems.Sergey Matveev2013-10-111-3/+0
| | | | llvm-svn: 192453
* [sanitizer] Move the PTHREAD_DESTRUCTOR_ITERATIONS constant to ↵Sergey Matveev2013-10-111-0/+2
| | | | | | | | sanitizer_linux.h. Add a test. llvm-svn: 192442
* [Sanitizer] Refactor symbolization interface: use class instead of several ↵Alexey Samsonov2013-09-101-0/+5
| | | | | | functions. Move some code around to get rid of extra source files llvm-svn: 190410
* [sanitizer_common] Add internal_clone().Sergey Matveev2013-09-021-0/+4
| | | | | | | | | | | Add a wrapper for the clone syscall for use in StopTheWorld. We implement it only for x86_64, so stop building StopTheWorld for other platforms (no one uses it outside x86_64 anyway). See https://code.google.com/p/address-sanitizer/issues/detail?id=214 for why we can't use the glibc clone() wrapper. llvm-svn: 189753
* Move UnpoisonMappedDSO to sanitizer_common.Peter Collingbourne2013-07-291-0/+4
| | | | | | | | This is so DFSan will be able to use it. Differential Revision: http://llvm-reviews.chandlerc.com/D1206 llvm-svn: 187372
* [Sanitizer] support running external llvm-symbolizer on MacAlexey Samsonov2013-06-111-2/+0
| | | | llvm-svn: 183730
* [sanitizer] Change the way GetThreadStackAndTls() obtains the thread ↵Sergey Matveev2013-05-291-0/+2
| | | | | | | | | | descriptor address. Instead of using arch_prctl(ARCH_GET_FS), read the address from the tread descriptor itself. This lets us avoid sandboxing issues. Also, GetThreadStackAndTls() can now be implemented on i386. llvm-svn: 182853
* [nolibc] Unweak SymbolizerPrepareForSandboxing and move it to ↵Peter Collingbourne2013-05-291-0/+5
| | | | | | | | | | libc-independent part. Fixes the Go build. Differential Revision: http://llvm-reviews.chandlerc.com/D877 llvm-svn: 182851
* [sanitizer] LibraryNameIs in sanitizer_linuxSergey Matveev2013-05-141-0/+4
| | | | llvm-svn: 181787
* [nolibc] Change internal syscall API to remove reliance on libc's errno.Peter Collingbourne2013-05-081-3/+4
| | | | | | | | | | | | | This change moves to a model where the error value of a system call is potentially contained in the return value itself rather than being implicit in errno. The helper function internal_iserror can be used to extract the error value from a return value. On platforms other than Linux/x86_64 this still uses errno, but other platforms are free to port their error handling to this new model. Differential Revision: http://llvm-reviews.chandlerc.com/D756 llvm-svn: 181436
* [sanitizer] Move GetThreadStackAndTls from TSan to sanitizer_common.Sergey Matveev2013-05-071-0/+3
| | | | | | | | Move this function to sanitizer_common because LSan uses it too. Also, fix a bug where the TLS range reported for main thread was off by the size of the thread descriptor from libc (TSan doesn't care much, but for LSan it's critical). llvm-svn: 181322
* Remove InternalAlloc/InternalFree calls from StopTheWorld. Patch by Sergey ↵Alexey Samsonov2013-04-051-1/+2
| | | | | | Matveev. llvm-svn: 178855
* [sanitizer] Don't adjust the size of the user-allocated stack.Evgeniy Stepanov2013-03-191-0/+3
| | | | | | Moved this code to sanitizer_common. llvm-svn: 177383
* add Linux syscall wrappers and ThreadLister to sanitizer_commonKostya Serebryany2013-02-271-0/+53
ThreadLister is a Linux-specific class for obtaining the thread IDs of a process from procfs (/proc/<pid>/task/). It will be used by leak checking code. Also add several syscall wrappers which will be required by the same code that uses ThreadLister, but are not used in ThreadLister itself. Patch by Sergey Matveev llvm-svn: 176179
OpenPOWER on IntegriCloud