Viktor Kutuzov
78206c5b7e
[Msan] Fix the iconv.cc test to build and pass on FreeBSD
...
Differential Revision: http://reviews.llvm.org/D9252
llvm-svn: 235799
2015-04-25 11:07:05 +00:00
Viktor Kutuzov
53e047de9e
[Msan] XFAIL the ftime.cc test on FreeBSD
...
Differential Revision: http://reviews.llvm.org/D9222
llvm-svn: 235704
2015-04-24 07:54:38 +00:00
Viktor Kutuzov
0e15144ba1
[Msan] Fix the backtrace.cc tests to build and pass on FreeBSD
...
Differential Revision: http://reviews.llvm.org/D9221
llvm-svn: 235703
2015-04-24 07:52:47 +00:00
Mohit K. Bhakkad
b40fed04e7
[MSan][MIPS] Fix for some failing tests on MIPS64
...
Enabling internal ptrace for mips, which fixes some
ptrace related tests. Along with this fixing some
other failures.
Reviewers: Reviewers: eugenis, kcc, samsonov
Subscribers: dsanders, sagar, lldb-commits
Differential Revision: http://reviews.llvm.org/D7332
llvm-svn: 229656
2015-02-18 09:24:19 +00:00
Viktor Kutuzov
2ea54bcb28
[Msan] Fix the pthread_attr_get unit test to build on FreeBSD
...
Differential Revision: http://reviews.llvm.org/D7342
llvm-svn: 228125
2015-02-04 09:08:00 +00:00
Viktor Kutuzov
1f83bbb6fe
[Sanitizers] Intercept ether functions on FreeBSD
...
Committed unreviewed with permission.
llvm-svn: 227795
2015-02-02 10:00:23 +00:00
Viktor Kutuzov
1a3889da34
[Sanitizers] Intercept memrchr() on FreeBSD
...
Committed unreviewed with permission.
llvm-svn: 227794
2015-02-02 09:58:30 +00:00
Viktor Kutuzov
bb8bd90b06
[Sanitizers] Intercept getpwnam_r() on FreeBSD
...
Committed unreviewed with permission.
llvm-svn: 227793
2015-02-02 09:56:11 +00:00
Viktor Kutuzov
3ac0eb7480
[Sanitizers] Intercept getpwent_r() on FreeBSD
...
Committed unreviewed with permission.
llvm-svn: 227792
2015-02-02 09:53:02 +00:00
Viktor Kutuzov
fc44a096a9
[Sanitizers] Intercept getpwent() on FreeBSD
...
Committed unreviewed with permission.
llvm-svn: 227791
2015-02-02 09:49:28 +00:00
Viktor Kutuzov
6fe85cbb8e
[Sanitizers] Intercept gethost functions on FreeBSD
...
Committed unreviewed with permission.
llvm-svn: 227572
2015-01-30 12:58:37 +00:00
Viktor Kutuzov
8f6001bf59
[Sanitizers] Intercept statfs() on FreeBSD
...
Committed unreviewed with permission.
llvm-svn: 226910
2015-01-23 14:39:23 +00:00
Evgeniy Stepanov
229984947b
[sanitizer] Intercept sched_getparam.
...
llvm-svn: 226827
2015-01-22 14:03:07 +00:00
Viktor Kutuzov
3f68fae900
[Sanitizers] Intercept preadv() on FreeBSD
...
Committed unreviewed with permission.
llvm-svn: 226794
2015-01-22 08:47:54 +00:00
Viktor Kutuzov
f6894e9c2c
[Sanitizers] Intercept confstr() on FreeBSD
...
Committed unreviewed with permission.
llvm-svn: 226649
2015-01-21 08:56:40 +00:00
Viktor Kutuzov
9c967286e0
[Sanitizers] Intercept statvfs() on FreeBSD
...
Committed unreviewed with permission.
llvm-svn: 226462
2015-01-19 13:26:25 +00:00
Viktor Kutuzov
05f6929932
[Sanitizers] Intercept clock_gettime() on FreeBSD
...
Committed unreviewed with permission.
llvm-svn: 226276
2015-01-16 14:54:39 +00:00
Viktor Kutuzov
068ece9679
[Sanitizers] Intercept lgamma_r() on FreeBSD
...
Committed unreviewed with permission.
llvm-svn: 226275
2015-01-16 14:52:17 +00:00
Viktor Kutuzov
90f8673f05
[Sanitizers] Intercept wcsnrtombs() on FreeBSD
...
Differential Revision: http://reviews.llvm.org/D6755
llvm-svn: 224709
2014-12-22 14:45:30 +00:00
Viktor Kutuzov
d4c3ffc5bf
[Sanitizers] Intercept snprintf_l() on FreeBSD
...
Differential Revision: http://reviews.llvm.org/D6418
llvm-svn: 224700
2014-12-22 12:29:40 +00:00
Viktor Kutuzov
35fb0b5d52
[Sanitizers] Intercept wordexp on FreeBSD
...
Differential Revision: http://reviews.llvm.org/D6737
llvm-svn: 224699
2014-12-22 12:21:35 +00:00
Viktor Kutuzov
28e3d0b6f9
[Sanitizers] Intercept __tls_get_addr() and shmctl() on FreeBSD
...
Differential Revision: http://reviews.llvm.org/D6384
llvm-svn: 222757
2014-11-25 13:08:02 +00:00
Viktor Kutuzov
6a9dec2aa2
[Tsan] Intercept pthread_set_name_np on FreeBSD
...
Differential Revision: http://reviews.llvm.org/D5932
llvm-svn: 220551
2014-10-24 09:23:06 +00:00
Viktor Kutuzov
bafaa7f6ba
[Sanitizers] Intercept dlopen() and dlclose() on FreeBSD
...
Differential Revision: http://reviews.llvm.org/D5664
llvm-svn: 219396
2014-10-09 08:59:59 +00:00
Viktor Kutuzov
dcb98e5dcc
Intercept sigfillset() and sigemptyset() for sanitizers needs on FreeBSD
...
Differential Revision: http://reviews.llvm.org/D5206
llvm-svn: 217307
2014-09-06 07:46:55 +00:00
Viktor Kutuzov
2132b704ff
Intercept _exit() for sanitizers' needs on FreeBSD
...
Differential Revision: http://reviews.llvm.org/D5171
llvm-svn: 217156
2014-09-04 14:24:27 +00:00
Kostya Serebryany
74bd6bc9f9
[sanitizer] move mlock interceptor from asan/tsan/msan to common; no functionality change intended
...
llvm-svn: 216407
2014-08-25 20:57:59 +00:00
Evgeniy Stepanov
f5c1f8ac84
[sanitizer] Intercept timerfd_settime, timerfd_gettime.
...
llvm-svn: 215112
2014-08-07 14:21:42 +00:00
Evgeniy Stepanov
d73e7cc879
[sanitizer] Intercept getpass.
...
llvm-svn: 212937
2014-07-14 13:07:51 +00:00
Evgeniy Stepanov
4af9c0ea80
[asan] i686-linux-android support.
...
Large part of this change is required due to
https://code.google.com/p/android/issues/detail?id=61799
dlsym() crashes when symbol resolution fails, which means
we have to limit the interceptor list instead of relying on
runtime detection.
There are minor differencies in system headers, too.
llvm-svn: 212273
2014-07-03 14:20:56 +00:00
Evgeniy Stepanov
a2327c3a65
[sanitizer] Intercept pthread_*attr_get*.
...
This is a resubmit of r211166 reverted due to osx breakage.
llvm-svn: 211264
2014-06-19 10:19:57 +00:00
Arnold Schwaighofer
868050a667
Revert "[sanitizer] Intercept pthread_*attr_get*."
...
This reverts commit r211166. It broke public mac os x bots.
llvm-svn: 211206
2014-06-18 19:04:47 +00:00
Evgeniy Stepanov
b87f1efc5f
[sanitizer] Intercept pthread_*attr_get*.
...
llvm-svn: 211166
2014-06-18 14:16:41 +00:00
Evgeniy Stepanov
360c911872
[asan] Disable dlopen interceptor on Android.
...
It can not work, as libdl is always first in the lookup order,
even ahead of LD_PRELOAD-ed libraries.
llvm-svn: 209657
2014-05-27 14:14:03 +00:00
Evgeniy Stepanov
567e516015
[asancov] Write coverage directly to a memory-mapped file.
...
This way does not require a __sanitizer_cov_dump() call. That's
important on Android, where apps can be killed at arbitrary time.
We write raw PCs to disk instead of module offsets; we also write
memory layout to a separate file. This increases dump size by the
factor of 2 on 64-bit systems.
llvm-svn: 209653
2014-05-27 12:37:52 +00:00
Evgeniy Stepanov
68d7f43e38
[sanitizer] Disable fopen64 interceptor on osx.
...
llvm-svn: 208693
2014-05-13 12:05:38 +00:00
Evgeniy Stepanov
5680a26b0b
[msan] Better open_memstream support.
...
Move fflush and fclose interceptors to sanitizer_common.
Use a metadata map to keep information about the external locations
that must be updated when the file is written to.
llvm-svn: 208676
2014-05-13 08:36:31 +00:00
Evgeniy Stepanov
55590227f8
[sanitizer] Intercept obstack.
...
llvm-svn: 208196
2014-05-07 11:50:56 +00:00
Evgeniy Stepanov
c435fb07dd
[sanitizer] Limit fopen interceptor to linux.
...
llvm-svn: 207227
2014-04-25 13:55:29 +00:00
Evgeniy Stepanov
f3d5d119a8
[sanitizer] Intercept a bunch of stdio calls.
...
Add move fopen/freopen interceptors from TSan to common.
llvm-svn: 207224
2014-04-25 13:26:21 +00:00
Justin Bogner
b83dd55eb6
[sanitizer] wordexp isn't available on iOS
...
llvm-svn: 207140
2014-04-24 20:10:31 +00:00
Evgeniy Stepanov
a7f9071f25
[sanitizer] Intercept tsearch.
...
llvm-svn: 206755
2014-04-21 14:21:51 +00:00
Alexey Samsonov
aefbec9dfd
Move pthread_cond_* interceptors from sanitizer_common with all the ugly hacks to TSan
...
llvm-svn: 206423
2014-04-16 23:06:46 +00:00
Evgeniy Stepanov
24c8d92fec
[sanitizer] Intercept a subset of sunrpc interface (xdr_*).
...
llvm-svn: 205627
2014-04-04 14:51:23 +00:00
Evgeniy Stepanov
86a4d2c32b
[sanitizer] Intercept fgetpwent / fgetgrent.
...
These interceptors require deep unpoisoning of return values.
While at it, we do the same for all other pw/gr interceptors to
reduce dependency on libc implementation details.
llvm-svn: 205004
2014-03-28 13:03:55 +00:00
Evgeniy Stepanov
163ee4efb5
[sanitizer] Intercept setpwent/endpwent.
...
It's hard to write a reliable test for this code because they
work with unpredictable memory locations. But this change should
fix current failures in getpwent() tests on the sanitizer bots.
llvm-svn: 205002
2014-03-28 11:46:35 +00:00
Evgeniy Stepanov
92bee36b3e
[sanitizer] Intercept rand_r.
...
llvm-svn: 205001
2014-03-28 11:21:45 +00:00
Evgeniy Stepanov
74e77756ef
[sanitizer] Intercept getpwent/getgrent.
...
llvm-svn: 205000
2014-03-28 10:56:07 +00:00
Evgeniy Stepanov
7b44e1ad42
[sanitizer] Intercept ftime.
...
llvm-svn: 204991
2014-03-28 08:33:32 +00:00
Evgeniy Stepanov
a6eb1bb59e
[sanitizer] Intercept __bzero on Mac.
...
This should make memset_test pass on Mac.
llvm-svn: 204929
2014-03-27 14:20:34 +00:00