History log of /external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5d71de26cedae3dafc17449fe0182045c0bd20e8 21-Jul-2014 Stephen Hines <srhines@google.com> Update compiler-rt for rebase to r212749.

Includes a cherry-pick of:
r213309 - fixes umodsi3

Change-Id: Ic7367e3586b6af7ef74bee6a8cf437d5f28d975a
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
2d1fdb26e458c4ddc04155c1d421bced3ba90cd0 29-May-2014 Stephen Hines <srhines@google.com> Update compiler-rt aosp/master for 3.5 (r209699) rebase.

Change-Id: I158a30186f0faea2e2400e9dfdd878db2eb40e90
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
e041c6024b3ebf1365c0f99732fc69c607577571 06-Nov-2013 Kostya Serebryany <kcc@google.com> [asan] attempting to fix x32 build (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59018)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194155 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
c1a1ed62228288155459d39194995a36aca4a8a6 26-Oct-2013 Peter Collingbourne <peter@pcc.me.uk> Overhaul the symbolizer interface.

This moves away from creating the symbolizer object and initializing the
external symbolizer as separate steps. Those steps now always take place
together.

Sanitizers with a legacy requirement to specify their own symbolizer path
should use InitSymbolizer to initialize the symbolizer with the desired
path, and GetSymbolizer to access the symbolizer. Sanitizers with no
such requirement (e.g. UBSan) can use GetOrInitSymbolizer with no need for
initialization.

The symbolizer interface has been made thread-safe (as far as I can
tell) by protecting its member functions with mutexes.

Finally, the symbolizer interface no longer relies on weak externals, the
introduction of which was probably a mistake on my part.

Differential Revision: http://llvm-reviews.chandlerc.com/D1985

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193448 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
5e7ba22755b994e4f6aaf8cc00773c4d1b8dbf07 21-Oct-2013 Peter Collingbourne <peter@pcc.me.uk> Use internal_memset to initialize this variable.

Otherwise, the compiler may use memset in non-optimized builds, which is
forbidden in the nolibc part of the runtime.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193098 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
5f4984db88b7b67539f62d7653b928aeadf91b16 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: move kernel struct definition from sanitizer_linux.h to sanitizer_platform_limits_posix.h



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192695 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
0f7a2acb3326a5900d1a1339ebf959b14b372e0d 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: implement internal syscall-based versions of sigaction/sigprocmask
use them in stoptheworld
fixes applications that intercept sigaction/sigprocmask




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192686 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
497ae56316cd05a0d539e0d6e065bbaee254aca3 08-Oct-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Do not break the CFI unwind chain in clone().

Fixes build on clang 3.2, which doesn't support cfi_undefined. This change
doesn't seem to break the slow unwinder. Even if it does, the worst thing that
could happen is that we would not see a backtrace when a fatal error happens
under StopTheWorld.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192196 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
356cff7bb61083db3915cf571c5358aa8d3830ba 17-Sep-2013 Nick Lewycky <nicholas@mxc.ca> Check the function we just called for errors, not an incoming argument. Noticed
by inspection.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190828 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
cac631e3a63ec6c8a74008fe358af9c4b2306582 11-Sep-2013 Alexey Samsonov <samsonov@google.com> [TSan] Use --whole-archive around TSan runtime in old TSan makefiles. Fix a Go build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190513 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
7847d77b246635211c3bf465421d49d7af5226c1 10-Sep-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Refactor symbolization interface: use class instead of several functions. Move some code around to get rid of extra source files

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190410 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
a4e950a2f1eff82b53f500637d1114246886015c 03-Sep-2013 Alexander Potapenko <glider@google.com> [libsanitizer] Remove an unused variable introduced in r189789


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189790 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
2e13ca86c9ce926e6fefd528892592326478ac6c 03-Sep-2013 Alexander Potapenko <glider@google.com> [TSan] Move the /proc/self/maps parsing logic to sanitizer_common

