summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2019-04-08 17:56:34 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-17 08:38:53 +0200
commit84c6c2af4c532dc3ce26d5c3f5e8b0824ac6b441 (patch)
treecd6ae7bfafd61e05dcfefb9a2b71d51a364752dc /kernel
parent1ec54cee633369730ba46df65410b70d295491ca (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 'kernel')
0 files changed, 0 insertions, 0 deletions