History log of /external/compiler-rt/lib/asan/asan_allocator.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2d1fdb26e458c4ddc04155c1d421bced3ba90cd0 29-May-2014 Stephen Hines <srhines@google.com> Update compiler-rt aosp/master for 3.5 (r209699) rebase.

Change-Id: I158a30186f0faea2e2400e9dfdd878db2eb40e90
/external/compiler-rt/lib/asan/asan_allocator.h
1b17f5b79d58c5aff291dde05727ad0b215b81c6 13-Nov-2013 Alexey Samsonov <samsonov@google.com> [ASan] Do not rely on malloc context in allocator reports.

Invoke a fatal stack trace unwinder when ASan prints allocator-relevant
error reports (double-free, alloc-dealloc-mismatch, invalid-free).
Thus we'll be able to print complete stack trace even if allocation/free
stacks are not stored (malloc_context_size=0).

Based on the patch by Yuri Gribov!


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194579 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
d9def29fe0dc8fc70ef270dcc1a266ad9257ec1f 14-Oct-2013 Alexey Samsonov <samsonov@google.com> [ASan] Don't die with internal ASan error on large buffer overflows

Summary:
Out-of-bound access may touch not-yet allocated or already freed
and recycled from quarantine chunks. We should treat this situation as
a "free-range memory access" and avoid printing any data about that
irrelevant chunk (which may be inconsistent).

This should fix https://code.google.com/p/address-sanitizer/issues/detail?id=183

Reviewers: kcc

Reviewed By: kcc

CC: timurrrr, llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1893

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192581 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
608609429a2202e0342c13bc037368c8d678591c 17-Sep-2013 Alexey Samsonov <samsonov@google.com> [ASan] Don't add SANITIZER_INTERFACE_ATTRIBUTE for internal ASan functions

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190860 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
3c80c6c574850106481f82b9e23d1c728458d4a9 13-Aug-2013 Timur Iskhodzhanov <timurrrr@google.com> Define SANITIZER_INTERFACE_ATTRIBUTE on Windows and fix all the places where SANITIZER_INTERFACE_ATTRIBUTE or SANITIZER_ATTRIBUTE_WEAK are used

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188261 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
244384d1a8a518c0b1ceaa5809333a91db1104b6 11-Apr-2013 Kostya Serebryany <kcc@google.com> [asan] move fake stack into a separate .h file; actually disable a failing test

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179273 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
b1971ca4a3057916ca90a733c672a08127d5fe67 04-Apr-2013 Kostya Serebryany <kcc@google.com> [asan] nuke the old unused allocator code

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178758 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
00545a3625aaa765eef2da9b3e197a0e00e94550 18-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Switch to allocator2 on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177263 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
d4de2a1a7b15d0ed1a303b1604894ae82d5e8748 01-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Revert r176255, r176264.

