[compiler-rt] [sanitizer-common][Darwin] gracefully handle mach_vm_region_recurse error (PR #194436)

Andrew Haberlandt via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 11:47:16 PDT 2026


ndrewh wrote:

I've made `mach_vm_region_recurse` a required syscall on Darwin, since there are many supported configurations where the naive fallback (a fixed mapping at `GAP_SEARCH_START_ADDRESS`) does not work. 

The real problem here is that the OS sandbox denies syscalls required by ASAN in some extension types. This fix is likely incomplete -- there are many syscalls required for ASAN to operate correctly on Darwin, and the behavior of both the ASAN runtime and sandbox can change depending on the platform, OS version, and extension type.

I'd suggest filing feedback with as many details as possible here: https://developer.apple.com/feedback-assistant/

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


More information about the llvm-commits mailing list