diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-17 23:43:15 +0100 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-18 00:34:57 +0100 |
commit | 57358ba9564a0520f870dc14a0f91e7dacc18236 (patch) | |
tree | 616be15e6bbe43bbf7539a359b3485b070f62920 /arch/xtensa/Kconfig | |
parent | xtensa: use __memset in __xtensa_clear_user (diff) | |
download | linux-57358ba9564a0520f870dc14a0f91e7dacc18236.tar.xz linux-57358ba9564a0520f870dc14a0f91e7dacc18236.zip |
xtensa: use generic strncpy_from_user with KASAN
This enables KASAN check of the destination buffer.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/Kconfig')
-rw-r--r-- | arch/xtensa/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig index f9f95d6e8da8..e2afffb71a6b 100644 --- a/arch/xtensa/Kconfig +++ b/arch/xtensa/Kconfig @@ -15,6 +15,7 @@ config XTENSA select GENERIC_IRQ_SHOW select GENERIC_PCI_IOMAP select GENERIC_SCHED_CLOCK + select GENERIC_STRNCPY_FROM_USER if KASAN select HAVE_ARCH_KASAN if MMU select HAVE_CC_STACKPROTECTOR select HAVE_DEBUG_KMEMLEAK |