History log of /external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
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_platform_limits_posix.h
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_platform_limits_posix.h
25ecb75efb30f8a8f80cc89c3a1cb83508e7bacf 10-Feb-2014 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] struct ustat and a bunch of other definitions are missing on Android.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201068 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
7f790caa37ec1c9807c877297d30e040e83ed215 16-Dec-2013 Bill Wendling <isanbard@gmail.com> Merging r-196802:
------------------------------------------------------------------------
r196802 | chandlerc | 2013-12-09 11:25:51 -0800 (Mon, 09 Dec 2013) | 11 lines

Revert three patches which were committed without explicit contribution
by their authors.

This may break builds where others added code relying on these patches,
but please *do not* revert this commit. Instead, we will prepare patches
which fix the failures.

Reverts the following commits:
r168306: "[asan] support x32 mode in the fast stack unwinder. Patch by H.J. Lu"
r168356: "[asan] more support for powerpc, patch by Peter Bergner"
r196489: "[sanitizer] fix the ppc32 build (patch by Jakub Jelinek)"
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@197360 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
0d2a93500c4b071977a9ee89dbc24586fe54bca5 22-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Merging r195442:
------------------------------------------------------------------------
r195442 | eugenis | 2013-11-22 15:01:43 +0400 (Fri, 22 Nov 2013) | 2 lines

[sanitizer] Fix kernel headers compatibility on powerpc64.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@195464 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
f17dd743288942a36f82e09706f18477b27f603d 22-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Merging r195436:
------------------------------------------------------------------------
r195436 | eugenis | 2013-11-22 14:09:34 +0400 (Fri, 22 Nov 2013) | 2 lines

[sanitizer] Add kernel_stat definitions for arm.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@195463 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
d7041c6617b10302be6849b55a88dc928fd7f6b8 22-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Merging r195434:
------------------------------------------------------------------------
r195434 | eugenis | 2013-11-22 13:32:39 +0400 (Fri, 22 Nov 2013) | 4 lines

[sanitizer] Restore perf_event_attr handling.

This time in a forward/backward compatible way.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@195462 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
43e7e4ec3743b46a1d2e8f268d02c976c9e8e5a6 22-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Merging r195433:
------------------------------------------------------------------------
r195433 | eugenis | 2013-11-22 13:26:10 +0400 (Fri, 22 Nov 2013) | 2 lines

[sanitizer] Fix build.

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@195461 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
e1e68833ddbebf4827690218763c0be5b91104e7 22-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Merging r195427:
------------------------------------------------------------------------
r195427 | eugenis | 2013-11-22 13:01:50 +0400 (Fri, 22 Nov 2013) | 10 lines

[sanitizer] Change the way we use certain linux kernel headers.

Some linux headers are broken on older kernels.
Instead of depending on the constants and types from such headers directly,
we provide our own definitions and then verify them with compile-time
assertions. This makes the dependency on the headers test-only and would allow
switching to some other way of testing on older kernels, or even disable the
tests as the last resort (after all, kernel interfaces are supposed to be
stable).

------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@195460 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
efb0226d4bc5a61e26851271e1aec2dd0e1f6781 15-Nov-2013 Bob Wilson <bob.wilson@apple.com> Remove #include of net/ip_mroute.h for SANITIZER_MAC.

This header has not been supported at all for the last 2 major OS X releases.
Removed its include and the capture of related symbols.

<rdar://problem/15303348>

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194841 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
11f5309ec1bf13430c8a3a16f177d9e8e1190e38 15-Nov-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add support for robust mutexes



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194823 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
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_platform_limits_posix.h
c50f7962c823506109b6307209411b36e0d46abd 01-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Switch to an older version of struct iocb that is found in the latest Android NDK.

