]> git.ipfire.org Git - people/arne_f/kernel.git/commit
arm64: backtrace: Don't bother trying to unwind the userspace stack
authorWill Deacon <will.deacon@arm.com>
Mon, 8 Apr 2019 16:56:34 +0000 (17:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2019 06:39:51 +0000 (08:39 +0200)
commit36078cae3790ac638013a43a93542a729082272c
tree61fa9665baacf5b75859f05d39760e17d1f09dc6
parentde2e5ed04711e45fca6b9b24b0ad893e009692f0
arm64: backtrace: Don't bother trying to unwind the userspace stack

commit 1e6f5440a6814d28c32d347f338bfef68bc3e69d upstream.

Calling dump_backtrace() with a pt_regs argument corresponding to
userspace doesn't make any sense and our unwinder will simply print
"Call trace:" before unwinding the stack looking for user frames.

Rather than go through this song and dance, just return early if we're
passed a user register state.

Cc: <stable@vger.kernel.org>
Fixes: 1149aad10b1e ("arm64: Add dump_backtrace() in show_regs")
Reported-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/traps.c