diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-17 14:43:15 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2017-12-17 15:34:57 -0800 |
commit | 57358ba9564a0520f870dc14a0f91e7dacc18236 (patch) | |
tree | 616be15e6bbe43bbf7539a359b3485b070f62920 /arch/xtensa/Kconfig | |
parent | e0baa01438d3fa3979f94f98be19ca3df88e0b7c (diff) | |
download | linux-stable-57358ba9564a0520f870dc14a0f91e7dacc18236.tar.gz linux-stable-57358ba9564a0520f870dc14a0f91e7dacc18236.tar.bz2 linux-stable-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 |