[PATCH] D28577: Repoison the entire ASan chunk if it is not in active use.

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 11 13:27:22 PST 2017


alekseyshl created this revision.
alekseyshl added a reviewer: eugenis.
alekseyshl added a subscriber: llvm-commits.
Herald added a subscriber: kubabrecka.

Repoisoning just the minimal redzones might leave an unpoisoned
gap of the size of the actual redzone minus minimal redzone size.
After ASan activation the actual redzone might be bigger than the minimal
size and ASan allocator assumes that the chunk returned by the common
allocator is either entirely poisoned or entirely not poisoned (it's too
expensive to check the entire chunk or always poison one).


https://reviews.llvm.org/D28577

Files:
  lib/asan/asan_allocator.cc
  test/asan/TestCases/Posix/start-deactivated.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28577.84017.patch
Type: text/x-patch
Size: 4495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170111/ac745310/attachment.bin>


More information about the llvm-commits mailing list