[PATCH] D51064: [tsan] Adjust setjmp/longjmp handling on Darwin for macOS Mojave

Kuba (Brecka) Mracek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 21 14:07:46 PDT 2018


kubamracek created this revision.
kubamracek added reviewers: dvyukov, george.karpenkov, delcypher.
kubamracek added a project: Sanitizers.
Herald added a reviewer: javed.absar.
Herald added a subscriber: Sanitizers.

On macOS Mojave, the OS started using the XOR-by-a-secret-key scheme (same as glibc is alread doing) for storing the SP value in setjmp environment. We need to adjust for that to keep supporting setjmp/longjmp on latest Darwin. The patch is basically doing the same what we're already doing for glibc.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D51064

Files:
  lib/sanitizer_common/sanitizer_mac.cc
  lib/sanitizer_common/sanitizer_mac.h
  lib/tsan/rtl/tsan_interceptors.cc
  lib/tsan/rtl/tsan_platform_mac.cc
  lib/tsan/rtl/tsan_rtl_aarch64.S
  lib/tsan/rtl/tsan_rtl_amd64.S

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51064.161813.patch
Type: text/x-patch
Size: 4387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180821/08edb756/attachment.bin>


More information about the llvm-commits mailing list