[all-commits] [llvm/llvm-project] 0499a7: [TSAN][RISCV] Fix kHiAppMemEnd boundary for riscv6...

Boyao Wang via All-commits all-commits at lists.llvm.org
Thu Apr 16 01:14:06 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0499a7962f32cd849296d28e6f2f92af509f41fb
      https://github.com/llvm/llvm-project/commit/0499a7962f32cd849296d28e6f2f92af509f41fb
  Author: Boyao Wang <wangboyao at bytedance.com>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_platform.h
    M compiler-rt/test/sanitizer_common/TestCases/Linux/pie_no_aslr.cpp

  Log Message:
  -----------
  [TSAN][RISCV] Fix kHiAppMemEnd boundary for riscv64 (#191170)

This resolves TSan execution failures on riscv64 platforms when Address
Space Layout Randomization (ASLR) is disabled. There was an off-by-one
error in `tsan_platform.h` that caused the sanitizer to fail when memory
is mapped at the edge under non-ASLR environments. We fix this by
extending `kHiAppMemEnd` to cover the full allowed memory range:

`MappingRiscv64_39`: `0x3fffffffffull` -> `0x4000000000ull`
     `MappingRiscv64_48`: `0x7fffffffffffull` -> `0x800000000000ull`

We also add riscv64 test support to `pie_no_aslr.cpp`



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list