[all-commits] [llvm/llvm-project] e52a38: [ASan] Skip any instruction inserted by another in...

Enna1 via All-commits all-commits at lists.llvm.org
Mon Jun 6 20:17:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e52a38c8f1c47c08cd634b5962a05132db753b55
      https://github.com/llvm/llvm-project/commit/e52a38c8f1c47c08cd634b5962a05132db753b55
  Author: Enna1 <xumingjie.enna1 at bytedance.com>
  Date:   2022-06-07 (Tue, 07 Jun 2022)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
    M llvm/test/Instrumentation/AddressSanitizer/ubsan.ll

  Log Message:
  -----------
  [ASan] Skip any instruction inserted by another instrumentation.

Currently, we only check !nosanitize metadata for instruction passed to function `getInterestingMemoryOperands()` or instruction which is a cannot return callable instruction.
This patch add this check to any instruction.

E.g. ASan shouldn't instrument the instruction inserted by UBSan/pointer-overflow.

Reviewed By: vitalybuka

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




More information about the All-commits mailing list