[compiler-rt] [compiler-rt][asan] Add AMDGPU ASan support via HSA API interceptors. (PR #192240)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 7 08:01:43 PDT 2026


================
@@ -249,11 +249,60 @@ void ReportDeadlySignal(const SignalContext &sig) {
 }
 
 void ReportDoubleFree(uptr addr, BufferedStackTrace *free_stack) {
+  // GPU-only vmem reservations (VmemGpuReserveTracker) are not backed by
----------------
b-sumner wrote:

> General question, why can't we track GPU VMem? I thought this Asan approach implicitly required unified memory so we could handle it the same way.

I'm not sure I understand the question.  We generally want to add redzones to objects to enable detection.  But that gets very tricky with the full generality of this API.  Note that mmap allocations are not given redzones either.

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


More information about the llvm-commits mailing list