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/kernel | |
parent | e0baa01438d3fa3979f94f98be19ca3df88e0b7c (diff) | |
download | linux-57358ba9564a0520f870dc14a0f91e7dacc18236.tar.bz2 |
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/kernel')
-rw-r--r-- | arch/xtensa/kernel/xtensa_ksyms.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/xtensa/kernel/xtensa_ksyms.c b/arch/xtensa/kernel/xtensa_ksyms.c index 3a443f83ae87..04f19de46700 100644 --- a/arch/xtensa/kernel/xtensa_ksyms.c +++ b/arch/xtensa/kernel/xtensa_ksyms.c @@ -44,7 +44,9 @@ EXPORT_SYMBOL(memmove); EXPORT_SYMBOL(__memset); EXPORT_SYMBOL(__memcpy); EXPORT_SYMBOL(__memmove); +#ifndef CONFIG_GENERIC_STRNCPY_FROM_USER EXPORT_SYMBOL(__strncpy_user); +#endif EXPORT_SYMBOL(clear_page); EXPORT_SYMBOL(copy_page); |