summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/mm
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2017-12-04 21:20:33 -0800
committerMax Filippov <jcmvbkbc@gmail.com>2017-12-16 22:37:13 -0800
commite0baa01438d3fa3979f94f98be19ca3df88e0b7c (patch)
treed9dd381b426ebb1f3a76465099cb5dd2aaca0d29 /arch/xtensa/mm
parentc633544a6154146a210cf158157a1ae7c55473b6 (diff)
downloadlinux-e0baa01438d3fa3979f94f98be19ca3df88e0b7c.tar.bz2
xtensa: use __memset in __xtensa_clear_user
memset on xtensa is capable of accessing user memory, but KASAN checks if memset function is actually used for that and reports it as an error: ================================================================== BUG: KASAN: user-memory-access in padzero+0x4d/0x58 Write of size 519 at addr 0049ddf9 by task init/1 Call Trace: [<b0189978>] kasan_report+0x160/0x238 [<b0188818>] check_memory_region+0xf8/0x100 [<b018891c>] memset+0x20/0x34 [<b0238b71>] padzero+0x4d/0x58 ================================================================== Use __memset in __xtensa_clear_user to avoid that. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/mm')
0 files changed, 0 insertions, 0 deletions