[all-commits] [llvm/llvm-project] 9f8aeb: scudo: Split setRandomTag in two. NFCI.

pcc via All-commits all-commits at lists.llvm.org
Wed Dec 9 11:49:19 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f8aeb0602935f7bb49fb093fedaad5ec4e87497
      https://github.com/llvm/llvm-project/commit/9f8aeb0602935f7bb49fb093fedaad5ec4e87497
  Author: Peter Collingbourne <peter at pcc.me.uk>
  Date:   2020-12-09 (Wed, 09 Dec 2020)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/memtag.h

  Log Message:
  -----------
  scudo: Split setRandomTag in two. NFCI.

Separate the IRG part from the STZG part since we will need to use
the latter on its own for some upcoming changes.

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


  Commit: e5a28e1261a0c42821cb3bd4dc40092c458fadfb
      https://github.com/llvm/llvm-project/commit/e5a28e1261a0c42821cb3bd4dc40092c458fadfb
  Author: Peter Collingbourne <peter at pcc.me.uk>
  Date:   2020-12-09 (Wed, 09 Dec 2020)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/combined.h

  Log Message:
  -----------
  scudo: Fix quarantine allocation when MTE enabled.

Quarantines have always been broken when MTE is enabled because the
quarantine batch allocator fails to reset tags that may have been
left behind by a user allocation.

This was only noticed when running the Scudo unit tests with Scudo
as the system allocator because quarantines are turned off by
default on Android and the test binary turns them on by defining
__scudo_default_options, which affects the system allocator as well.

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


Compare: https://github.com/llvm/llvm-project/compare/77fd12a66e4c...e5a28e1261a0


More information about the All-commits mailing list