]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xtensa: fix KASAN report for show_stack
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 17 Mar 2023 06:00:21 +0000 (23:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Apr 2023 10:10:54 +0000 (12:10 +0200)
commit75289cdbe125e62036a72369206ce661e3e4cff2
tree4a6d87b19f1a0888048c94594237107944da23ec
parent3a0e34af6bffee89c5344e00f15844806b9d44b1
xtensa: fix KASAN report for show_stack

commit 1d3b7a788ca7435156809a6bd5b20c95b2370d45 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/kernel/traps.c