HomePhabricator

[asan] Be more careful and verbose when allocating dynamic shadow memory

Description

[asan] Be more careful and verbose when allocating dynamic shadow memory

FindAvailableMemoryRange can currently overwrite existing memory (by restricting the VM below addresses that are already used). This patch adds a check to make sure we don't restrict the VM space too much. We are also now more explicit about why the lookup failed and print out verbose values.

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

Details

Committed
kuba.breckaFeb 26 2018, 10:33 AM
Differential Revision
D43318: [asan] Be more careful and verbose when allocating dynamic shadow memory
Parents
rL326105: [MSan] Print current stack on CHECK violation
Branches
Unknown
Tags
Unknown