summaryrefslogtreecommitdiffstats
path: root/compiler-rt
Commit message (Collapse)AuthorAgeFilesLines
* cmake: fix the compiler-rt build with MSVCHans Wennborg2013-08-274-42/+91
| | | | | | | | | This sets flags and excludes things that aren't working with MSVC yet, allowing us to build the ASan runtime as part of the cmake build. Differential Revision: http://llvm-reviews.chandlerc.com/D1525 llvm-svn: 189304
* [sanitizer] Add a fast version of StackDepotGet() for use in LSan.Sergey Matveev2013-08-266-5/+129
| | | | | | | Add a class that holds a snapshot of the StackDepot optimized for querying by ID. This allows us to speed up LSan dramatically. llvm-svn: 189217
* [sanitizer] Handle Die() in StopTheWorld.Sergey Matveev2013-08-263-42/+82
| | | | | | | | | Handle calls to Die() from the tracer thread. Fixes a bug where a CHECK could fail in the tracer thread, resulting in a call to AsanDie. The tracer thread then exited and the parent process continued execution despite its address space being in an unusable state. llvm-svn: 189216
* [dfsan] Integration test for the equal-labels casePeter Collingbourne2013-08-231-0/+5
| | | | llvm-svn: 189134
* [msan] Extend VAArgTLSOverwrite test.Evgeniy Stepanov2013-08-231-4/+15
| | | | | | This test now covers LLVM r189104. llvm-svn: 189105
* Slightly improve lint checker script and fix a few style issuesAlexey Samsonov2013-08-233-33/+40
| | | | llvm-svn: 189092
* [lsan] Add a regression test for building C code.Sergey Matveev2013-08-224-0/+29
| | | | llvm-svn: 189016
* [sanitizer] Fix build when scanf interceptors are enabled, and ↵Evgeniy Stepanov2013-08-221-13/+21
| | | | | | | | __isoc99_*scanf are not. Fixes PR16916. llvm-svn: 189015
* [lsan] Add a stress test.Sergey Matveev2013-08-221-0/+46
| | | | llvm-svn: 189012
* [lsan] Follow-up to r189010 - do the same in Makefile build.Sergey Matveev2013-08-221-1/+1
| | | | llvm-svn: 189011
* [lsan] Build standalone LSan with -fno-rtti.Sergey Matveev2013-08-222-2/+3
| | | | | | Fix issue where C code could not be built with -fsanitize=leak. llvm-svn: 189010
* Add missing ']'.Bill Wendling2013-08-211-1/+1
| | | | llvm-svn: 188927
* For Darwin builds, locate tools using xcrun when available.Bob Wilson2013-08-211-1/+12
| | | | | | | The make/platform/darwin_bni.mk file already has similar code but we apparently neglected to add it to the clang_darwin.mk file. llvm-svn: 188864
* [LSan] Add support for building standalone LSan runtime to Make build ↵Alexey Samsonov2013-08-202-5/+14
| | | | | | (compiler-rt part) llvm-svn: 188804
* It appears that glibc 2.13 has the same thread descriptor size as 2.11,Chandler Carruth2013-08-181-3/+3
| | | | | | | | | | bump up the inflection point to 2.14. If someone can tell me how to actually figure out value for this, that would be awesome. Anyways, this takes me to one ASan failure, one LSan failure, and three TSan failures for 'check-all' on Linux. llvm-svn: 188635
* Revert r188369 (and r188455) which breaks the build on at least someChandler Carruth2013-08-185-534/+505
| | | | | | | Linux systems. I've replied on the original commit thread with details of the problem. llvm-svn: 188628
* Fix endian conditions on Solaris. From Alexander Esilevich.Joerg Sonnenberger2013-08-171-3/+5
| | | | llvm-svn: 188613
* [ASan/RTL] Disable colored reporting on WindowsTimur Iskhodzhanov2013-08-162-0/+7
| | | | llvm-svn: 188545
* tsan: better report formatting for GoDmitry Vyukov2013-08-163-14/+32
| | | | | | | Say that gorotuine 1 is main goroutine. Remove excessive new line. llvm-svn: 188542
* [ASan/RTL] Disable alloc_dealloc_mismatch by default on WindowsTimur Iskhodzhanov2013-08-161-3/+3
| | | | llvm-svn: 188541
* [dfsan] Initial set of custom functions and interceptors for libc.Peter Collingbourne2013-08-159-3/+4310
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1397 llvm-svn: 188490
* [dfsan] Runtime support for -dfsan-debug-nonzero-labels feature.Peter Collingbourne2013-08-151-0/+5
| | | | | | | | | | Reviewers: eugenis CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1406 llvm-svn: 188471
* [sanitizer] Add missing include.Evgeniy Stepanov2013-08-151-0/+3
| | | | llvm-svn: 188455
* [dfsan] New __dfsan_set_label runtime function.Peter Collingbourne2013-08-141-2/+7
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1396 llvm-svn: 188411
* [dfsan] Runtime support for ABI list functionality; can now run integration ↵Peter Collingbourne2013-08-147-10/+60
| | | | | | | | tests with args ABI. Differential Revision: http://llvm-reviews.chandlerc.com/D1351 llvm-svn: 188401
* [sanitizer] Split platform_limits_posix into system- and kernel-dependent parts.Evgeniy Stepanov2013-08-145-505/+531
| | | | | | | | | | | | This change moves everything depending on kernel headers (mostly ioctl types and ids) into a separate source file. This will reduce the possibility of header conflict on various platforms (most importantly, older glibc versions). This change also removes 2 deprecated ioctls, and symbolic ids for other bunch of ambiguous ioctls (i.e. same id is shared by ioctls with different memory behavior). llvm-svn: 188369
* [dfsan] Introduce dfsan_read_label runtime function.Peter Collingbourne2013-08-134-1/+17
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1349 llvm-svn: 188319
* dfsan: fix lint warningDmitry Vyukov2013-08-131-1/+1
| | | | llvm-svn: 188292
* tsan: intercept getaddrinfoDmitry Vyukov2013-08-131-0/+15
| | | | | | | This is necessary to prevent false positives, see: https://code.google.com/p/thread-sanitizer/issues/detail?id=25 llvm-svn: 188291
* [ASan/Win] Oops, forgot to add the attributes to the memory allocations ↵Timur Iskhodzhanov2013-08-131-0/+11
| | | | | | functions llvm-svn: 188290
* tsan/msan: add halt_on_error flagDmitry Vyukov2013-08-139-8/+49
| | | | | | If halt_on_error==true, program terminates after reporting first error. llvm-svn: 188279
* [ASan/Win] Hook some memory allocation functions; passes simple sanity test nowTimur Iskhodzhanov2013-08-131-23/+89
| | | | llvm-svn: 188278
* [ASan/Win] Add the first version of the RTL thunk that should be linked with ↵Timur Iskhodzhanov2013-08-131-0/+79
| | | | | | instrumented DLLs llvm-svn: 188267
* Add a FIXME to check_lintTimur Iskhodzhanov2013-08-131-0/+3
| | | | llvm-svn: 188266
* [*San/RTL] One more minor fixTimur Iskhodzhanov2013-08-131-2/+2
| | | | llvm-svn: 188263
* [*San/RTL] Fix minor breakageTimur Iskhodzhanov2013-08-132-8/+13
| | | | | Grumbling: this hasn't been caught by running 'make check-{a,l,t}san check-sanitizer' llvm-svn: 188262
* Define SANITIZER_INTERFACE_ATTRIBUTE on Windows and fix all the places where ↵Timur Iskhodzhanov2013-08-1322-159/+167
| | | | | | SANITIZER_INTERFACE_ATTRIBUTE or SANITIZER_ATTRIBUTE_WEAK are used llvm-svn: 188261
* [dfsan] Remove the unused __dfsan_memcpy function.Peter Collingbourne2013-08-131-7/+0
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1350 llvm-svn: 188238
* [dfsan] Begin a private header and move shadow_for there.Peter Collingbourne2013-08-122-4/+36
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1348 llvm-svn: 188231
* [dfsan] Introduce dfsan_union runtime function.Peter Collingbourne2013-08-123-0/+18
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1347 llvm-svn: 188229
* Add "CHECK-" prefix to un-break buildbot failure.Rui Ueyama2013-08-127-28/+28
| | | | | | | After r188221, the prefix given by --check-prefix must match with the label as a whole. Substring is not considered to be a correct label anymore. llvm-svn: 188227
* [sanitizer] Intercept poll/ppoll.Evgeniy Stepanov2013-08-1210-8/+119
| | | | llvm-svn: 188177
* [sanitizer] Intercept getgroups.Evgeniy Stepanov2013-08-125-1/+28
| | | | llvm-svn: 188167
* [tests] Add one more lit rename update I missed.Daniel Dunbar2013-08-091-0/+2
| | | | llvm-svn: 188117
* [tests] Update to use lit_config and lit package, as appropriate.Daniel Dunbar2013-08-0926-100/+120
| | | | llvm-svn: 188116
* [sanitizer] Fix handling of %n in scanf interceptor.Evgeniy Stepanov2013-08-092-2/+4
| | | | | | | %n does not increase the input item count. The new code emits writes to %n arguments even if it has run out of input items. llvm-svn: 188069
* [sanitizer] Limit scandir interceptor to Linux.Evgeniy Stepanov2013-08-081-1/+1
| | | | | | Implementation uses __thread not available on certain platforms. llvm-svn: 187983
* [sanitizer] Intercept scandir/scandir64.Evgeniy Stepanov2013-08-089-1/+206
| | | | llvm-svn: 187982
* tsan: better diagnostics for invalid addresses passed to free()Dmitry Vyukov2013-08-081-1/+4
| | | | llvm-svn: 187980
* [sanitizer] Intercept strerror and strerror_r.Evgeniy Stepanov2013-08-085-1/+65
| | | | llvm-svn: 187978
OpenPOWER on IntegriCloud