[compiler-rt] [ASan][Win][compiler-rt] Fixes stack overflow when ntdll has mem* calls during exception handling (PR #120110)

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 17 06:44:26 PST 2024


https://github.com/zmodem commented:

Thanks for looking into this!

This sounds like an alternative to the patch Mozilla proposed in the bug report at https://github.com/llvm/llvm-project/issues/114793 which I'm pretty sure is the same issue: https://phabricator.services.mozilla.com/D228165

As discussed on that bug, I think the better fix is to not intercept memset or any other crt functions in ntdll at all.

The tricky part is that there are many calls to intercept functions in the runtime, and we'd need to decide *which* instance of those to intercept at each point.

I'll post an update on the bug.

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


More information about the llvm-commits mailing list