[compiler-rt] [scudo] Avoid accessing inaccessible pages in unmap() in secondary (PR #102367)

Christopher Ferris via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 7 14:24:32 PDT 2024


================
@@ -823,7 +823,11 @@ void MapAllocator<Config>::deallocate(const Options &Options, void *Ptr)
     Cache.store(Options, H->CommitBase, H->CommitSize,
                 reinterpret_cast<uptr>(H + 1), H->MemMap);
   } else {
-    unmap(H->MemMap);
+    // Note that the `H->MapMap` is stored on the pages managed by itself. Take
----------------
cferris1000 wrote:

MemMap

https://github.com/llvm/llvm-project/pull/102367


More information about the llvm-commits mailing list