- May 28, 2013
-
-
Peter Collingbourne authored
Differential Revision: http://llvm-reviews.chandlerc.com/D872 llvm-svn: 182765
-
- May 23, 2013
-
-
Alexander Potapenko authored
[ASan] Introduce SymbolizerPrepareForSandboxing(), which is a no-op on every 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
-
- May 21, 2013
-
-
Kostya Serebryany authored
[sanitizer] fix asan on the platforms where the page size is not a compile-time constant (or at least where EXEC_PAGESIZE may not be trustworthy), e.g. powerpc64. llvm-svn: 182351
-
- May 20, 2013
-
-
Peter Collingbourne authored
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
-
Peter Collingbourne authored
llvm-svn: 182292
-
Peter Collingbourne authored
__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
-
- May 14, 2013
-
-
Sergey Matveev authored
llvm-svn: 181787
-
- May 08, 2013
-
-
Peter Collingbourne authored
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
-
- May 07, 2013
-
-
Sergey Matveev authored
llvm-svn: 181330
-
Sergey Matveev authored
llvm-svn: 181327
-
Sergey Matveev authored
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
-
Evgeniy Stepanov authored
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
-
- Apr 26, 2013
-
-
Sergey Matveev authored
llvm-svn: 180602
-
Sergey Matveev authored
llvm-svn: 180599
-
- Apr 23, 2013
-
-
Alexey Samsonov authored
llvm-svn: 180098
-
Alexey Samsonov authored
llvm-svn: 180082
-
- Apr 05, 2013
-
-
Alexey Samsonov authored
llvm-svn: 178855
-
- Apr 03, 2013
-
-
Alexey Samsonov authored
llvm-svn: 178627
-
- Mar 26, 2013
-
-
Alexander Potapenko authored
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
-
- Mar 25, 2013
-
-
Dmitry Vyukov authored
llvm-svn: 177857
-
- Mar 21, 2013
-
-
Dmitry Vyukov authored
tsan: use a single background thread for memory profiler and memory flush (and later for symbolizer flush) llvm-svn: 177627
-
- Mar 20, 2013
-
-
Dmitry Vyukov authored
llvm-svn: 177510
-
- Mar 19, 2013
-
-
Evgeniy Stepanov authored
llvm-svn: 177400
-
Evgeniy Stepanov authored
llvm-svn: 177384
-
Evgeniy Stepanov authored
Moved this code to sanitizer_common. llvm-svn: 177383
-
- Mar 14, 2013
-
-
Alexey Samsonov authored
llvm-svn: 177072
-
- Mar 13, 2013
-
-
Evgeniy Stepanov authored
llvm-svn: 176938
-
Alexey Samsonov authored
llvm-svn: 176932
-
Alexey Samsonov authored
[Sanitizer] Change MemoryMappingLayout methods to also report memory protection flags (for future use in leak checker). Patch by Sergey Matveev. llvm-svn: 176931
-
- Mar 11, 2013
-
-
Alexey Samsonov authored
llvm-svn: 176805
-
- Feb 27, 2013
-
-
Alexey Samsonov authored
llvm-svn: 176183
-
Kostya Serebryany authored
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
-
- Feb 20, 2013
-
-
Alexey Samsonov authored
llvm-svn: 175622
-
- Feb 19, 2013
-
-
Evgeniy Stepanov authored
execle(argv[0], ...) is wrong, because argv[0] may contain a PATH-resolvable program name. Execute /proc/self/exe instead. llvm-svn: 175504
-
- Feb 14, 2013
-
-
Evgeniy Stepanov authored
/proc/$PID/cmdline is clipped to 4Kb. Locate argv and envp on the main thread stack. llvm-svn: 175163
-
Evgeniy Stepanov authored
We are still limited by /proc/*/cmdline size (4Kb max on Linux!). llvm-svn: 175145
-
- Feb 04, 2013
-
-
Alexey Samsonov authored
llvm-svn: 174316
-
- Feb 01, 2013
-
-
Alexey Samsonov authored
llvm-svn: 174189
-
Alexey Samsonov authored
llvm-svn: 174187
-
- Jan 30, 2013
-
-
Dmitry Vyukov authored
asan/tsan: manually define FUTEX constants, because <linux/futes.h> header is broken on some linux distributions llvm-svn: 173933
-