Provide a generic way for the tools to generate memory profiles from contents of /proc/self/maps



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189789 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
cb339108cca40fb4c1ed520656cb6cb75889a237 02-Sep-2013 Sergey Matveev <earthdok@google.com> [sanitizer_common] Add internal_clone().

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.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189753 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
6d40a0a2ffa6735e45bd1d62c94ff725fd3e8b71 30-Aug-2013 Peter Collingbourne <peter@pcc.me.uk> Conditionalise inclusion of link.h on !SANITIZER_ANDROID.

Hopefully fixes the Android build.

Differential Revision: http://llvm-reviews.chandlerc.com/D1551

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189696 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
3c80c6c574850106481f82b9e23d1c728458d4a9 13-Aug-2013 Timur Iskhodzhanov <timurrrr@google.com> Define SANITIZER_INTERFACE_ATTRIBUTE on Windows and fix all the places where SANITIZER_INTERFACE_ATTRIBUTE or SANITIZER_ATTRIBUTE_WEAK are used

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188261 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
d054abef27369471e154ec5693949538c2fdffd9 30-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Disable ForEachMappedRegion on Android.

It needs interface that is missing from the NDK, and it is not used on Android anyway.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187407 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
f50b0fc601aea71d9fb22f01a11c7e206c666edc 29-Jul-2013 Peter Collingbourne <peter@pcc.me.uk> Fix warning.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187373 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
2e75ac983cb233daa1abfa35fb33d2bafffe2ab1 29-Jul-2013 Peter Collingbourne <peter@pcc.me.uk> Move UnpoisonMappedDSO to sanitizer_common.

This is so DFSan will be able to use it.

