[PATCH] D51394: Add a thread-local ring buffer of heap allocations

Kostya Serebryany via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 28 17:23:35 PDT 2018


kcc created this revision.
kcc added a reviewer: eugenis.
Herald added subscribers: Sanitizers, delcypher, kubamracek.

We need this in order to properly report heap-use-after-free,
since we don't have a quarantine.

This is a first part of the code, more like a proof of concept.
But I'd like to commit at as is and proceed with refactoring,
adding a ThreadRegistry, and extending the functionality.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D51394

Files:
  lib/hwasan/hwasan_allocator.cc
  lib/hwasan/hwasan_allocator.h
  lib/hwasan/hwasan_flags.inc
  lib/hwasan/hwasan_report.cc
  lib/hwasan/hwasan_thread.cc
  lib/hwasan/hwasan_thread.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51394.162995.patch
Type: text/x-patch
Size: 6290 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180829/c53d9adf/attachment.bin>


More information about the llvm-commits mailing list