summaryrefslogtreecommitdiffstats
path: root/arch/s390/boot
diff options
context:
space:
mode:
authorVasily Gorbik2018-12-13 15:53:48 +0100
committerMartin Schwidefsky2019-01-18 09:34:18 +0100
commit7e0d92f002460d30bea01fa7157be2f13af370a5 (patch)
treeef62cb72c7d7683f8e0bc4390d13195afc060afc /arch/s390/boot
parents390: remove the ptep_modify_prot_{start,commit} exports (diff)
downloadkernel-qcow2-linux-7e0d92f002460d30bea01fa7157be2f13af370a5.tar.gz
kernel-qcow2-linux-7e0d92f002460d30bea01fa7157be2f13af370a5.tar.xz
kernel-qcow2-linux-7e0d92f002460d30bea01fa7157be2f13af370a5.zip
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)