Kostya Serebryany
|
6f604b5007
|
[asan/tsan] when unmapping a chunk of user memory, apply madvise(MADV_DONTNEED) to the corresponding chunk of shadow memory. Also update sanitizer_allocator64_testlib.cc
llvm-svn: 171144
|
2012-12-27 07:37:24 +00:00 |
Kostya Serebryany
|
7dfb168eb8
|
[asan] more asan_allocator2 code: actually un/poison shadow on malloc/free
llvm-svn: 170190
|
2012-12-14 12:15:09 +00:00 |
Kostya Serebryany
|
9806628792
|
[sanitizer] introduce MmapFixedOrDie and use it in SizeClassAllocator64
llvm-svn: 170099
|
2012-12-13 05:36:00 +00:00 |
Kostya Serebryany
|
90a59fafc0
|
[asan] more code for asan_allocator2: basic Allocate/Deallocate code
llvm-svn: 169864
|
2012-12-11 14:41:31 +00:00 |
Alexander Potapenko
|
1746f555ee
|
Add a libsanitizer API __sanitizer_sandbox_on_notify(void* reserved), which should be used by
the client programs to notify the tools that sandboxing is about to be turned on.
llvm-svn: 169732
|
2012-12-10 13:10:40 +00:00 |
Kostya Serebryany
|
35f9e5e87b
|
[sanitizer] implement SanitizerSetThreadName/SanitizerGetThreadName. Just for linux so far (using prctl(PR_GET_NAME))
llvm-svn: 169598
|
2012-12-07 11:27:24 +00:00 |
Kostya Serebryany
|
1e3d387459
|
[tsan] add MmapAlignedOrDie
llvm-svn: 169474
|
2012-12-06 06:10:31 +00:00 |
Kostya Serebryany
|
dab61684ef
|
[tsan] remove unused InternalAllocBlock as part of larger refactoring
llvm-svn: 169123
|
2012-12-03 11:57:01 +00:00 |
Kostya Serebryany
|
df198db1aa
|
[asan/tsan] get rid of kPageSize completely in favor of GetPageSizeCached(). This makes the code friendly to more platforms
llvm-svn: 168537
|
2012-11-24 05:03:11 +00:00 |
Kostya Serebryany
|
f22c697f58
|
[asan] get rid of some of the uses of kPageSize. The intent is to get rid of it completely to support platforms with multiple possible page sizes.
llvm-svn: 168517
|
2012-11-23 15:38:49 +00:00 |
Kostya Serebryany
|
8bc5421ba0
|
[asan] get rid of kPageSizeBits
llvm-svn: 168426
|
2012-11-21 13:31:07 +00:00 |
Kostya Serebryany
|
734f1eb5f4
|
[asan/tsan] do not use __WORDSIZE macro, as it is glibc-private thing. Instead, define our own SANITIZER_WORDSIZE
llvm-svn: 168424
|
2012-11-21 12:38:58 +00:00 |
Kostya Serebryany
|
46de580003
|
[asan] more support for powerpc, patch by Peter Bergner
llvm-svn: 168356
|
2012-11-20 07:00:42 +00:00 |
Alexey Samsonov
|
ae9b18b607
|
[Sanitizer] add sanity checks for communication with external symbolizer
llvm-svn: 167617
|
2012-11-09 14:45:30 +00:00 |
Alexey Samsonov
|
58358897a3
|
[Sanitizer] Add internal_isatty to sanitizer_libc and PrintsToTty to determine whether error reports are printed to terminal
llvm-svn: 167298
|
2012-11-02 15:18:34 +00:00 |
Dmitry Vyukov
|
56faa551b9
|
tsan: fix mac build
llvm-svn: 165004
|
2012-10-02 12:58:14 +00:00 |
Dmitry Vyukov
|
27d5b37c38
|
tsan: output tid's in reports
llvm-svn: 164998
|
2012-10-02 11:52:05 +00:00 |
Alexey Samsonov
|
97ca306641
|
[Sanitizer] Hoist functions to get/set stack size and re-exec from memory-sanitizer branch to sanitizer_common
llvm-svn: 164020
|
2012-09-17 09:12:39 +00:00 |
Alexey Samsonov
|
5c6b93bc33
|
[Sanitizer] Get rid of dependency between sanitizer_common and asan/tsan runtimes: implement tool-specific Die and CheckFailed functions via callbacks
llvm-svn: 163603
|
2012-09-11 09:44:48 +00:00 |
Alexey Samsonov
|
ceffb021c5
|
[Sanitizer] Remove implicit conversion of InternalScopedBuffer<T> to T*
llvm-svn: 163197
|
2012-09-05 07:23:44 +00:00 |
Kostya Serebryany
|
d0d96bfb86
|
[asan/tsan] use InternalScopedBuffer instead of stack arrays. Use mmap inseted of InternalAlloc in InternalScopedBuffer
llvm-svn: 162834
|
2012-08-29 08:40:36 +00:00 |
Kostya Serebryany
|
bb6f165952
|
[asan] get rid of AsanPrintf in favor of Printf from sanitizer_common
llvm-svn: 162746
|
2012-08-28 11:34:40 +00:00 |
Alexey Samsonov
|
d1d1a814b7
|
[Sanitizer] align allocation sizes in low level allocator
llvm-svn: 162676
|
2012-08-27 14:51:36 +00:00 |
Alexey Samsonov
|
e67a5dd8e1
|
[Sanitizer] Use low-level allocator in flag parsing to avoid calling malloc() before ASan/TSan initialization is done
llvm-svn: 162673
|
2012-08-27 14:04:54 +00:00 |
Alexey Samsonov
|
dc8d1f1039
|
[Sanitizer] move low-level (mmap-based) allocator to sanitizer_common
llvm-svn: 162663
|
2012-08-27 09:30:58 +00:00 |
Alexey Samsonov
|
75e5fc3e57
|
[TSan] switch tsan to using InternalScopedBuffer from sanitizer_common
llvm-svn: 162351
|
2012-08-22 07:25:52 +00:00 |
Alexey Samsonov
|
e6704ee109
|
[Sanitizer] define InternalScopedBuffer to replace large arrays on stack. It is defined analogous to similar class in tsan and should replace it.
llvm-svn: 162262
|
2012-08-21 08:13:37 +00:00 |
Alexey Samsonov
|
d77fbba74a
|
[Sanitizer] implement straightforward nlogn sorting, as qsort() may call malloc, which leads to deadlock in ASan allocator
llvm-svn: 160262
|
2012-07-16 11:27:17 +00:00 |
Dmitry Vyukov
|
03d32ecd4f
|
tsan: Go language support
llvm-svn: 159754
|
2012-07-05 16:18:28 +00:00 |
Alexey Samsonov
|
961276af26
|
[Sanitizer] Extend a symbolizer code. Implemented for Linux only. Use dl_iterate_phdr to get virtual addresses of mapped module sections. To symbolize an address from a module, map this module to memory and obtain pointers to debug info sections. Later these pointers can be passed to constructor of DWARF context-in-memory from LLVM DebugInfo lib.
llvm-svn: 159652
|
2012-07-03 08:24:14 +00:00 |
Dmitry Vyukov
|
6fa46f7003
|
tsan/asan: unify atomics (move atomics from tsan to sanitizer_common)
llvm-svn: 159437
|
2012-06-29 16:58:33 +00:00 |
Dmitry Vyukov
|
c598de93bd
|
tsan: remove internal allocator, switch to sanitizer_common one.
llvm-svn: 159142
|
2012-06-25 15:09:24 +00:00 |
Kostya Serebryany
|
5b01415dc0
|
[tsan] more code for a specialized tsan allocator
llvm-svn: 158991
|
2012-06-22 13:00:50 +00:00 |
Alexey Samsonov
|
e1cb524226
|
[Sanitizer] Renaming: SNPrintf -> internal_snprintf (and move it to sanitizer libc)
llvm-svn: 158710
|
2012-06-19 09:21:57 +00:00 |
Alexey Samsonov
|
58a3c58ec9
|
[Sanitizer] move different wrappers from TSan to common sanitizer runtime
llvm-svn: 158655
|
2012-06-18 08:44:30 +00:00 |
Alexey Samsonov
|
156958dd0c
|
[Sanitizer] move all the rest re-implementations of libc functions from ASan runtime to common sanitizer runtime
llvm-svn: 158519
|
2012-06-15 13:09:52 +00:00 |
Alexey Samsonov
|
40e5128412
|
[Sanitizer] move ShadowRangeIsAvailable and several defines to common runtime
llvm-svn: 158499
|
2012-06-15 07:29:14 +00:00 |
Alexey Samsonov
|
e4a889866d
|
[Sanitizer] move atomic ops, min/max and sort to commnon runtime
llvm-svn: 158496
|
2012-06-15 07:00:31 +00:00 |
Alexey Samsonov
|
70afb91636
|
[Sanitizer] move more portability wrappers to common runtime: sleep, _exit, abort, atexit, pthread_self
llvm-svn: 158493
|
2012-06-15 06:37:34 +00:00 |
Alexey Samsonov
|
ae1e171b72
|
[Sanitizer] move DumpProcessMap and DisableCoreDumper to common runtime
llvm-svn: 158490
|
2012-06-15 06:08:19 +00:00 |
Alexey Samsonov
|
c70d1086f6
|
[Sanitizer] move rest of mmap routines to common sanitizer runtime
llvm-svn: 158452
|
2012-06-14 14:42:58 +00:00 |
Alexey Samsonov
|
0c53a38abb
|
[Sanitizer] move portable GetEnv to common sanitizer runtime
llvm-svn: 158451
|
2012-06-14 14:07:21 +00:00 |
Alexey Samsonov
|
3a6ddb86e8
|
[Sanitizer] Allocator for internal runtime purposes. Currently it calls libcmalloc, but we might have to make it more low-level in future
llvm-svn: 158142
|
2012-06-07 08:52:56 +00:00 |
Alexey Samsonov
|
cf4d3a027d
|
[Sanitizer] Fix mac build.
llvm-svn: 158141
|
2012-06-07 07:32:00 +00:00 |
Alexey Samsonov
|
4b1f1031e6
|
[Sanitizer] factor out GetThreadStackTopAndBottom from ASan runtime to common.
llvm-svn: 158140
|
2012-06-07 07:13:46 +00:00 |
Alexey Samsonov
|
fe44fbd750
|
[Sanitizer] Move ReadFileToBuffer to sanitizer_common.
llvm-svn: 158138
|
2012-06-07 05:38:26 +00:00 |
Kostya Serebryany
|
c0bbfbfba2
|
[asan] more allocator compaction
llvm-svn: 158082
|
2012-06-06 16:33:46 +00:00 |
Alexey Samsonov
|
40d5b772e5
|
[Sanitizer] Switch to common mmap/munmap routines in ASan run-time.
llvm-svn: 158078
|
2012-06-06 16:15:07 +00:00 |
Alexey Samsonov
|
e428779dbf
|
[Sanitizer] Use common CHECK machinery. Currently each tool has to define its own CheckFailed function.
llvm-svn: 158075
|
2012-06-06 15:22:20 +00:00 |
Alexey Samsonov
|
d323f4e78e
|
[Sanitizer] Remove __attribute__((format))
llvm-svn: 158070
|
2012-06-06 13:58:39 +00:00 |