| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
Hopefully fixes the Android build.
Differential Revision: http://llvm-reviews.chandlerc.com/D1551
llvm-svn: 189696
|
|
|
|
|
|
| |
SANITIZER_INTERFACE_ATTRIBUTE or SANITIZER_ATTRIBUTE_WEAK are used
llvm-svn: 188261
|
|
|
|
|
|
| |
It needs interface that is missing from the NDK, and it is not used on Android anyway.
llvm-svn: 187407
|
|
|
|
| |
llvm-svn: 187373
|
|
|
|
|
|
|
|
| |
This is so DFSan will be able to use it.
Differential Revision: http://llvm-reviews.chandlerc.com/D1206
llvm-svn: 187372
|
|
|
|
|
|
| |
visibility into asm)
llvm-svn: 186495
|
|
|
|
|
|
| |
(http://code.google.com/p/address-sanitizer/issues/detail?id=160)
llvm-svn: 182922
|
|
|
|
|
|
|
|
|
|
| |
libc-independent part.
Fixes the Go build.
Differential Revision: http://llvm-reviews.chandlerc.com/D877
llvm-svn: 182851
|
|
|
|
|
|
| |
Differential Revision: http://llvm-reviews.chandlerc.com/D872
llvm-svn: 182765
|
|
|
|
|
|
|
|
| |
platform except Linux (because we don't support sandboxing anywhere else yet)
On Linux we pre-cache the value of readlink("/proc/self/exe"), so that it can be later used when the sandbox has been turned on.
llvm-svn: 182579
|
|
|
|
|
|
| |
compile-time constant (or at least where EXEC_PAGESIZE may not be trustworthy), e.g. powerpc64.
llvm-svn: 182351
|
|
|
|
|
|
|
|
|
| |
GetPageSize wraps sysconf(_SC_PAGESIZE) on POSIX platforms, but
sysconf resides in libc. To make this libc-independent on Linux,
move the wrapper to sanitizer_mac.cc and return the Linux-specific
constant EXEC_PAGESIZE in the sanitizer_linux.cc implementation.
llvm-svn: 182303
|
|
|
|
|
|
| |
sanitizer_linux_libcdep.cc.
llvm-svn: 182292
|
|
|
|
|
|
|
| |
__libc_stack_end is made into a weak symbol if possible. If libc is
not linked, read args and environment from /proc.
llvm-svn: 182276
|
|
|
|
| |
llvm-svn: 181787
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change moves to a model where the error value of a system call is
potentially contained in the return value itself rather than being
implicit in errno. The helper function internal_iserror can be used
to extract the error value from a return value. On platforms other
than Linux/x86_64 this still uses errno, but other platforms are free
to port their error handling to this new model.
Differential Revision: http://llvm-reviews.chandlerc.com/D756
llvm-svn: 181436
|
|
|
|
| |
llvm-svn: 181330
|
|
|
|
| |
llvm-svn: 181327
|
|
|
|
|
|
|
|
| |
Move this function to sanitizer_common because LSan uses it too. Also, fix a bug
where the TLS range reported for main thread was off by the size of the thread
descriptor from libc (TSan doesn't care much, but for LSan it's critical).
llvm-svn: 181322
|
|
|
|
|
|
|
|
|
| |
With this change, __internal_*stat always expect a "struct stat *" argument.
This avoids stat/stat64 caller-side confusion (sanitizer_common tests already
made this mistake), and allows the use of __internal_fstat() as a drop-in
replacement for libc's fstat().
llvm-svn: 181311
|
|
|
|
|
|
| |
symbolizer."
llvm-svn: 180602
|
|
|
|
| |
llvm-svn: 180599
|
|
|
|
| |
llvm-svn: 180098
|
|
|
|
| |
llvm-svn: 180082
|
|
|
|
|
|
| |
Matveev.
llvm-svn: 178855
|
|
|
|
|
|
| |
defines
llvm-svn: 178627
|
|
|
|
|
|
|
|
|
|
| |
layout, so add
a flag to skip cache update for cases when that's unacceptable (e.g. lsan).
Patch by Sergey Matveev (earthdok@google.com)
llvm-svn: 178000
|
|
|
|
| |
llvm-svn: 177857
|
|
|
|
|
|
| |
(and later for symbolizer flush)
llvm-svn: 177627
|
|
|
|
| |
llvm-svn: 177510
|
|
|
|
| |
llvm-svn: 177400
|
|
|
|
| |
llvm-svn: 177384
|
|
|
|
|
|
| |
Moved this code to sanitizer_common.
llvm-svn: 177383
|
|
|
|
| |
llvm-svn: 177072
|
|
|
|
| |
llvm-svn: 176938
|
|
|
|
| |
llvm-svn: 176932
|
|
|
|
|
|
| |
protection flags (for future use in leak checker). Patch by Sergey Matveev.
llvm-svn: 176931
|
|
|
|
| |
llvm-svn: 176805
|
|
|
|
| |
llvm-svn: 176183
|
|
|
|
|
|
|
|
| |
ThreadLister is a Linux-specific class for obtaining the thread IDs of a process from procfs (/proc/<pid>/task/). It will be used by leak checking code.
Also add several syscall wrappers which will be required by the same code that uses ThreadLister, but are not used in ThreadLister itself.
Patch by Sergey Matveev
llvm-svn: 176179
|
|
|
|
| |
llvm-svn: 175622
|
|
|
|
|
|
|
| |
execle(argv[0], ...) is wrong, because argv[0] may contain a PATH-resolvable
program name. Execute /proc/self/exe instead.
llvm-svn: 175504
|
|
|
|
|
|
|
| |
/proc/$PID/cmdline is clipped to 4Kb.
Locate argv and envp on the main thread stack.
llvm-svn: 175163
|
|
|
|
|
|
| |
We are still limited by /proc/*/cmdline size (4Kb max on Linux!).
llvm-svn: 175145
|
|
|
|
| |
llvm-svn: 174316
|
|
|
|
| |
llvm-svn: 174189
|
|
|
|
| |
llvm-svn: 174187
|
|
|
|
|
|
| |
is broken on some linux distributions
llvm-svn: 173933
|
|
|
|
|
|
|
|
|
|
| |
It is possible for ReExec to be called before the C standard library
has initialised itself sufficiently for execv to work properly.
Fix this by parsing the environment ourselves and using execve.
Differential Revision: http://llvm-reviews.chandlerc.com/D304
llvm-svn: 172748
|
|
|
|
| |
llvm-svn: 172523
|