[compiler-rt] [llvm] [compiler-rt][msan] Add MSan support for RISC-V 64-bit Linux (PR #206674)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 30 09:55:00 PDT 2026


================
@@ -520,6 +520,14 @@ static const MemoryMapParams Linux_Hexagon_MemoryMapParams = {
 // FIXME: Remove -msan-origin-base -msan-and-mask added by PR #109284 to tests
 // after picking good constants
 
+// riscv64 Linux — SV39 (256GB)
+static const MemoryMapParams Linux_RISCV64_MemoryMapParams = {
+    0x3C00000000, // AndMask (fold bits 34-37)
----------------
thurstond wrote:

Aliasing the shadow memory regions (and origin memory regions) can lead to strange false positives, false negatives, and incorrect origin tracking.

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


More information about the llvm-commits mailing list