- May 15, 2013
-
-
Kostya Serebryany authored
llvm-svn: 181881
-
- May 06, 2013
-
-
Sergey Matveev authored
Some flags that are common to ASan/MSan/TSan/LSan have been moved to sanitizer_common. llvm-svn: 181193
-
- Apr 04, 2013
-
-
Kostya Serebryany authored
llvm-svn: 178758
-
Kostya Serebryany authored
[asan] fill first 4K of malloc-ed memory with garbage, implement flags max_malloc_fill_size and malloc_fill_byte llvm-svn: 178757
-
- Mar 28, 2013
-
-
Alexey Samsonov authored
[ASan] Speed-up initialization-order checking: create and use fast versions of PoisonShadow functions, store copies of __asan_global descriptors in a vector instead of list of pointers. This gives 3x speedup on both benchmarks and real binaries with lots of globals. llvm-svn: 178239
-
- Mar 22, 2013
-
-
Timur Iskhodzhanov authored
llvm-svn: 177746
-
Timur Iskhodzhanov authored
Band-aid fix for the Windows build caused by r177710. Long-term, atomic_compare_exchange_strong should be a template on Windows too... llvm-svn: 177745
-
Alexey Samsonov authored
[ASan] Fix an error on invalid deallocation in ASan allocator. When ASan checks if memory freed by user was indeed previously allocated, it first does an atomic write to presumed location of chunk header. This is wrong, as if the free is invalid, we may overwrite some valuable data (like other fields of the chunk header). Fix this by using atomic_compare_exchange instead. llvm-svn: 177710
-
- Mar 21, 2013
-
-
Alexey Samsonov authored
[ASan] Switch ASan to generic ThreadRegistry from sanitizer_common. Delete ASan-specific AsanThreadRegistry. llvm-svn: 177634
-
- Mar 20, 2013
-
-
Alexey Samsonov authored
llvm-svn: 177508
-
Alexey Samsonov authored
[ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class into plain functions: they don't actually use registry llvm-svn: 177501
-
- Mar 12, 2013
-
-
Kostya Serebryany authored
[asan] use 4Tb of address space for the asan allocator instead of 1Tb. This increases the memory available for a single size class from 16Gb to 64Gb. The total VM footprint becomes 20Tb llvm-svn: 176857
-
- Feb 27, 2013
-
-
Kostya Serebryany authored
[asan] if calloc returns a freshly-mmaped memory, don't clear it with memset. Speeds up calloc-intensive code llvm-svn: 176185
-
- Feb 26, 2013
-
-
Kostya Serebryany authored
llvm-svn: 176085
-
- Feb 08, 2013
-
-
Timur Iskhodzhanov authored
llvm-svn: 174707
-
- Feb 07, 2013
-
-
Alexander Potapenko authored
Switch to allocator2 on Darwin. llvm-svn: 174603
-
- Feb 05, 2013
-
-
Evgeniy Stepanov authored
In case of partial right OOB, ASan was reporting X is located 0 bytes to the right of [A, B) where X was actually inside [A, B). With this change, ASan will report B as the error address in such case. llvm-svn: 174373
-
- Jan 31, 2013
-
-
Alexey Samsonov authored
[ASan] Split ASan interface header into private and public parts. Add a test that makes sure users can include interface header llvm-svn: 174058
-
- Jan 29, 2013
-
-
Alexey Samsonov authored
[ASan] fix deallocation hook in allocator2: according to specification, dealloc hook should be called before deallocating memory llvm-svn: 173778
-
Alexey Samsonov authored
[ASan] Do allocate memory even for zero-size allocation requests. Explain why we have to do this in comments. llvm-svn: 173776
-
- Jan 28, 2013
-
-
Alexey Samsonov authored
llvm-svn: 173681
-
Kostya Serebryany authored
llvm-svn: 173676
-
- Jan 25, 2013
-
-
Kostya Serebryany authored
llvm-svn: 173441
-
- Jan 23, 2013
-
-
Kostya Serebryany authored
[asan] initialize kHighMemEnd at startup (instead of at compile time) to simplify further changes for various address space layouts. Fix asan_allocator2 for PowerPC (tested on 44-bit address space) llvm-svn: 173260
-
- Jan 17, 2013
-
-
Alexey Samsonov authored
llvm-svn: 172717
-
- Jan 16, 2013
-
-
Kostya Serebryany authored
[asan] asan_allocator2: fix the memalign handling (clear the first word of allocated chunk in case there is an old memalign magic) llvm-svn: 172603
-
- Jan 11, 2013
-
-
Dmitry Vyukov authored
llvm-svn: 172210
-
Kostya Serebryany authored
llvm-svn: 172194
-
Dmitry Vyukov authored
llvm-svn: 172193
-
Dmitry Vyukov authored
llvm-svn: 172192
-
Dmitry Vyukov authored
llvm-svn: 172183
-
- Jan 10, 2013
-
-
Kostya Serebryany authored
[asan] asan_allocator2: do less work under the quarantine lock; make the strcasecmp test more resistant to the contents of unaddressable memory llvm-svn: 172048
-
- Dec 27, 2012
-
-
Kostya Serebryany authored
llvm-svn: 171161
-
Kostya Serebryany authored
[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
-
- Dec 26, 2012
-
-
Kostya Serebryany authored
[asan] asan_allocator2: do not align the requested size to the redzone size (saves a bit more memory) llvm-svn: 171111
-
Kostya Serebryany authored
[asan] asan_allocator2: implement adaptive redzones. Now with asan_allocator2 allocations <= 48 bytes have 16 byte redzone, allocations of 48-96 bytes -- have 32 bytes redzone, etc (max redzone is 2048). If ASAN_OPTIONS=redzone=n is set, it changes the minimal redzone size llvm-svn: 171107
-
Kostya Serebryany authored
[asan] asan_allocator2: by default use the StackDepot to store the stack traces instead of storing them in the redzones llvm-svn: 171099
-
Kostya Serebryany authored
[asan] asan_allocator2: store the user requested size in just 32 bits (larger sizes use metadata). This allows to put one more 32-bit field into the chunk header llvm-svn: 171089
-
- Dec 25, 2012
-
-
Kostya Serebryany authored
[asan] add a test for right OOB with special large sizes. Fix this test in asan_allocator2. More test tweaking for allocator2 llvm-svn: 171058
-
- Dec 21, 2012
-
-
Kostya Serebryany authored
[asan] asan_allocator2 fix two asserts that happen on full chrome: a) memalign called with 0 size and large alignment and b) malloc called after TSD has been destructed llvm-svn: 170900
-