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.
Paths
| Differential D89199
Release pages to OS when setting 0 label ClosedPublic Authored by stephan.yichao.zhao on Oct 10 2020, 6:36 PM.
Details
Summary 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
Diff Detail
Event Timeline
stephan.yichao.zhao added inline comments.
This revision is now accepted and ready to land.Oct 19 2020, 3:21 PM Closed by commit rGcc07fbe37dc8: Release pages to OS when setting 0 label (authored by Jianzhou Zhao <jianzhouzh@google.com>). · Explain WhyOct 20 2020, 9:23 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 299196 compiler-rt/lib/dfsan/dfsan.cpp
compiler-rt/lib/dfsan/dfsan_interceptors.cpp
|
Every call site seems to cast a uptr to dfsan_label *. Let's move the cast into this function and rename the parameter something more descriptive (e.g., shadow_addr).