[scudo] Add Scudo support for Trusty OS
authorDaniel Michael <danieljm@google.com>
Mon, 7 Jun 2021 16:10:46 +0000 (09:10 -0700)
committerKostya Kortchinsky <kostyak@google.com>
Tue, 8 Jun 2021 21:02:10 +0000 (14:02 -0700)
commit2551053e8d8df464d5b60e7c9b0add8f85cc1e10
tree6e972f3ca8b22cbdb57a7739ea4c967a099aef71
parent1a216fb15a188f9ac7de6d79267b3cfb2946f792
[scudo] Add Scudo support for Trusty OS

trusty.cpp and trusty.h define Trusty implementations of map and other
platform-specific functions. In addition to adding Trusty configurations
in allocator_config.h and size_class_map.h, MapSizeIncrement and
PrimaryEnableRandomOffset are added as configurable options in
allocator_config.h.
Background on Trusty: https://source.android.com/security/trusty

Differential Revision: https://reviews.llvm.org/D103578
compiler-rt/lib/scudo/standalone/allocator_config.h
compiler-rt/lib/scudo/standalone/common.h
compiler-rt/lib/scudo/standalone/platform.h
compiler-rt/lib/scudo/standalone/primary32.h
compiler-rt/lib/scudo/standalone/primary64.h
compiler-rt/lib/scudo/standalone/size_class_map.h
compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
compiler-rt/lib/scudo/standalone/tests/primary_test.cpp
compiler-rt/lib/scudo/standalone/trusty.cpp [new file with mode: 0644]
compiler-rt/lib/scudo/standalone/trusty.h [new file with mode: 0644]