diff options
author | Will Deacon <will.deacon@arm.com> | 2019-04-08 17:56:34 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-17 08:39:51 +0200 |
commit | 36078cae3790ac638013a43a93542a729082272c (patch) | |
tree | 61fa9665baacf5b75859f05d39760e17d1f09dc6 /scripts/gdb/linux/utils.py | |
parent | de2e5ed04711e45fca6b9b24b0ad893e009692f0 (diff) |
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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions