[PATCH] D20084: [sanitizer] Initial implementation of a Hardened Allocator

Kostya Kortchinsky via llvm-commits llvm-commits at lists.llvm.org
Mon May 16 09:54:48 PDT 2016


cryptoad updated this revision to Diff 57362.
cryptoad marked 26 inline comments as done.
cryptoad added a comment.

This update addresses another batch of comments raised during the review.
Among the notable changes:

- after discussion with dvyukov, the memory order for the atomic operation has to changed to relaxed;
- the 'with_offset' field in the header is going away, and the offset field now always stores the distance between the backend allocation and the chunk.


http://reviews.llvm.org/D20084

Files:
  docs/HardenedAllocator.rst
  projects/compiler-rt/cmake/config-ix.cmake
  projects/compiler-rt/lib/CMakeLists.txt
  projects/compiler-rt/lib/hardened_allocator/CMakeLists.txt
  projects/compiler-rt/lib/hardened_allocator/scudo_allocator.cc
  projects/compiler-rt/lib/hardened_allocator/scudo_allocator.h
  projects/compiler-rt/lib/hardened_allocator/scudo_flags.cc
  projects/compiler-rt/lib/hardened_allocator/scudo_flags.h
  projects/compiler-rt/lib/hardened_allocator/scudo_flags.inc
  projects/compiler-rt/lib/hardened_allocator/scudo_malloc_linux.cc
  projects/compiler-rt/lib/hardened_allocator/scudo_new_delete.cc
  projects/compiler-rt/lib/hardened_allocator/scudo_rtl.cc
  projects/compiler-rt/lib/hardened_allocator/scudo_utils.cc
  projects/compiler-rt/lib/hardened_allocator/scudo_utils.h
  projects/compiler-rt/test/CMakeLists.txt
  projects/compiler-rt/test/hardened_allocator/CMakeLists.txt
  projects/compiler-rt/test/hardened_allocator/alignment.cc
  projects/compiler-rt/test/hardened_allocator/double-free.cc
  projects/compiler-rt/test/hardened_allocator/lit.cfg
  projects/compiler-rt/test/hardened_allocator/lit.site.cfg.in
  projects/compiler-rt/test/hardened_allocator/malloc.cc
  projects/compiler-rt/test/hardened_allocator/memalign.cc
  projects/compiler-rt/test/hardened_allocator/mismatch.cc
  projects/compiler-rt/test/hardened_allocator/overflow.cc
  projects/compiler-rt/test/hardened_allocator/quarantine.cc
  projects/compiler-rt/test/hardened_allocator/realloc.cc
  projects/compiler-rt/test/hardened_allocator/sized-delete.cc
  projects/compiler-rt/test/hardened_allocator/sizes.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20084.57362.patch
Type: text/x-patch
Size: 68423 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160516/2ebf8947/attachment-0001.bin>


More information about the llvm-commits mailing list