xtensa: fix KASAN report for show_stack
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 17 Mar 2023 06:00:21 +0000 (23:00 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Fri, 17 Mar 2023 23:44:28 +0000 (16:44 -0700)
commit1d3b7a788ca7435156809a6bd5b20c95b2370d45
tree0fb151d66ca72f978a4fe5733da92db3659ac8a7
parenteeac8ede17557680855031c6f305ece2378af326
xtensa: fix KASAN report for show_stack

show_stack dumps raw stack contents which may trigger an unnecessary
KASAN report. Fix it by copying stack contents to a temporary buffer
with __memcpy and then printing that buffer instead of passing stack
pointer directly to the print_hex_dump.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/traps.c