[compiler-rt] [asan] Implement address sanitizer on AIX: address descriptions (8/n) (PR #138891)
Hubert Tong via llvm-commits
llvm-commits at lists.llvm.org
Wed May 7 12:23:50 PDT 2025
================
@@ -444,6 +444,15 @@ AddressDescription::AddressDescription(uptr addr, uptr access_size,
data.kind = kAddressKindShadow;
return;
}
+
+ // Check global first. On AIX, some global data defined in shared libraries
+ // are put to the STACK region for unknown reasons. Check global first can
+ // workaround this issue.
+ if (GetGlobalAddressInformation(addr, access_size, &data.global)) {
+ data.kind = kAddressKindGlobal;
+ return;
+ }
+
----------------
hubert-reinterpretcast wrote:
@jakeegan, the comment makes it sound like the problem being solved is not well-understood.
For further analysis, can we verify what fails when this change is not present?
I think we may want to leave a TODO comment here in case there is a different solution.
https://github.com/llvm/llvm-project/pull/138891
More information about the llvm-commits
mailing list