New allocator has 1.5x memory overhead of the old one.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176340 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
d91046de8b90d78280ec378fce6f3da8cbfd786a 28-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Enable allocator2 on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176255 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
ed83584256249ee2c474fb18abf7df6aa73019b0 08-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Fix off-by-one in AddrIsAtRight.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174710 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
2b10d3944d911c07f2a10cf248300260ed67454a 08-Feb-2013 Timur Iskhodzhanov <timurrrr@google.com> [ASan] Switch Windows to allocator v2, also fixing some build errors

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174707 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
400a946f7300de3db5c50585e3b0aff2ac3c6509 08-Feb-2013 Timur Iskhodzhanov <timurrrr@google.com> [ASan] Move functions using BitScan/clzl to sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174706 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
6a11cc1bc665f13a0fcafe4a6a84761216675af7 07-Feb-2013 Alexander Potapenko <glider@google.com> [ASan] Implement asan_mz_size(), asan_mz_force_lock() and asan_mz_force_unlock() for allocator2.
Switch to allocator2 on Darwin.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174603 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
589dcdaa520de1033a0f6112c9b67ab9eb7931af 05-Feb-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Fix nonsensical reports of partial right OOB.

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.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174373 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
b478260a75516f350f733dccb07cf10e443f9967 28-Jan-2013 Kostya Serebryany <kcc@google.com> [asan] fix a crash in asan stats printing (initialize the allocator in __asan_init)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173676 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
e2399c731b6599f7d608bf5dbbd0b92e1d71fd31 15-Jan-2013 Kostya Serebryany <kcc@google.com> [asan] enable asan_allocator2 by default on Linux. Will enable it on other platforms and remove the old one later, after additional testing. The new allocator is much faster and uses less memory

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172531 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
40265e87a8823589b4af7c3d64fa4194ad91de33 15-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: fix the constant for new allocator cache


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172526 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
1b2f0306ef6cac2a4c42a80b467a92e9e62b3e5a 14-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: enable allocator version 1 by default


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172392 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
d618867d19e4d278e8040e1529f50287c6a4eea5 14-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan/tsan: fix memory allocator statistics


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172390 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
8ad3576df9cc1e8fe3c14da7576670686b51e4e6 11-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: set ASAN_ALLOCATOR_VERSION=1 back


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172184 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
9fc0df892cab8735e7de0e86e995a3202c42cf82 11-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: Refactor asan memory quarantine.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172183 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
4b48f4563ca25d8915155acc5837e195cf0e5c57 27-Dec-2012 Kostya Serebryany <kcc@google.com> [sanitizer] add statistics to the allocator; fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171161 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
fe6d91684bcda766593800f6307233f1a33d31f6 21-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] add a flag alloc_dealloc_mismatch (off by default for now) which finds malloc/delete, new/free, new/delete[], etc mismatches

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170869 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
c523d17b22924aec8d7cf2dc1f68155c02043074 17-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] asan_allocator2: don't use TLS and fix calloc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170329 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
c88059cf6e0b47951413107ae8d7a0caabe661fc 17-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] implement AsanChunkFifoList via IntrusiveList<AsanChunk>

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170313 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
2ca12220769c11d490ace922c4f8b8ce5c3ee0d0 12-Dec-2012 Alexander Potapenko <glider@google.com> [ASan] Fixed a compiler warning.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169972 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
8416e2110049d4f53f790b2486c6f1add6729ea4 11-Dec-2012 Timur Iskhodzhanov <timurrrr@google.com> ASan: fix lint problems introduced

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169857 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
d923f2bf44ba4a839a39042ba661ff7ee931897a 11-Dec-2012 Timur Iskhodzhanov <timurrrr@google.com> Hopefully fix the Windows build (2)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169856 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
4e773526d9f0c7040345468e51bef8f9b3079f45 11-Dec-2012 Timur Iskhodzhanov <timurrrr@google.com> Hopefully fix the Windows build by not including intrin.h

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169855 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
321e1254d3bf8d67232aaff133961573fa0e3ec4 11-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] more sceleton code for asan_allocator2

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169836 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
956ad47e14ba7a7935dc1ff2d96e02023acf8d4d 11-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] fix the Windows build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169828 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
2679f1904dc5d5eb2ce82014116764c5f5131a2b 10-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] move FakeStack into a separate file

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169734 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
8b0a7ce34660ef5b02d21dddb7d45d502539e9fd 10-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] introduce asan_allocator2.cc, which will have the replacement for asan allocator (now, just a bit of boilerplate)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169733 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
5c153faa535f671dd0e8d40ab43397f2d3c6f6f5 18-Sep-2012 Alexey Samsonov <samsonov@google.com> [ASan] Move printing descriptions of heap addresses in error report from allocator internals to asan_report.cc.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164112 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
5092682c3a6902e460a6e439cf48b3dc7d48dc65 30-Aug-2012 Alexey Samsonov <samsonov@google.com> Whitespace/lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162909 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
c3390df6670cb166119b961eb27a033fb9073496 28-Aug-2012 Kostya Serebryany <kcc@google.com> [asan] some renaming before we move StackTrace into sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
e218beb2d14b663bd277158f386a86d0e62fef74 09-Aug-2012 Alexey Samsonov <samsonov@google.com> [ASan] move some functions that describe addresses to asan_report.cc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161571 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
ee3925515e4c7966f3ef489f687aa7e5692806a9 31-May-2012 Kostya Serebryany <kcc@google.com> [asan] more renaming

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
3f4c3875c42078e22c7e5356c5746fd18756d958 31-May-2012 Kostya Serebryany <kcc@google.com> [asan] more renaming

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157746 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
60490e08cce301b2dd7b72fcae8e20ef58c89a9b 21-Feb-2012 Alexander Potapenko <glider@google.com> Check that the FakeStack size is non-zero before looking into it.
Sometimes DescribeStackAddress is called before another thread's FakeStack is initialized, which could previously cause a check to fire.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@151046 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
09672caefb5694f1981a1712fdefa44840a95e67 08-Feb-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: replace all "real_X" calls with "REAL(X)"

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150073 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
4fd95f141f78906570c15a8a3b4cf0a7b50a201d 17-Jan-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: add support for malloc_usable_size() function

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148287 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
c4b34d9af5a7849f91b9a9ba418a2bd144b0812b 09-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] make use-after-return mode more robust: allow to call instrumented functions while reporting an error

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146231 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
cbab911ea555f34c8ac66b4c7dc88f4e7ecf2c03 30-Nov-2011 Kostya Serebryany <kcc@google.com> fix asan-rt build on Mac. Patch by glider@google.com

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145496 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h
1e172b4bdec57329bf904f063a29f99cddf2d85f 30-Nov-2011 Kostya Serebryany <kcc@google.com> AddressSanitizer run-time library. Not yet integrated with the compiler-rt build system, but can be built using the old makefile. See details in README.txt

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145463 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_allocator.h