Differential Revision: http://llvm-reviews.chandlerc.com/D1206

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187372 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
e57f26b5c99cedd56de76f3a10cadcecece768bd 17-Jul-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix unitialized read warning under newer gcc (it does not have visibility into asm)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186495 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
2592a0614d91fe947cd04fe7e2719d273e3e4880 30-May-2013 Kostya Serebryany <kcc@google.com> [asan] workaround for the quemu bug in proc maps (http://code.google.com/p/address-sanitizer/issues/detail?id=160)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182922 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
51c963a812ca2fd24a72e17d1b5c127f4f9290bd 29-May-2013 Peter Collingbourne <peter@pcc.me.uk> [nolibc] Unweak SymbolizerPrepareForSandboxing and move it to libc-independent part.

Fixes the Go build.

Differential Revision: http://llvm-reviews.chandlerc.com/D877

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182851 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
8a4f89ab04ae6075d50eb1d95c8dd80f0bf198b1 28-May-2013 Peter Collingbourne <peter@pcc.me.uk> [nolibc] Make SymbolizerPrepareForSandboxing weak and optional.

Differential Revision: http://llvm-reviews.chandlerc.com/D872

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182765 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
5ce93fc96ab5e2defd85890da63b51cc4c57a2af 23-May-2013 Alexander Potapenko <glider@google.com> [ASan] Introduce SymbolizerPrepareForSandboxing(), which is a no-op on every platform except Linux (because we don't support sandboxing anywhere else yet)
On Linux we pre-cache the value of readlink("/proc/self/exe"), so that it can be later used when the sandbox has been turned on.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182579 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
a8bc34e420d27c47560b0742cec295e40b0f430e 21-May-2013 Kostya Serebryany <kcc@google.com> [sanitizer] fix asan on the platforms where the page size is not a compile-time constant (or at least where EXEC_PAGESIZE may not be trustworthy), e.g. powerpc64.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182351 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
4df343a31cf57c309cf102b9aef870458318f579 20-May-2013 Peter Collingbourne <peter@pcc.me.uk> [nolibc] Move GetPageSize to the individual platforms.

GetPageSize wraps sysconf(_SC_PAGESIZE) on POSIX platforms, but
sysconf resides in libc. To make this libc-independent on Linux,
move the wrapper to sanitizer_mac.cc and return the Linux-specific
constant EXEC_PAGESIZE in the sanitizer_linux.cc implementation.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182303 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
088ea2b46f97172bd0b0663a629e11cf826b84f7 20-May-2013 Peter Collingbourne <peter@pcc.me.uk> [nolibc] Move libc-dependent sanitizer_linux.cc code to sanitizer_linux_libcdep.cc.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182292 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
26337b60b1d551c4744454edd8e5ef3c479e3467 20-May-2013 Peter Collingbourne <peter@pcc.me.uk> [nolibc] Make GetArgsAndEnv libc-independent.

__libc_stack_end is made into a weak symbol if possible. If libc is
not linked, read args and environment from /proc.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182276 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
3de0086409d143a612a54a7a0ed809e286656188 14-May-2013 Sergey Matveev <earthdok@google.com> [sanitizer] LibraryNameIs in sanitizer_linux

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181787 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
9578a3ecfc35a264ede1135033398e2a77a6cad6 08-May-2013 Peter Collingbourne <peter@pcc.me.uk> [nolibc] Change internal syscall API to remove reliance on libc's errno.

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181436 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
f310654ee19b6887677a09f09e522e36e81eb9da 07-May-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Fixed InitTlsSize for Android.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181330 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
35f1c1f7d4f18097c9eca2ce5f6c34a686707829 07-May-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Fixed includes in sanitizer_linux.cc for Android.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181327 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
24323de08fa8850712d56621bff29dbbbd0285a9 07-May-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Move GetThreadStackAndTls from TSan to sanitizer_common.

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).

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181322 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
2be3a283939d4fc14ad86f6cd8be34b1468f22ba 07-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Sanitizer __internal_*stat interface.

With this change, __internal_*stat always expect a "struct stat *" argument.
This avoids stat/stat64 caller-side confusion (sanitizer_common tests already
made this mistake), and allows the use of __internal_fstat() as a drop-in
replacement for libc's fstat().


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181311 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
62db3f26edf6c17ab562c0480176341303a9463a 26-Apr-2013 Sergey Matveev <earthdok@google.com> Revert r180599 "[sanitizer] Clear LD_PRELOAD when forking an external symbolizer."

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
ab06583d10baafeb657ad3e87d77f4ebfb2a6190 26-Apr-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Clear LD_PRELOAD when forking an external symbolizer.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180599 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
ff7c14f911463db91b574533f62eb847a2e08b1c 23-Apr-2013 Alexey Samsonov <samsonov@google.com> Revert r180082 and add a test for SetEnv function

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180098 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
51ecba39a18cc292c5ecb3adcb6571ad141b5402 23-Apr-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Delete unused function

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180082 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
10f3ab775088bec69dd9e7b611f9b4e152f629bc 05-Apr-2013 Alexey Samsonov <samsonov@google.com> Remove InternalAlloc/InternalFree calls from StopTheWorld. Patch by Sergey Matveev.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178855 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
46f9395baf65e17f1a3f7a3a1deee72a1560ac53 03-Apr-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Kill the remainders of platform defines in favor of SANITIZER_ defines

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178627 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
9ae2883d88dd28b9c5dc862107e6e6d12a35926e 26-Mar-2013 Alexander Potapenko <glider@google.com> [libsanitizer] Unmapping the old cache partially invalidates the memory layout, so add
a flag to skip cache update for cases when that's unacceptable (e.g. lsan).

Patch by Sergey Matveev (earthdok@google.com)



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178000 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
b152b1f1411f47848037ab5120c142cf28a9d487 25-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add SetEnv() function that can be used in frontends



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177857 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
4bebe7bab966c82f0a8952f797ed3d490624dc62 21-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: use a single background thread for memory profiler and memory flush (and later for symbolizer flush)



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177627 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
6d6ab9eeea4a99370d7ab18ce80eb96091e2cf3f 20-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add internal_unlink() function



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177510 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
24e13723f8477d8c42ab8b2a7f4f69fc089842f1 19-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Replace more platform checks with SANITIZER_ constants.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177400 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
609a02ad07f09147e2fe7beaa257b8c607aca033 19-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Avoid use of uintptr_t.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177384 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
b9bf700ae7fe59e25976e0abe9636150f3a39cd2 19-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Don't adjust the size of the user-allocated stack.

Moved this code to sanitizer_common.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177383 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
93af5948d3e0c5bdc396f432dd0ae782f499c449 14-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Add default constructor for BlockingMutex

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177072 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
b114ed83859d8d4964ac2284584733bcd2acf4f6 13-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Move GetTlsSize code from TSan to sanitizer_common.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176938 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
ab11e0b10d077945a6e681766b41e12ac6aeb0f0 13-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Fix a typo in function name

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176932 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
45717c9d5e39a434749ae10509111f9df1b2cdf4 13-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Change MemoryMappingLayout methods to also report memory protection flags (for future use in leak checker). Patch by Sergey Matveev.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176931 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
ce700979f644c790c2d9d80f5cc2a1ada0380284 11-Mar-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Implement BlockingMutex::CheckLocked()

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176805 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
35a7faf1fbfac678136e79d53824672dafb7d13e 27-Feb-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] don't include missing header on Android

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176183 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
6fb47af2d2d305adbfc3d41bea589d1527a364a9 27-Feb-2013 Kostya Serebryany <kcc@google.com> add Linux syscall wrappers and ThreadLister to sanitizer_common

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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176179 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
f882247088952deed954a19d745c2dd8871e2035 20-Feb-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] use raw syscall instead of _exit() function on Linux

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175622 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
f35eae83757946decb312deab3f0fe155fe5d580 19-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Fix ReExec on linux.

