]> git.baikalelectronics.ru Git - 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)
committerWill Deacon <will.deacon@arm.com>
Mon, 8 Apr 2019 17:05:24 +0000 (18:05 +0100)
commit2d92a8e81823525b9fc0bae9559ef7831b2179f5
tree4010520c549266a7637d2587f0a541355da026b2
parent637fbe4872c533720f2923ae4156eb49c7988191
arm64: backtrace: Don't bother trying to unwind the userspace stack

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: 6f9bcfcf217e ("arm64: Add dump_backtrace() in show_regs")
Reported-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/traps.c