-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] hwasan miscompilation #2064
Comments
The only difference i see between clang-17 and clang-18 is the llvm.lifetime.start.p0 and llvm.lifetime.end.p0 markers https://godbolt.org/z/qGhT5ne7P That does affect the schedule of instruction in the final assembly. https://godbolt.org/z/vo7Mj8Kz9 |
The bug is already found. It's about AttrInfer adding assumptions about libc functions that are incorrect for HWAsan |
There is discussion in internal bug b/362408260. This issue tracks backporting the fix to r27. |
Cherry-picked onto LLVM r522817 (NDK 27 uses that) and r530567 (and main branch) |
Description
Given this program
Built like this
NDK 27 generates code that crashes with a HWASan
tag-mismatch
. This is a regression compared to NDK 26c.This is being fixed in upstream LLVM in llvm/llvm-project#106624
Affected versions
r27
Canary version
No response
Host OS
Linux
Host OS version
Debian
Affected ABIs
arm64-v8a
Build system
Other (specify below)
Other build system
No response
minSdkVersion
n/a
Device API level
No response
The text was updated successfully, but these errors were encountered: