diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2024-02-03 11:45:20 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-02-16 14:30:17 +0100 |
commit | 4ce69fcf17d067112f754414aa563e0cd74cc49d (patch) | |
tree | ce655d5239924d33db75b38bf0f1068712818294 | |
parent | s390/fpu: remove TIF_FPU (diff) | |
download | linux-4ce69fcf17d067112f754414aa563e0cd74cc49d.tar.xz linux-4ce69fcf17d067112f754414aa563e0cd74cc49d.zip |
s390/checksum: call instrument_read() instead of kasan_check_read()
Call instrument_read() from csum_partial() instead of kasan_check_read().
instrument_read() covers all memory access instrumentation methods.
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
-rw-r--r-- | arch/s390/include/asm/checksum.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/include/asm/checksum.h b/arch/s390/include/asm/checksum.h index 69837eec2ff5..fcef9ae433a7 100644 --- a/arch/s390/include/asm/checksum.h +++ b/arch/s390/include/asm/checksum.h @@ -12,7 +12,7 @@ #ifndef _S390_CHECKSUM_H #define _S390_CHECKSUM_H -#include <linux/kasan-checks.h> +#include <linux/instrumented.h> #include <linux/in6.h> /* @@ -34,7 +34,7 @@ static inline __wsum csum_partial(const void *buff, int len, __wsum sum) .odd = (unsigned long) len, }; - kasan_check_read(buff, len); + instrument_read(buff, len); asm volatile( "0: cksm %[sum],%[rp]\n" " jo 0b\n" |