summaryrefslogtreecommitdiff
path: root/kernel/sys.c
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2022-09-12 11:45:40 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-04 11:26:32 +0100
commitd1d7e92aaca4303d86c964431654101ed9b0a93f (patch)
tree2ae4d2cf8318678d485af98896782443bcfd3f8f /kernel/sys.c
parent67eb848161c2799f2007968ea3bc87adb15c9567 (diff)
kcsan: Instrument memcpy/memset/memmove with newer Clang
commit 7c201739beef1a586d806463f1465429cdce34c5 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/sys.c')
0 files changed, 0 insertions, 0 deletions