arm64: traps: Don't print stack or raw PC/LR values in backtraces
authorWill Deacon <will.deacon@arm.com>
Tue, 21 Apr 2020 12:39:58 +0000 (13:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Apr 2020 06:01:03 +0000 (08:01 +0200)
commit6dc0256f802be6bc783fb9542affb48d267f592c
treeaf0f1a66645471eb17100797c3cb9a628923696e
parent6a0e901f9f742a99219293e994e380ee8de1237a
arm64: traps: Don't print stack or raw PC/LR values in backtraces

[ Upstream commit a25ffd3a6302a67814280274d8f1aa4ae2ea4b59 ]

Printing raw pointer values in backtraces has potential security
implications and are of questionable value anyway.

This patch follows x86's lead and removes the "Exception stack:" dump
from kernel backtraces, as well as converting PC/LR values to symbols
such as "sysrq_handle_crash+0x20/0x30".

Tested-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/process.c
arch/arm64/kernel/traps.c