diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2024-02-03 13:45:20 +0300 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-02-16 16:30:17 +0300 |
commit | 4ce69fcf17d067112f754414aa563e0cd74cc49d (patch) | |
tree | ce655d5239924d33db75b38bf0f1068712818294 /arch | |
parent | 2c6b96762fbd3fd597279950026c6f23ef14acf5 (diff) | |
download | linux-4ce69fcf17d067112f754414aa563e0cd74cc49d.tar.xz |
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>
Diffstat (limited to 'arch')
-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" |