[all-commits] [llvm/llvm-project] 844c73: [HWASAN] Mark built-ins as not built-ins to preven...
Kirill Stoimenov via All-commits
all-commits at lists.llvm.org
Fri Oct 13 11:43:42 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 844c731f2dda3e01984f79b9e68d5d7566c9824c
https://github.com/llvm/llvm-project/commit/844c731f2dda3e01984f79b9e68d5d7566c9824c
Author: Kirill Stoimenov <87100199+kstoimenov at users.noreply.github.com>
Date: 2023-10-13 (Fri, 13 Oct 2023)
Changed paths:
M compiler-rt/test/hwasan/TestCases/memcmp.cpp
M llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
A llvm/test/Instrumentation/HWAddressSanitizer/str-nobuiltin.ll
Log Message:
-----------
[HWASAN] Mark built-ins as not built-ins to prevent optimizations (#68936)
The other 3 sanitizers (ASAN, TSAN and MSAN) all use
maybeMarkSanitizerLibraryCallNoBuiltin to make disable optimizations
which inline functions like memcmp for example. The lack of this
optimization was allowing ExpandMemCmpPass to convert a memcmp call to
inlined assembly and cause a false negative in HWASAN.
More information about the All-commits
mailing list