Kostya Serebryany
7c5ae7cbc6
[sanitizer] enable random shuffling the memory chunks inside the allocator, under a flag. Set this flag for the scudo allocator, add a test.
...
llvm-svn: 279793
2016-08-26 00:06:03 +00:00
Kostya Serebryany
15647b17f3
[sanitizer] change SizeClassAllocator64 to accept just one template parameter instead of 5. First, this will make the mangled names shorter. Second, this will make adding more parameters simpler.
...
llvm-svn: 279771
2016-08-25 20:23:08 +00:00
Kostya Serebryany
bfd69e0580
[sanitizer] allocator: introduce kUseSeparateSizeClassForBatch (false by default). When true, it will cause all TransferBatches to be allocated on a separate dedicated size class, which improves security and may potentially simplify memory reclamation. However in the current state this may cause up to 3% extra memory usage. Subsequent changes should bring this overhead down
...
llvm-svn: 276377
2016-07-22 01:13:13 +00:00
Kostya Serebryany
9835a81529
[sanitizers] split sanitizer_allocator.h into a number of smaller .h files; NFC
...
llvm-svn: 276195
2016-07-20 22:06:41 +00:00
Kostya Serebryany
3884f1a5bd
[sanitizer] add a function MmapNoAccess that mmaps a protected region *somewhere*; use MmapNoAccess in the Allocator when SpaceBeg is not a constant. In this mode the allocator will be a bit more hardened
...
llvm-svn: 267256
2016-04-23 00:05:24 +00:00
Renato Golin
aa673486c4
Revert "[sanitizer] Allow the sanitizer allocator to use a non-fixed address range. An allocator with a non-fixed address range will be attack-resistan. NFC for the sanitizers at this point."
...
This reverts commit r267094, because it broke a lot of MSAN tests in AArch64.
Being NFC and all, this needs some deeper investigation before it goes in again.
llvm-svn: 267136
2016-04-22 11:18:14 +00:00
Kostya Serebryany
d55d0875d2
[sanitizer] Allow the sanitizer allocator to use a non-fixed address range. An allocator with a non-fixed address range will be attack-resistan. NFC for the sanitizers at this point.
...
llvm-svn: 267094
2016-04-22 01:08:54 +00:00
Kostya Serebryany
e63db09bea
[sanitizer] update the sanitizer_allocator_testlib
...
llvm-svn: 266934
2016-04-20 23:28:06 +00:00
Nick Lewycky
af2064f7ab
Add throw() specifiers to more redeclarations of operator delete and operator delete[].
...
llvm-svn: 201016
2014-02-08 01:42:08 +00:00
Dmitry Vyukov
9ab63f68fc
asan: fix standalone malloc implementation
...
llvm-svn: 172529
2013-01-15 12:57:02 +00:00
Dmitry Vyukov
1f48c1a9a1
asan: fix lint warnings
...
llvm-svn: 172520
2013-01-15 08:51:10 +00:00
Dmitry Vyukov
74764617d7
asan: fix bugs in the testlib
...
llvm-svn: 172519
2013-01-15 08:33:41 +00:00
Dmitry Vyukov
1e4b54d196
asan: rename the file (it's not 64-bit specific anymore)
...
llvm-svn: 172518
2013-01-15 08:04:27 +00:00