summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_platform_limits_posix.h
AgeCommit message (Collapse)Author
2014-04-01Fix definition of the __sanitizer_passwd structure on FreeBSDViktor Kutuzov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205290 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-28[sanitizer] Fix Mac build.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205006 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-28[sanitizer] Intercept fgetpwent / fgetgrent.Evgeniy Stepanov
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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205004 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-28[sanitizer] Intercept ftime.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204991 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-27[sanitizer] Fix Android build.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204927 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-27[msan] Intercept several malloc-related functions.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204923 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-04A set of trivial changes to support sanitizers on FreeBSD.Alexey Samsonov
Patch by Viktor Kutuzov! git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202801 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-27[ASan] Make sure IOC_DIRMASK is undefined before redefining it.Alexander Potapenko
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202410 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-27[sanitizer] Sizes and layouts for sanitizers on FreeBSD.Evgeniy Stepanov
Patch by Viktor Kutuzov. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202364 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-19[asan] A different way of detectinb stack overflow.Evgeniy Stepanov
Instead of checking stack limits that are not well defined for the main thread, we rely on siginfo::si_code and distance from SP. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201673 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-13[sanitizer] AArch64 sanitizer support; patch by Christophe Lyon and Yvan RouxKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201303 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-10[msan] Return EINVAL instead of crashing from mmap of an invalid address.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201074 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-10[sanitizer] struct ustat and a bunch of other definitions are missing on ↵Evgeniy Stepanov
Android. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201068 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-06[sanitizer] Fix build.Sergey Matveev
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200942 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-06[sanitizer] One does not simply intercept getifaddrs().Sergey Matveev
Upgrade the interceptor, and attempt to fix the Android build. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200936 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-06[sanitizer] Intercept getifaddrs().Sergey Matveev
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200926 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-06[sanitizer] Intercept getresuid and getresgid.Sergey Matveev
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200925 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-05[sanitizer] Implement ioctl decoding.Sergey Matveev
When an unknown ioctl is encountered, try to guess the parameter size from the request id. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200872 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-31[sanitizer] Partial revert of recent ioctl changes.Sergey Matveev
Some build environments are missing the required headers. This reverts r200544, r200547, r200551. This does not revert the change that introduced READWRITE ioctl type. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200567 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-31[asan] Fix Android build.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200551 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-31[sanitizer] Attempt to fix Android build.Sergey Matveev
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200547 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-31[sanitizer] Support most ioctls from /usr/include/sound/.Sergey Matveev
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200544 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-31Make signal-related functions use __sanitizer_* structures instead of ↵Alexander Potapenko
__sanitizer_kernel_* ones. Also rename internal_sigaction() into internal_sigaction_norestorer(), as this function doesn't fully implement the sigaction() functionality on Linux. This change is a part of refactoring intended to have common signal handling behavior in all tools. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200535 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-27[msan] Disable mmap outside of application address range.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200200 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-14[asan] Include <sys/stat.h> if __x86_64__ is definedKostya Serebryany
struct stat defined in <asm/stat.h> is incorrect for x32. <asm/stat.h> is included to get struct __old_kernel_stat. But struct __old_kernel_stat isn't used for x86-64 nor x32. This patch includes <sys/stat.h> instead of <asm/stat.h> and comments out size check of struct __old_kernel_stat for x86-64. Patch by H.J. Lu git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199192 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-13[asan] fix the ppc32 build (by Jakub Jelinek). Note that the LLVM build ↵Kostya Serebryany
still builds only for 64-bit PowerPC, and not for 32-bit git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199090 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-09Revert three patches which were committed without explicit contributionChandler Carruth
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/trunk@196802 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-05[sanitizer] fix the ppc32 build (patch by Jakub Jelinek) Kostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@196489 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-28[sanitizer] Intercept times.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195918 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-27tsan: support synchronization by means of linux aioDmitry Vyukov
http://llvm-reviews.chandlerc.com/D2269 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195830 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-22[sanitizer] Fix kernel headers compatibility on powerpc64.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195442 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-22[sanitizer] Add kernel_stat definitions for arm.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195436 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-22[sanitizer] Restore perf_event_attr handling.Evgeniy Stepanov
This time in a forward/backward compatible way. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195434 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-22[sanitizer] Fix build.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195433 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-22[sanitizer] Change the way we use certain linux kernel headers.Evgeniy Stepanov
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/trunk@195427 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-15Remove #include of net/ip_mroute.h for SANITIZER_MAC.Bob Wilson
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
2013-11-15tsan: add support for robust mutexesDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194823 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-06[asan] attempting to fix x32 build (see ↵Kostya Serebryany
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
2013-11-01[sanitizer] Switch to an older version of struct iocb that is found in the ↵Evgeniy Stepanov
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
2013-11-01[sanitizer] Enhance io_submti syscall handler.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193848 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-31[libsanitizer] Define SANITIZER_IOS when building for iOS or iOS simulator.Alexander Potapenko
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
2013-10-30[asan] Fix syscall hooks build on Android.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193670 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-29[sanitizer] Ptrace syscall handler.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193633 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-29[msan] Intercept shmat.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193581 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-24[sanitizer] Intercept shmctl.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193348 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-23[sanitizer] Intercept ether_* functions.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193241 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-18[sanitizer] Fix OSX build some more.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192967 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-18[sanitizer] Fix OSX build.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192966 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-18[sanitizer] Move statfs/fstatfs to common interceptors and add statvfs/fstatvfs.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192965 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-18[sanitizer] Intercept getmntent, getmntent_r.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192959 91177308-0d34-0410-b5e6-96231b3b80d8