They are binary compatible, and we don't use any of the new fields anyway.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193870 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
bd65956821ebe3f4e1fb0b57892a5a443ad50c6f 01-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Enhance io_submti syscall handler.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193848 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
b8a141f3783d796eabf45fabff82f3e08244e338 31-Oct-2013 Alexander Potapenko <glider@google.com> [libsanitizer] Define SANITIZER_IOS when building for iOS or iOS simulator.
Do not use struct stat64 and struct statfs64 when building for iOS, where __DARWIN_ONLY_64_BIT_INO_T is set to 1.




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193775 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
1bb2229028dd78280d24c26b9efbe8476d966e05 30-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Fix syscall hooks build on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193670 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
3ee98e37856935ac1d79d51364df73ce00d8218e 29-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Ptrace syscall handler.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193633 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
f3603890015c130420def39d67a02c2fdafc6f84 29-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept shmat.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193581 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
10362d66fffcd99bd5ced983e4b389dfeba114d0 24-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept shmctl.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193348 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
369a9a6d4297af031227db1c6fedd21ee7033dc1 23-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept ether_* functions.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193241 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
9d06f1b8b7b215acd843f6360309eb93d51e88c7 18-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix OSX build some more.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192967 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
0489e113d3e9fa9379fa38bc1a50f81414feab48 18-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix OSX build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192966 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
5cee73e486aaa617a9627bb69a6447d3369b62cc 18-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Move statfs/fstatfs to common interceptors and add statvfs/fstatvfs.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192965 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
4d7297daef90ad59446250617b72d184141436fc 18-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept getmntent, getmntent_r.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192959 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
5e2d3776a314629680921abd1d55d89d95a2da90 16-Oct-2013 Alexey Samsonov <samsonov@google.com> Make some pthread_mutex_* and pthread_cond_* interceptors common.

Reviewers: eugenis, dvyukov

Reviewed By: dvyukov

CC: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192774 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
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_platform_limits_posix.h
70db33e143303752c7fe8800d15b5b31066b1e0d 11-Oct-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Define kPthreadDestructorIterations on POSIX systems.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192453 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
cf39032f101dfb3b97b1dfc7b6d03f5d89dff266 02-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix localtime and gmtime interceptors to clean tm->tm_zone.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191827 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
c5a385500057ba60c71abbb1d1cc0ee3773be792 24-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept wordexp.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191305 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
85626e8127d1f795a447c1bacb5a2606c7b954d9 09-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Delete extra whitespace.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190292 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
a3cb27e188bd23190ba7a41a8c62fa7cc5ac5544 06-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Avoid including any system headers in the system-header-free part of the runtime library.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190161 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
9a4a1590169e42076aee67a6fd472ece77b9b484 06-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix Android build.

Android actually has "__unused" macro defined in <cdefs.h>.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190160 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
639df402c4925acd3ea7bebff729a535e3f79964 06-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] A bunch of linux system call handlers.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190157 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
b32d1bfc59592bc57d74a1e940881354b4788eae 27-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Simplify sigaction and sigset_t handling.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189338 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
8766b8162c8e0e2f57baf7aa47736f89aaaac9dc 18-Aug-2013 Chandler Carruth <chandlerc@gmail.com> Revert r188369 (and r188455) which breaks the build on at least some
Linux systems. I've replied on the original commit thread with details
of the problem.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188628 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
e6e564d232f95719277476308937856328c63682 14-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Split platform_limits_posix into system- and kernel-dependent parts.

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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188369 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
e18e3f07802c420eb4b2da407e148084b75cecc9 12-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept poll/ppoll.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188177 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
b6bde4d2bc5231cd1b38ff92e51afb3f6e157386 16-Jul-2013 Alexey Samsonov <samsonov@google.com> [ASan] Bump min supported Mac OS X version to 10.6

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186404 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
eaca82cf249021afa31dbc970278f2f28ea2a1aa 15-Jul-2013 Timur Iskhodzhanov <timurrrr@google.com> Fix check_lint warnings in sanitizers' runtime libraries

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186328 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
5a482cd54a75bf821fb8c61f2fe4e84ae9efb714 11-Jul-2013 Chandler Carruth <chandlerc@gmail.com> Fix a veritable conucopia of bugs in the readdir_r interceptors.

First, the reason I came here: I forgot to look at readdir64_r which had
the exact same bug as readdir_r. However, upon applying the same
quick-fix and testing it I discovered that it still didn't work at all.
As a consequence, I spent some time studying the code and thinking about
it and fixed several other problems.

