[compiler-rt] Add API to temporalily disable usage of ASAN's fake stack (PR #160135)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 17 10:20:26 PDT 2025


vitalybuka wrote:

> The behavior does depend on the flags. Would `__asan_suppress_fake_stack` and `__asan_unsuppress_fake_stack` be less confusing?

I don't have a preference for naming.

I assume @thurstond  is asking not to disable the fake stack in always mode.

But in this case __asan_disable_fake_stack caller needs to know that the call failed?

I the current `__asan_get_current_fake_stack` can be used for that.

Also we need actually not a bool but counters, see __lsan_disable().

This will fix the issue when code on multiple layers will try to suppress the fake stack.




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


More information about the llvm-commits mailing list