execle(argv[0], ...) is wrong, because argv[0] may contain a PATH-resolvable
program name. Execute /proc/self/exe instead.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175504 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
eab061185ec0046d447b298a1dff84f028202a3c 14-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Get full argv and envp on glibc.

/proc/$PID/cmdline is clipped to 4Kb.
Locate argv and envp on the main thread stack.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175163 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
7b7801d0811e7091240ddbfdcff817791973ef6f 14-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Raise argv limit for ReExec.

We are still limited by /proc/*/cmdline size (4Kb max on Linux!).


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175145 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
4c9317a7b61e136f832d2ede70f557963fd46bce 04-Feb-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] extend internal libc with stat/fstat/lstat functions

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174316 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
e85c83dcee3d35068e6670ab32545953d4330335 01-Feb-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] use u32 instead of mode_t, which is defined in Darwin headers

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174189 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
ee7cc4454421a176d23442382afd9a01d36e7ad4 01-Feb-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] make internal_open have the same interface as libc version

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174187 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
fa5c41eddf77a3614da0f62044ebf741d86aeab7 30-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan/tsan: manually define FUTEX constants, because <linux/futes.h> header is broken on some linux distributions


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173933 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
23709c9ad9ac7c45de288f5260403426bf932db7 17-Jan-2013 Peter Collingbourne <peter@pcc.me.uk> Have ReExec read environment from /proc/self/environ

It is possible for ReExec to be called before the C standard library
has initialised itself sufficiently for execv to work properly.
Fix this by parsing the environment ourselves and using execve.

Differential Revision: http://llvm-reviews.chandlerc.com/D304

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172748 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
b10a5621daa804f3a2b18fbe75d5fed2a4aeadd3 15-Jan-2013 Kostya Serebryany <kcc@google.com> [sanitizer] hide PR_SET_NAME under an ifdef (for older kernels)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172523 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
c0dbb80bf0eac2771da6faefa5c22155ed4fd33b 14-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: fix Android build


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172389 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
d164ed175a61529589938b3db3cab076a19acf67 14-Jan-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix cmake warning (unused private field)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172387 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
48526014de78e21f7ed027a60670016bc7f5d292 14-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: fix compilation errors in mutex


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172385 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
f4f51f2cc6fa936f0c65577f82e6b62989d546ee 14-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan/tsan: move blocking mutex from asan to sanitizer_common


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172380 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
5e10443518154a9d68d299ef65a0a99ed42193b7 09-Jan-2013 Kostya Serebryany <kcc@google.com> [asan] make the slow unwinder a bit more robust. The unittests pass with fast_unwind_on_fatal=0, but I still observe some differences between the two unwinders

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171973 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
4fce4495502a3668cc4e99164ffcaea92e534d48 14-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix build


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170191 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
49d616ec42ab420ce3ebcbe846b21e3729adf5ac 13-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] pop the internal stack frames in SlowUnwindStack, extend the test to check this

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170124 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
a30c8f9eac981dcf137e84226810b760e35c7be1 13-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] add two asan flags: fast_unwind_on_fatal and fast_unwind_on_malloc to 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
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
25742574510cfb41b97e32f63f107fbb9b328d13 10-Dec-2012 Alexander Potapenko <glider@google.com> Add a libsanitizer API __sanitizer_sandbox_on_notify(void* reserved), which should be used by
the client programs to notify the tools that sandboxing is about to be turned on.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169732 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
1ec519c604021162de8bdb8d433fbad1c5033200 07-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix lint warnings


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169606 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
dddb18b7be36fe1843c8b98a8d9d7614aef5ce8d 07-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] implement SanitizerSetThreadName/SanitizerGetThreadName. Just for linux so far (using prctl(PR_GET_NAME))

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169598 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
286dd3f8afe6700e5dd9b0bdb7afd23121c98c12 05-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix lint warnings


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169369 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
7385f8b8b8723064910cf9737dc929e90aeac548 05-Dec-2012 Alexander Potapenko <glider@google.com> Fix a use-after-unmap bug in /proc/self/maps caching. The cached buffer was occasionally deleted in the MemoryMappingLayout destructor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169335 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
ad91267d45fef531c1082ab7974e4cc78aba5280 03-Dec-2012 Alexander Potapenko <glider@google.com> Use a struct to hold the /proc/self/maps buffer on Linux.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169155 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
93da8b6a5e0ed2ca621897504c5d06449b3d7077 01-Dec-2012 Alexander Potapenko <glider@google.com> Add caching to the MemoryMappingLayout class on Linux. This is necessary for 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.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169076 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
5af39e50366f1aacbebc284f572f08ad1ad07357 21-Nov-2012 Kostya Serebryany <kcc@google.com> [asan/tsan] do not use __WORDSIZE macro, as it is glibc-private thing. Instead, define our own SANITIZER_WORDSIZE

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168424 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
08bfe4988de493dd3e61d02759b3f19c42f8fb78 20-Nov-2012 Kostya Serebryany <kcc@google.com> [asan] better support for powerpc and sparc targets (thanks to H.J. Liu and David Miller)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168358 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
9d0dbbaf33e5c2fe280f141e30be497d62b703a8 19-Nov-2012 Kostya Serebryany <kcc@google.com> [asan] support PowerPC and SPARC in sanitizer_linux.cc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168301 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
fb4f8e11cd69aa76731ba13dea56270359b5c8b7 14-Nov-2012 Kostya Serebryany <kcc@google.com> [asan] use #if defined __x86_64__ instead of #if __WORDSIZE == 64 in sanitizer_linux.cc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167883 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
93b4cafd631b661b4b612ccdc0938f7f1e1c86d6 09-Nov-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] add sanity checks for communication with external symbolizer

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167617 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
3334e12d33261cb8f211f2f49f28ddfa027a40c3 02-Oct-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [*San]: handle EINTR.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
e0023f74ea88efee329f68391b70f8adc6b21617 02-Oct-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix mac build


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165004 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
d7e5bb4043adf4756e6f8cfe0f5a3165b185474d 17-Sep-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Hoist functions to get/set stack size and re-exec from memory-sanitizer branch to sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164020 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
d1b8f588d6b712b6ff2b3d58c73d71614f520122 05-Sep-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] implement readlink as syscall on Linux

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163213 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
e1f5dac9296df08ff83ae5fca51ce4da995b55cf 27-Aug-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Rename ProcessMaps to MemoryMappingLayout and fix Windows build by providing stub implementation

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162671 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
6e893b61094a3bfb1a9f92fb019dd6fb153076b5 14-Aug-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] move OS-dependent pieces of symbolizer to separate source files

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161862 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
75983dd851e39e5ba70edeeda19cfaedbd114cb3 19-Jul-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] When obtaining the data for loaded modules, add address ranges of loadable segments only. Looks like address range of PT_TLS segment may intersect with loadable segments of other modules.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160498 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
a68633fb76208137ccb807914df52758ee5ca6f0 03-Jul-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Extend a symbolizer code. Implemented for Linux only. Use 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.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159652 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
bb8a9511bc748d6a4fd601d713bda584ef7bb772 29-Jun-2012 Kostya Serebryany <kcc@google.com> [asan] fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159429 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
a4e4744778e6b3067f5cf223cf28bb586c1ecf67 29-Jun-2012 Kostya Serebryany <kcc@google.com> [asan] get rid of libc's sscanf as it causes infinite recursion on Fedora.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159424 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
6985085c4860bf945358f227ddba26511ae770e9 20-Jun-2012 Kostya Serebryany <kcc@google.com> [tsan] a bit more lint and Makefile changes to run tests from sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158821 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
0969bcf2c936126b1f6e636b978aade8fc207437 18-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] move different wrappers from TSan to common sanitizer runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158655 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
3dbeabb3446f203156ae03d957de9bdf50933ae4 14-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] move portable GetEnv to common sanitizer runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158451 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
ed996f79710f532bf231537e44d5c8c9c9d57e8d 07-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Fix mac build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158141 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
e5931fd7d2a74fd7fb60bd8d7f644cca51a24364 07-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] factor out GetThreadStackTopAndBottom from ASan runtime to common.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158140 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
6895adc39c4e09371154c8037366ad4464163ed0 07-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] __asan::AsanProcMaps -> __sanitizer::ProcessMaps.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158139 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
9b8a9c1b1ce4659457178ff4c0838ac1b35ca9dc 06-Jun-2012 Kostya Serebryany <kcc@google.com> [tsan,asan] comment out O_CLOEXEC as it causes build failures on old linux kernels

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158071 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
8e820fcf7aafeb8101322182d742fcf99255d972 06-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] move internal_filesize and internal_dup2 from TSan to sanitizer_common.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158052 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
94b5036ee6ba866e1702848855b6d687d1e70afa 05-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] rename sanitizer_defs.h to sanitizer_internal_defs.h

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158001 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
1f11d31faa5ed89b74f7d543b1182fe8de198be5 05-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] add sanitizer_posix.cc. Move more various functions into sanitizer_libc: sscanf, munmap, memchr

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157994 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
a56aefd2e01940fcf88d1426f9de3d5e4b1ee203 05-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] add internal_{close,read,write} functions to sanitizer_libc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157990 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
c5d465136b911bf925f2a631e2b79f1c03e8a1b0 05-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Add sanitizer_win.cc for windows-specific implementations of libc functions. Add internal_open.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157985 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
ae4d9caa4f47fa6abcd641719e9f520622940c17 04-Jun-2012 Alexey Samsonov <samsonov@google.com> Created files sanitizer_linux.cc and sanitizer_mac.cc for platform-specific 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
/external/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc