Release pages to OS when setting 0 label
authorJianzhou Zhao <jianzhouzh@google.com>
Sun, 11 Oct 2020 01:26:47 +0000 (01:26 +0000)
committerJianzhou Zhao <jianzhouzh@google.com>
Tue, 20 Oct 2020 16:22:11 +0000 (16:22 +0000)
commitcc07fbe37dc82eeb3e6261a4c54f44b22cbb531d
tree9269f0808e7ecde1b60cd7b4654e1ae08c8f76b9
parent2e580102082293f9f80160bc86413e401c566d8f
Release pages to OS when setting 0 label

This is a follow up patch of https://reviews.llvm.org/D88755.

When set 0 label for an address range, we can release pages within the
corresponding shadow address range to OS, and set only addresses outside
the pages to be 0.

Reviewed-by: morehouse, eugenis
Differential Revision: https://reviews.llvm.org/D89199
compiler-rt/lib/dfsan/dfsan.cpp
compiler-rt/lib/dfsan/dfsan_interceptors.cpp