Second, the code was checking for a null entry and result pointer, but
there is no indication that null pointers are viable here. Certainly,
the spec makes it extremely clear that there is no non-error case where
the implementation of readdir_r fails to dereference the 'result'
pointer and store NULL to it. Thus, our checking for a non-null 'result'
pointer before reflecting that write in the instrumentation was
trivially dead. Remove it.

Third, the interceptor was marking the write to the actual dirent struct
by looking at the entry pointer, but nothing in the spec requires that
the dirent struct written is actually written into the entry structure
provided. A threadlocal buffer would be just as conforming, and the spec
goes out of its way to say the pointer to the *actual* result dirent
struct is stored into *result, so *that* is where the interceptor should
reflect a write occuring. This also obviates the need to even consider
whether the 'entry' parameter is null.

Fourth, I got to the bottom of why nothing at all worked in readdir64_r
-- the interceptor structure for dirent64 was completely wrong in that
it was the same as dirent. I fixed this struct to be correct (64-bit
inode and 64-bit offset! just a 64-bit offset isn't enough!) and added
several missing tests for the size and layout of this struct.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186109 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
57a1095fca7b95db8a0ec87fce7a6f0e331a5b99 10-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] More checks in mbstowcs-like interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186004 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
3fa122e6a8e12db6583793861f6cf776fe1c98a0 09-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Support GLOB_ALTDIRFUNC in glob interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185932 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
12eb79dd701d9d40551759330a9257316601373b 09-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept realpath and canonicalize_file_name.

Handle realpath(path, NULL) form.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185921 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
8be684c5970389c6c86b01592e98ed5a3bc4f78d 05-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix mac build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185706 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
737da2f031badfad5bc5b762cc50d789fbcb6ef8 05-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Intercept pthread_key_create.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185693 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
22d8767a45f08218b4d725146c5a8484a183be29 05-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Disable ptrace interception on non-x86(_64).

Patch by Hal Finkel.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185686 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
906f2c11e854539f316f737b1f661c0f6bc66fab 02-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix GLOB_NOMATCH behaviour and refactor the interceptor a bit.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185428 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
d50d29ecfafbdbdb033f7d94b7ff88c1fce40452 28-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Disable all ptrace-related definitions on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185150 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
3678cf9323d4134887a3fee16e849332d97f03eb 28-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix an unfortunate typo and disable ptrace interception on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185145 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
341b9e63f63a8eacf1b699d4c79edee55241ebe6 28-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept ptrace.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185142 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
a0379b5566f7c04536a313e40c450c6aef4b3ec5 27-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix dirent interceptors.

The new version reads d_reclen for (struct dirent) size.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185067 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
b5cf98f76fd62236f2945bff17b3cdb4e8a5c2f4 26-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] readdir and readdir_r interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184950 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
4f116ad082a3419f98ac000f76a76e0badc0e611 26-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix build with OSS4 kernel headers.

This fixes PR16453.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184925 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
359d7fc7daf099ab8ef9a860564542d2581544aa 24-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept sysinfo.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184739 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
9d60087654f89e3452841350d9eca97644edca9d 24-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept inet_aton.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184735 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
bb273d554d61c1a851158b0c79c2d3f51a845bbd 21-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [santizer] Disable several EVIOxxx ioctls on older kernels.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184539 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
4612abac2e172e077246cec0fcbed291f55a1d02 20-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Handle EVIOxxxx ioctls.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184405 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
89d1eee9f468823cc7f01b0d5281a5c9f64a4c31 19-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix struct ifconf definition on Mac and restore the size checks.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184296 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
7028c1ee187302ace4fa3530769458c0b3caf946 18-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix Android build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184187 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
5ec47415ad09e8cb652a100253ab26cec7501d48 18-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Remove a set of deprecated ioctls.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184185 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
7965e957a57011241334c444fec69d14116a9fdf 18-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Replace ext2_ ioctls with generic fs_ ioctls.

They are actually the same, but ext2_fs.h header is not available in userspace
with newer kernels.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184184 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
2557a1b4517971c9cf1aff62425fc48561db9949 18-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Symbolic ioctl names.

