summaryrefslogtreecommitdiff
path: root/test/hwasan/TestCases/heap-buffer-overflow.c
Commit message (Collapse)AuthorAgeFilesLines
* [hwasan] Switch to 64 allocator with a dense size class map.Evgeniy Stepanov2019-01-031-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Replace the 32-bit allocator with a 64-bit one with a non-constant base address, and reduce both the number of size classes and the maximum size of per-thread caches. As measured on [1], this reduces average weighted memory overhead (MaxRSS) from 26% to 12% over stock android allocator. These numbers include overhead from code instrumentation and hwasan shadow (i.e. not a pure allocator benchmark). This switch also enables release-to-OS functionality, which is not implemented in the 32-bit allocator. I have not seen any effect from that on the benchmark. [1] https://android.googlesource.com/platform/system/extras/+/master/memory_replay/ Reviewers: vitalybuka, kcc Subscribers: kubamracek, cryptoad, llvm-commits Differential Revision: https://reviews.llvm.org/D56239 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@350370 91177308-0d34-0410-b5e6-96231b3b80d8
* [hwasan] make the heap-buffer-overflow.c test more robust and re-enable it. ↵Kostya Serebryany2018-11-171-3/+3
| | | | | | With malloc_align_right the relative offsets of heap chunks are less predictable to simply don't test for them. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@347118 91177308-0d34-0410-b5e6-96231b3b80d8
* [hwasan] use reads instead of writes in a testKostya Serebryany2018-11-161-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@347107 91177308-0d34-0410-b5e6-96231b3b80d8
* [hwasan] disable one test line while investigating a bot failureKostya Serebryany2018-11-161-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@347091 91177308-0d34-0410-b5e6-96231b3b80d8
* [hwasan] optionally right-align heap allocationsKostya Serebryany2018-11-161-6/+30
| | | | | | | | | | | | | | | | | Summary: ... so that we can find intra-granule buffer overflows. The default is still to always align left. It remains to be seen wether we can enable this mode at scale. Reviewers: eugenis Reviewed By: eugenis Subscribers: jfb, dvyukov, kubamracek, delcypher, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D53789 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@347082 91177308-0d34-0410-b5e6-96231b3b80d8
* [hwasan] relax a testKostya Serebryany2018-10-111-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@344289 91177308-0d34-0410-b5e6-96231b3b80d8
* [hwasan] when reporting a bug, print some very basic information about the ↵Kostya Serebryany2018-10-101-0/+9
| | | | | | heap chunk (in addition to the more detailed info that we may fail to show) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@344193 91177308-0d34-0410-b5e6-96231b3b80d8
* [hwasan] tests for a buffer overflow with a large allocationKostya Serebryany2018-09-121-1/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@342011 91177308-0d34-0410-b5e6-96231b3b80d8
* [hwasan] more heap-buffer-overflow testsKostya Serebryany2018-08-311-5/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@341162 91177308-0d34-0410-b5e6-96231b3b80d8
* [hwasan] properly report heap-buffer-overflowKostya Serebryany2018-08-311-0/+16
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@341159 91177308-0d34-0410-b5e6-96231b3b80d8