[all-commits] [llvm/llvm-project] 8e167f: [GWP-ASan] Add version header.

Mitch Phillips via All-commits all-commits at lists.llvm.org
Thu Jul 29 14:58:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e167f66b27fe9d2573eb149f736700302675297
      https://github.com/llvm/llvm-project/commit/8e167f66b27fe9d2573eb149f736700302675297
  Author: Mitch Phillips <31459023+hctim at users.noreply.github.com>
  Date:   2021-07-29 (Thu, 29 Jul 2021)

  Changed paths:
    M compiler-rt/lib/gwp_asan/common.h

  Log Message:
  -----------
  [GWP-ASan] Add version header.

Adds magic version header to AllocatorState. This can be used by
out-of-process crash handlers, like Crashpad on Fuchsia, to do offline
reconstruction of GWP-ASan crash metadata.

Crashpad on Fuchsia is intending on dumping the AllocationMetadata pool
and the AllocatorState directly into the minidump. Then, using the
version number, they can unpack the data on serverside using a versioned
unpack tool.

Also add some asserts to make sure the version number gets bumped if the
internal structs get changed.

Reviewed By: eugenis, mcgrathr

Differential Revision: https://reviews.llvm.org/D106690




More information about the All-commits mailing list