diff options
author | Marco Elver <elver@google.com> | 2022-09-12 11:45:40 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2022-10-19 00:07:33 +0200 |
commit | 7c201739beef1a586d806463f1465429cdce34c5 (patch) | |
tree | f9fd2248f429a09e357a848f5f4628b3abd547cb /fs | |
parent | Linux 6.1-rc1 (diff) | |
download | linux-7c201739beef1a586d806463f1465429cdce34c5.tar.xz linux-7c201739beef1a586d806463f1465429cdce34c5.zip |
kcsan: Instrument memcpy/memset/memmove with newer Clang
With Clang version 16+, -fsanitize=thread will turn
memcpy/memset/memmove calls in instrumented functions into
__tsan_memcpy/__tsan_memset/__tsan_memmove calls respectively.
Add these functions to the core KCSAN runtime, so that we (a) catch data
races with mem* functions, and (b) won't run into linker errors with
such newer compilers.
Cc: stable@vger.kernel.org # v5.10+
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions