summaryrefslogtreecommitdiffstats
path: root/arch/s390/boot
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2018-12-13 15:53:48 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2019-01-18 09:34:18 +0100
commit7e0d92f002460d30bea01fa7157be2f13af370a5 (patch)
treeef62cb72c7d7683f8e0bc4390d13195afc060afc /arch/s390/boot
parent32b77252f47ec00c3c9dc4705f0197dd0f5f87d9 (diff)
downloadlinux-7e0d92f002460d30bea01fa7157be2f13af370a5.tar.bz2
s390/kasan: improve string/memory functions checks
Avoid using arch specific implementations of string/memory functions with KASAN since gcc cannot instrument asm code memory accesses and many bugs could be missed. Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/boot')
-rw-r--r--arch/s390/boot/string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/boot/string.c b/arch/s390/boot/string.c
index 25aca07898ba..b11e8108773a 100644
--- a/arch/s390/boot/string.c
+++ b/arch/s390/boot/string.c
@@ -2,6 +2,7 @@
#include <linux/ctype.h>
#include <linux/kernel.h>
#include <linux/errno.h>
+#undef CONFIG_KASAN
#include "../lib/string.c"
int strncmp(const char *cs, const char *ct, size_t count)