Commit 4ce69fcf authored by Heiko Carstens's avatar Heiko Carstens

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: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 2c6b9676
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment