[all-commits] [llvm/llvm-project] 1d3ef5: [MSAN] Add fiber switching APIs

Justin Cady via All-commits all-commits at lists.llvm.org
Thu Aug 27 19:31:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d3ef5f122fe0b25283b7d72d5664474eabfb61e
      https://github.com/llvm/llvm-project/commit/1d3ef5f122fe0b25283b7d72d5664474eabfb61e
  Author: Justin Cady <desk at justincady.com>
  Date:   2020-08-27 (Thu, 27 Aug 2020)

  Changed paths:
    M compiler-rt/include/sanitizer/msan_interface.h
    M compiler-rt/lib/msan/msan.cpp
    M compiler-rt/lib/msan/msan_interface_internal.h
    M compiler-rt/lib/msan/msan_thread.cpp
    M compiler-rt/lib/msan/msan_thread.h
    A compiler-rt/test/msan/Linux/swapcontext_annotation.cpp
    A compiler-rt/test/msan/Linux/swapcontext_annotation_reset.cpp

  Log Message:
  -----------
  [MSAN] Add fiber switching APIs

Add functions exposed via the MSAN interface to enable MSAN within
binaries that perform manual stack switching (e.g. through using fibers
or coroutines).

This functionality is analogous to the fiber APIs available for ASAN and TSAN.

Fixes google/sanitizers#1232

Reviewed By: vitalybuka

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




More information about the All-commits mailing list