Replace hardcoded ioctl request ids with symbolic names.
Disable certain ioctls on platforms where such names are not found in the
system headers.
Fix a bug in ioctl_lookup.
Reenable ioctl test on Mac.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184183 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
4f0fd8e131b6c2f13244a0fd808abe0da7a50983 10-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix lint warnings


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183642 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
4757c47ba7356aec3a7d49e5e929c19159d75a01 07-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Handle SIOCGIFCONF ioctl.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183529 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
745dd0d296e7bef712df4b5c7f86c72534953738 07-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] ioctl interceptor.

ASan: disabled by default
MSan: enabled by default
TSan: disabled


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183517 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
00c35cfe108797f6677252fd77214c0cbccb5c5b 31-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix wrong size of addrinfo::ai_addrlen.

Add compile time tests for sizes and offsets of all sanitizer-posix types.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182993 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
512c616cacf70ca029a2bf719a482b902f3687cd 29-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix getaddrinfo interceptor to use the actual returned sockaddr size.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182852 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
e215980807069d7bdeb1beff8377b3fe7be33c5f 29-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix Mac build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182845 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
9666d89b628867b2c790d5415f0371fdb4050b0c 29-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Move TSan and MSan recvmsg interceptors to common.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182843 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
0a2cc37712a452525f9f03b3bf67b1f0a97c8d3a 23-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Interceptors for gethostbyname and friends.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182573 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
a05fd3189eec45af6d737be89194471c0972905d 22-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix Mac build one more time.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182481 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
73c9878bec490bbc1dab4ee8df91a8e5b3bfc5cf 22-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix Android build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182479 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
761cabb143283c428aa5af5d45dca7d0a0db74fd 22-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix Android build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182473 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
e0f18f2a532acad86f1601a6ea26ebcd5654c8a8 22-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix Mac build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182469 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
447ef19d1b8cebbeaba49e4be22ac721448dcf3e 22-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] getaddrinfo & nested interceptor support.

Multiple connected changes:
- Ignore reads from nested interceptors.
- Check shadow on reads from common interceptors.
- getaddrinfo interceptor.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182466 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
1aad6b5444207887ecea2b9e87526585d1ce0592 17-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Unpoison dlpi_name in dl_iterate_phdr interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182093 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
9530eb721dfacdf2c3f46d408e22d3f7cf8be667 23-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept inet_pton and inet_ntop.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180107 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
103a63ed3fb5511516b55ce1ee4f33290209f3d8 23-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept getgrnam{_r}, getgrgid{_r}.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180091 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
897a4ae31f5c55255c78854b69b4cd4a4e3c7c39 09-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Interceptors for wait*.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179096 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
4fb04a8445076debf51d220f75211584b89043c8 04-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Android lacks ucontext_t definition.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178756 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
072770202bb1002172abe9a4b1eeb7f2d2fb004f 04-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Use ucontext_t instead of "struct ucontext".

Fixes Mac build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178755 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
06658ea68c4912fffafef6e65f36dce7faa4a174 04-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Unpoison siginfo_t and ucontext_t in signal handlers.

Add wrappers for all user signal handlers to unpoison the handler's arguments.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178754 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
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_platform_limits_posix.h
e4bdda51b3469aa0f6ef6f6c4656419effa48038 01-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] More interceptors.

getpwnam, getpwuid, getpwnam_r, getpwuid_r, clock_getres, clock_gettime,
clock_settime, getitimer, setitimer, sigaction (MSan).



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178465 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
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_platform_limits_posix.h
e4cded90e63cfe6c59d438dec63b6665f774ac16 14-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] No dirent64 on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177071 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
e4af4d280729da44d03576dac0bb903901a7caec 14-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Add changes missing from r177065.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177067 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
0ecc4379bbb04f1d03ceb58f6a0751790fb17c75 13-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix lint.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176943 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
10fd3227546d17c7411241a45ebc143b2031c78d 13-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [msan] Increase stack size as required.

Adjust stack size in pthread_attr_t when the app-requested size does not fit MSan TLS.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176939 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
b711ca6e040d0ac4adb79e688e1a59afcc871d20 19-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Fix Android build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175503 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
9358c58d0aaf1b20f17362af354d4c3c1309276a 19-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Add interceptors for localtime and friends.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175499 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h