kernel-hacking-2024-linux-s.../kernel/kcsan
Marco Elver 7c201739be 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>
2022-10-18 15:07:33 -07: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 2022-10-18 15:07:33 -07:00
debugfs.c
encoding.h
kcsan.h kcsan: Add ability to pass instruction pointer of access to reporting 2021-09-13 16:41:19 -07:00
kcsan_test.c linux-kselftest-kunit-5.19-rc1 2022-05-25 11:32:53 -07:00
Makefile KCSAN updates for v5.17 2022-01-11 09:51:26 -08:00
permissive.h
report.c kcsan: Show location access was reordered to 2021-12-09 16:42:27 -08:00
selftest.c treewide: use get_random_bytes() when possible 2022-10-11 17:42:58 -06:00