Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Rebase Rust changes on LLVM head #15

Closed
wants to merge 68 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
fb8112c
Fixup test/ubsan/TestCases/Misc/coverage-levels.cc, LLVM is smarter
Oct 23, 2015
d1165cd
[compiler-rt] Enable ptrace sanitizer for arm
zatrazz Oct 26, 2015
80f1d25
[compiler-rt] Fix ptrace interceptor for aarch64
zatrazz Oct 26, 2015
303dfb2
[msan] Fix process_vm_readv test.
eugenis Oct 26, 2015
be4b740
asan_symbolize.py: Call llvm-symbolizer with --functions=linkage inst…
vonosmas Oct 26, 2015
1e49033
[asan] Don't use asanwrapper in 64-bit android tests.
eugenis Oct 26, 2015
cfdab24
[asan] Switch back to BFD linker in asan/android tests.
eugenis Oct 26, 2015
0aea262
[asan] Fix throw-call-test to properly XFAIL on android/aarch64.
eugenis Oct 26, 2015
db03c08
[asan] Mark 5 tests unsupported on Android.
eugenis Oct 26, 2015
9a9266f
[msan] Yet another attempt to fix process_vm_readv test.
eugenis Oct 27, 2015
3b26b21
Attempt to fix asan's ptrace.cc on the clang-cmake-mips builder after…
dsandersllvm Oct 27, 2015
fcec98e
[asan] On OS X, tag mapped regions with VM_MEMORY_ANALYSIS_TOOL tag
AnnaZaks Oct 27, 2015
6f70a3c
[asan] Sort headers.
AnnaZaks Oct 27, 2015
72f38c1
[asan] On OS X, log reports to syslog and os_trace
AnnaZaks Oct 27, 2015
daaaf7a
[mips][asan] XFAIL ptrace.cc
dsandersllvm Oct 27, 2015
29e4171
Revert "[asan] On OS X, log reports to syslog and os_trace"
AnnaZaks Oct 27, 2015
1a2a5a8
sanitizer_common: be more verbose, when symbolizer is not found.
Oct 28, 2015
700dda1
[asan] Disable a flaky test on Android.
eugenis Oct 28, 2015
bd58cbc
[asan] Fix asan_device_setup script on KitKat.
eugenis Oct 28, 2015
a1eec3a
Reapply: [asan] On OS X, log reports to syslog and os_trace
AnnaZaks Oct 28, 2015
5b3b8a0
[compiler-rt] [msan] Unify aarch64 mapping
zatrazz Oct 29, 2015
8f11ffe
Sanitizer: define WIN32_LEAN_AND_MEAN
compnerd Oct 29, 2015
6f7eaaa
Revert "Apply modernize-use-default to compiler-rt."
vonosmas Oct 30, 2015
fe1142e
[tsan] CMake support for TSan on OS X
kubamracek Nov 3, 2015
28992d9
[tsan] Port TSan interceptors on OS X
kubamracek Nov 3, 2015
1d675fa
[tsan] Fix build errors for TSan on OS X
kubamracek Nov 3, 2015
4d918b6
Revert r251918 ("[tsan] Fix build errors for TSan on OS X").
kubamracek Nov 3, 2015
befa80c
Reapply r251918 ("[tsan] Fix build errors for TSan on OS X").
kubamracek Nov 3, 2015
e2b976a
Revert r251916 ("[tsan] Port TSan interceptors on OS X").
kubamracek Nov 3, 2015
657bd0e
Reapply r251916 ("[tsan] Port TSan interceptors on OS X").
kubamracek Nov 3, 2015
1d301e4
Fixup for r251923 to fix a warning about an extra semicolon.
kubamracek Nov 3, 2015
4356fa3
Support for 32-bit mingw-w64 in compiler-rt.
martell Nov 3, 2015
6754ab2
Fix r251928 build error
martell Nov 3, 2015
7f1c97c
[tsan] Allow memchr interceptor to be used before initialization on OS X
kubamracek Nov 3, 2015
d486db8
[tsan] Shadow memory setup for OS X
kubamracek Nov 4, 2015
9798c96
[tsan] Handle libdispatch worker threads on OS X
kubamracek Nov 4, 2015
6d781b8
[tsan] Use malloc zone interceptors on OS X, part 1 (refactoring)
kubamracek Nov 4, 2015
e3abbe5
Whitespace fixup for r252052. NFC.
kubamracek Nov 4, 2015
73a0848
Asan: utility function to determine first wrongly poisoned byte in
aizatsky-chromium Nov 4, 2015
766e7c6
Revert "Reapply: [asan] On OS X, log reports to syslog and os_trace"
ributzka Nov 4, 2015
4dc8693
[TSan] Fix mmap/mmap64 interceptor signature.
vonosmas Nov 5, 2015
438a247
[Sanitizer] Use ReportMmapFailureAndDie() in all applicable mmap vari…
vonosmas Nov 5, 2015
e387c40
[tsan] Use malloc zone interceptors on OS X, part 2
kubamracek Nov 5, 2015
29bf03d
[tsan] Alternative ThreadState storage for OS X
kubamracek Nov 5, 2015
b33423e
[tsan] Fix pthread_once interceptor for OS X
kubamracek Nov 5, 2015
3c01317
[tsan] Allow memmove interceptor to be used when TSan is not initialized
kubamracek Nov 5, 2015
26de8b7
[tsan] Fix the memcpy interceptor to be memmove compatible on OS X
kubamracek Nov 5, 2015
ecb0485
Lint warning fixup for r252160 ("[tsan] Fix pthread_once interceptor …
kubamracek Nov 5, 2015
cdfcc2b
[tsan] Fix build warnings on OS X
kubamracek Nov 5, 2015
aaf8214
[compiler-rt][aarch64] New tests for 128-bit floating-point builtins,…
Nov 5, 2015
1c59107
Trying to fix the FreeBSD build breakage due to r251916.
kubamracek Nov 6, 2015
ebc821f
[tsan] Replace pthread_yield with sched_yield in lit tests
kubamracek Nov 6, 2015
b83dae9
[tsan] Enable new/delete C++ interceptors for OS X
kubamracek Nov 6, 2015
dfcf188
tsan: make invisible test barrier portable
dvyukov Nov 6, 2015
08bd93a
[tsan] Add Darwin support for lit tests
kubamracek Nov 6, 2015
f6ea2d8
Rust: Add triple.mk
angelsl Oct 23, 2015
01b893b
Rust: triple.mk: properly filter out Clang-specific atomic* builtins
angelsl Oct 23, 2015
8d4ca03
Rust: delete other platforms' makefiles to prevent conflicts
angelsl Oct 28, 2015
540b094
Rust: Enable MSVC build
angelsl Oct 23, 2015
a4b1f78
Rust: Silence -fPIC warnings on Windows
angelsl Oct 23, 2015
b97188b
Rust: fix MSVC-built lib pulling in other lib files
angelsl Oct 30, 2015
ba1ad13
Rust: fix clear_cache ARM ASM
angelsl Oct 27, 2015
280acc0
Rust: cleanup macros leaked from pthread.h on Android
angelsl Oct 27, 2015
3d5277f
Rust: Fix clear_cache on MIPS
angelsl Oct 28, 2015
1295486
Rust: Add back endianness check via Linux endian.h for old GCC on MIPS
angelsl Oct 28, 2015
961d2bf
Rust: Disable emutls on MIPS; old GCC can't take it
angelsl Oct 28, 2015
5b9c754
Rust: disable emutls on Windows MinGW
angelsl Oct 30, 2015
b6087e8
Rust: Support for SJ/LJ unwinding (arm)
vhbit May 23, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cmake/config-ix.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ if(APPLE)
set(SANITIZER_COMMON_SUPPORTED_OS osx)
set(BUILTIN_SUPPORTED_OS osx)
set(PROFILE_SUPPORTED_OS osx)
set(TSAN_SUPPORTED_OS osx)
if(NOT SANITIZER_MIN_OSX_VERSION)
string(REGEX MATCH "-mmacosx-version-min=([.0-9]+)"
MACOSX_VERSION_MIN_FLAG "${CMAKE_CXX_FLAGS}")
Expand Down Expand Up @@ -547,6 +548,13 @@ else()
set(COMPILER_RT_HAS_TSAN FALSE)
endif()

if(APPLE)
option(COMPILER_RT_ENABLE_TSAN_OSX "Enable building TSan for OS X - Experimental" Off)
if(COMPILER_RT_ENABLE_TSAN_OSX)
set(COMPILER_RT_HAS_TSAN TRUE)
endif()
endif()

if (COMPILER_RT_HAS_SANITIZER_COMMON AND UBSAN_SUPPORTED_ARCH AND
OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows")
set(COMPILER_RT_HAS_UBSAN TRUE)
Expand Down
6 changes: 6 additions & 0 deletions include/sanitizer/common_interface_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ extern "C" {
int __sanitizer_verify_contiguous_container(const void *beg, const void *mid,
const void *end);

// Similar to __sanitizer_verify_contiguous_container but returns the address
// of the first improperly poisoned byte otherwise. Returns null if the area
// is poisoned properly.
const void *__sanitizer_contiguous_container_find_bad_address(
const void *beg, const void *mid, const void *end);

// Print the stack trace leading to this call. Useful for debugging user code.
void __sanitizer_print_stack_trace();

Expand Down
2 changes: 1 addition & 1 deletion lib/asan/asan_fake_stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class FakeStack {
void ForEachFakeFrame(RangeIteratorCallback callback, void *arg);

private:
FakeStack() = default;
FakeStack() { }
static const uptr kFlagsOffset = 4096; // This is were the flags begin.
// Must match the number of uses of DEFINE_STACK_MALLOC_FREE_WITH_CLASS_ID
COMPILER_CHECK(kNumberOfSizeClasses == 11);
Expand Down
8 changes: 4 additions & 4 deletions lib/asan/asan_mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ extern "C" {
#endif

#include <dlfcn.h> // for dladdr()
#include <fcntl.h>
#include <libkern/OSAtomic.h>
#include <mach-o/dyld.h>
#include <mach-o/loader.h>
#include <pthread.h>
#include <stdlib.h> // for free()
#include <sys/mman.h>
#include <sys/resource.h>
#include <sys/sysctl.h>
#include <sys/ucontext.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdlib.h> // for free()
#include <unistd.h>
#include <libkern/OSAtomic.h>

namespace __asan {

Expand Down
Loading