[all-commits] [llvm/llvm-project] 7ab44b: [msan] Allow KMSAN to use -fsanitize-memory-param-...

Alexander Potapenko via All-commits all-commits at lists.llvm.org
Fri Jun 17 01:54:35 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ab44b5c2155245d115ba8642fcaabe65b54e44b
      https://github.com/llvm/llvm-project/commit/7ab44b5c2155245d115ba8642fcaabe65b54e44b
  Author: Alexander Potapenko <glider at google.com>
  Date:   2022-06-17 (Fri, 17 Jun 2022)

  Changed paths:
    M clang/lib/Driver/SanitizerArgs.cpp
    A clang/test/CodeGen/kmsan-param-retval.c
    M clang/test/Driver/fsanitize-memory-param-retval.c

  Log Message:
  -----------
  [msan] Allow KMSAN to use -fsanitize-memory-param-retval

Let -fsanitize-memory-param-retval be used together with
-fsanitize=kernel-memory, so that it can be applied when building the
Linux kernel.

Also add clang/test/CodeGen/kmsan-param-retval.c to ensure that
-fsanitize-memory-param-retval eliminates shadow accesses for parameters
marked as undef.

Reviewed By: eugenis, vitalybuka

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




More information about the All-commits mailing list