]> granicus.if.org Git - clang/commit
asan: kernel: make no_sanitize("address") attribute work with -fsanitize=kernel-address
authorVitaly Buka <vitalybuka@google.com>
Mon, 9 Apr 2018 20:10:29 +0000 (20:10 +0000)
committerVitaly Buka <vitalybuka@google.com>
Mon, 9 Apr 2018 20:10:29 +0000 (20:10 +0000)
commitc79a7094b0cadc7820da5a16bee21b28c733e295
treef3d1f1546bae23fa3a228b6b8e2b8c92f361cf55
parent2aadfaccd003f3c91b3185fcf379549ed11cdeaf
asan: kernel: make no_sanitize("address") attribute work with -fsanitize=kernel-address

Summary:
Right now to disable -fsanitize=kernel-address instrumentation, one needs to use no_sanitize("kernel-address"). Make either no_sanitize("address") or no_sanitize("kernel-address")  disable both ASan and KASan instrumentation. Also remove redundant test.

Patch by Andrey Konovalov

Reviewers: eugenis, kcc, glider, dvyukov, vitalybuka

Reviewed By: eugenis, vitalybuka

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@329612 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenFunction.cpp
test/CodeGen/address-safety-attr-flavors.cpp [new file with mode: 0644]
test/CodeGen/address-safety-attr-kasan-hwasan.cpp [deleted file]
test/CodeGen/address-safety-attr-kasan.cpp [deleted file]