[PATCH] D77283: scudo: Add support for diagnosing memory errors when memory tagging is enabled.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 1 20:42:25 PDT 2020


pcc created this revision.
pcc added reviewers: cryptoad, eugenis, hctim.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.

Introduce a function __scudo_get_error_info() that may be called to interpret
a crash resulting from a memory error, potentially in another process,
given information extracted from the crashing process. The crash may be
interpreted as a use-after-free, buffer overflow or buffer underflow.

Also introduce a feature to optionally record a stack trace for each
allocation and deallocation. If this feature is enabled, a stack trace for
the allocation and (if applicable) the deallocation will also be available
via __scudo_get_error_info().


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77283

Files:
  compiler-rt/lib/scudo/standalone/combined.h
  compiler-rt/lib/scudo/standalone/common.h
  compiler-rt/lib/scudo/standalone/fuchsia.cpp
  compiler-rt/lib/scudo/standalone/include/scudo/interface.h
  compiler-rt/lib/scudo/standalone/linux.cpp
  compiler-rt/lib/scudo/standalone/memtag.h
  compiler-rt/lib/scudo/standalone/primary32.h
  compiler-rt/lib/scudo/standalone/primary64.h
  compiler-rt/lib/scudo/standalone/stack_depot.h
  compiler-rt/lib/scudo/standalone/wrappers_c.inc
  compiler-rt/lib/scudo/standalone/wrappers_c_bionic.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77283.254404.patch
Type: text/x-patch
Size: 26199 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200402/38f0de47/attachment.bin>


More information about the llvm-commits mailing list