OSDN Git Service

[GWP-ASan] Add names to anonymous mappings.
authorMitch Phillips <31459023+hctim@users.noreply.github.com>
Fri, 24 Jan 2020 23:01:47 +0000 (15:01 -0800)
committerMitch Phillips <31459023+hctim@users.noreply.github.com>
Fri, 24 Jan 2020 23:02:02 +0000 (15:02 -0800)
commite1440f594c1409867c4c037b6cda9cdeccdda8fb
tree9e2612e1c1625d3f4f624e4f4e509d22b73cc685
parentdaee63f97412441e99912c91e0655f3b12b9bc35
[GWP-ASan] Add names to anonymous mappings.

Summary:
Adds names to anonymous GWP-ASan mappings. This helps Android with debugging
via. /proc/maps, as GWP-ASan-allocated mappings are now easily identifyable.

Reviewers: eugenis, cferris

Reviewed By: eugenis

Subscribers: merge_guards_bot, #sanitizers, llvm-commits, cryptoad, pcc

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D73373
compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp
compiler-rt/lib/gwp_asan/guarded_pool_allocator.h
compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp