[compiler-rt] [compiler-rt][asan] Add AMDGPU ASan support via HSA API interceptors. (PR #192240)
Amit Kumar Pandey via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 2 02:44:07 PDT 2026
ampandey-1995 wrote:
> Thanks for the updates. My earlier comments look substantially addressed in the latest revision. My remaining concern is the GPU-only VMEM free tracker. It appears to mark a reservation freed before the real `hsa_amd_vmem_address_free()` result is known, so a retry after runtime free failure can be misreported as double free.
This is fixed in commit [a06ecdf](https://github.com/llvm/llvm-project/pull/192240/commits/a06ecdfa2370fa9a727e2f9dbe053640e123066d).
Replace `OnFree` with `CheckFree` and `MarkFree`. Only `MarkFree` will free the reservation after successful call to real `hsa_amd_vmem_address_free()`.
https://github.com/llvm/llvm-project/pull/192240
More information about the llvm-commits
mailing list