Skip to content

Conversation

@thurstond
Copy link
Contributor

@thurstond thurstond commented Apr 29, 2025

GPU libraries may map a significant chunk of host memory that overlaps with the expected shadow mappings

@thurstond thurstond requested review from fmayer and vitalybuka April 29, 2025 16:12
@thurstond thurstond changed the title [msan][NFCI] Add note that GPU libraries may cause shadow mapping inc… [msan][NFCI] Add note that GPU libraries may cause shadow mapping incompatibility Apr 29, 2025
@llvmbot
Copy link
Member

llvmbot commented Apr 29, 2025

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Thurston Dang (thurstond)

Changes

…ompatibility


Full diff: https://github.com/llvm/llvm-project/pull/137834.diff

1 Files Affected:

  • (modified) compiler-rt/lib/msan/msan.cpp (+3)
diff --git a/compiler-rt/lib/msan/msan.cpp b/compiler-rt/lib/msan/msan.cpp
index a3c0c2e485af3..0361630b54f97 100644
--- a/compiler-rt/lib/msan/msan.cpp
+++ b/compiler-rt/lib/msan/msan.cpp
@@ -483,6 +483,9 @@ void __msan_init() {
     Printf("FATAL: Disabling ASLR is known to cause this error.\n");
     Printf("FATAL: If running under GDB, try "
            "'set disable-randomization off'.\n");
+    Printf(
+        "FATAL: This error may also occur for programs that use GPU "
+        "libraries.\n");
     DumpProcessMap();
     Die();
   }

@thurstond thurstond closed this May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants