OSDN Git Service

scudo: Fix quarantine allocation when MTE enabled.
authorPeter Collingbourne <peter@pcc.me.uk>
Sat, 5 Dec 2020 08:22:33 +0000 (00:22 -0800)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 9 Dec 2020 19:48:41 +0000 (11:48 -0800)
commite5a28e1261a0c42821cb3bd4dc40092c458fadfb
treefb82ea393977eaa61f29f9230692e4d35b76f8a4
parent9f8aeb0602935f7bb49fb093fedaad5ec4e87497
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
compiler-rt/lib/scudo/standalone/combined.h