[all-commits] [llvm/llvm-project] 1aa59f: [msan] Implement -msan-disable-checks.

Alexander Potapenko via All-commits all-commits at lists.llvm.org
Fri Dec 10 01:38:47 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1aa59ff2f789776ebfa2d4b315fd3ea589652b4a
      https://github.com/llvm/llvm-project/commit/1aa59ff2f789776ebfa2d4b315fd3ea589652b4a
  Author: Alexander Potapenko <glider at google.com>
  Date:   2021-12-10 (Fri, 10 Dec 2021)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
    A llvm/test/Instrumentation/MemorySanitizer/msan-disable-checks.ll

  Log Message:
  -----------
  [msan] Implement -msan-disable-checks.

To ease the deployment of KMSAN, we need a way to apply
__attribute__((no_sanitize("kernel-memory"))) to the whole source file.

Passing -msan-disable-checks=1 to the compiler will make it
treat every function in the file as if it was lacking the
sanitize_memory attribute.

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




More information about the All-commits mailing list