[PATCH] D62872: [GWP-ASan] Core Guarded Pool Allocator [4].

Mitch Phillips via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 4 12:46:50 PDT 2019


hctim created this revision.
hctim added reviewers: vlad.tsyrklevich, eugenis.
Herald added subscribers: llvm-commits, Sanitizers, jfb, cryptoad, mgorny, kubamracek.
Herald added a reviewer: jfb.
Herald added projects: Sanitizers, LLVM.

See D60593 <https://reviews.llvm.org/D60593> for further information.

This patch introduces the core of GWP-ASan, being the guarded pool allocator. This class contains the logic for creating and maintaining allocations in the guarded pool. Its public interface is to be utilised by supporting allocators in order to provide sampled guarded allocation behaviour.

This patch also contains basic functionality tests of the allocator as unittests. The error-catching behaviour will be tested in upcoming patches that use Scudo as an implementing allocator.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D62872

Files:
  compiler-rt/lib/gwp_asan/CMakeLists.txt
  compiler-rt/lib/gwp_asan/definitions.h
  compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp
  compiler-rt/lib/gwp_asan/guarded_pool_allocator.h
  compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp
  compiler-rt/lib/gwp_asan/tests/CMakeLists.txt
  compiler-rt/lib/gwp_asan/tests/alignment.cpp
  compiler-rt/lib/gwp_asan/tests/basic.cpp
  compiler-rt/lib/gwp_asan/tests/harness.h
  compiler-rt/lib/gwp_asan/tests/slot_reuse.cpp
  compiler-rt/lib/gwp_asan/tests/thread_contention.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62872.203000.patch
Type: text/x-patch
Size: 43378 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190604/e5159340/attachment.bin>


More information about the llvm-commits mailing list