[PATCH] D24485: [asan] Re-poison all redzones on activation

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 12 17:28:20 PDT 2016


eugenis created this revision.
eugenis added a reviewer: kcc.
eugenis added a subscriber: llvm-commits.
eugenis set the repository for this revision to rL LLVM.
Herald added a subscriber: kubabrecka.

When running with start_deactivated=1 in ASAN_OPTIONS, heap redzones
are not poisoned until the first instrumented module is loaded. This
can cause false negatives even on memory allocated after activation,
because redzones are normally poisoned only once when a new allocator
region is mapped.

This change attempts to fix it by iterating over all existing
allocator chunks and poisoning their redzones.


Repository:
  rL LLVM

https://reviews.llvm.org/D24485

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24485.71084.patch
Type: text/x-patch
Size: 4142 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160913/36e4ae07/attachment.bin>


More information about the llvm-commits mailing list