aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorMitch Phillips <31459023+hctim@users.noreply.github.com>2021-05-10 12:19:19 -0700
committerMitch Phillips <31459023+hctim@users.noreply.github.com>2021-05-10 12:56:18 -0700
commite78b64df98878d1da56275e0c272ed58364da3ad (patch)
tree21c49a5e3b784f41e3dfd5ecc100c75f1c9d55aa /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent96a23911f6d72cc1ef0788b34caa553f1ce99c5d (diff)
downloadllvm-e78b64df98878d1da56275e0c272ed58364da3ad.zip
llvm-e78b64df98878d1da56275e0c272ed58364da3ad.tar.gz
llvm-e78b64df98878d1da56275e0c272ed58364da3ad.tar.bz2
[Scudo] Use GWP-ASan's aligned allocations and fixup postalloc hooks.
This patch does a few cleanup things: 1. The non-standalone scudo has a problem where GWP-ASan allocations may not meet alignment requirements where Scudo was requested to have alignment >= 16. Use the new GWP-ASan API to fix this. 2. The standalone variant loses some debugging information inside of GWP-ASan because we ask GWP-ASan to allocate an aligned size in the frontend. This means reports end up with 'UaF on a 16-byte allocation' for a 1-byte allocation with 16-byte alignment. Also use the new API to fix this. 3. Add post-alloc hooks for GWP-ASan intercepted allocations, and add stats tracking for GWP-ASan allocations. 4. Add a small test that checks the alignment of the frontend allocator, so that it can be used under GWP-ASan torture mode. 5. Add GWP-ASan torture mode as a testing configuration to catch these regressions. Depends on D94830, D95889. Reviewed By: cryptoad Differential Revision: https://reviews.llvm.org/D95884
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions