diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2018-12-13 09:53:48 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2019-01-18 03:34:18 -0500 |
commit | 7e0d92f002460d30bea01fa7157be2f13af370a5 (patch) | |
tree | ef62cb72c7d7683f8e0bc4390d13195afc060afc /arch/s390/boot | |
parent | 32b77252f47ec00c3c9dc4705f0197dd0f5f87d9 (diff) |
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.c | 1 |
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 @@ | |||
2 | #include <linux/ctype.h> | 2 | #include <linux/ctype.h> |
3 | #include <linux/kernel.h> | 3 | #include <linux/kernel.h> |
4 | #include <linux/errno.h> | 4 | #include <linux/errno.h> |
5 | #undef CONFIG_KASAN | ||
5 | #include "../lib/string.c" | 6 | #include "../lib/string.c" |
6 | 7 | ||
7 | int strncmp(const char *cs, const char *ct, size_t count) | 8 | int strncmp(const char *cs, const char *ct, size_t count) |