[all-commits] [llvm/llvm-project] 8f1ea2: [TSan][Darwin] Fix CheckAndProtect() for MappingAp...

Julian Lettner via All-commits all-commits at lists.llvm.org
Wed Dec 15 18:04:13 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f1ea2e85ca64dd706824fb7f5ea15c678a15dde
      https://github.com/llvm/llvm-project/commit/8f1ea2e85ca64dd706824fb7f5ea15c678a15dde
  Author: Julian Lettner <julian.lettner at apple.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp

  Log Message:
  -----------
  [TSan][Darwin] Fix CheckAndProtect() for MappingAppleAarch64

In the new TSan runtime refactoring this line was changed:
```
ProtectRange(MetaShadowEnd(), TraceMemBeg());
-->
ProtectRange(MetaShadowEnd(), HeapMemBeg());
```

But for `MappingAppleAarch64` the app heap comes before the shadow,
resulting in:
```
CHECK failed: tsan_platform_posix.cpp:83 "((beg)) <= ((end))" (0xe00000000, 0x200000000)
```

rdar://86521924

Differential Revision: https://reviews.llvm.org/D115834




More information about the All-commits mailing list