linux/kernel/kcsan
Marco Elver 6a0ef7326e kcsan: Instrument memcpy/memset/memmove with newer Clang
commit 7c201739be 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>
2023-01-04 11:29:02 +01:00
..
.kunitconfig kcsan: test: Add a .kunitconfig to run KCSAN tests 2022-07-22 09:22:59 -06:00
core.c kcsan: Instrument memcpy/memset/memmove with newer Clang 2023-01-04 11:29:02 +01:00
debugfs.c
encoding.h
kcsan_test.c linux-kselftest-kunit-5.19-rc1 2022-05-25 11:32:53 -07:00
kcsan.h
Makefile
permissive.h
report.c
selftest.c treewide: use get_random_bytes() when possible 2022-10-11 17:42:58 -06:00