]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: traps: Don't print stack or raw PC/LR values in backtraces
authorWill Deacon <will.deacon@arm.com>
Thu, 19 Oct 2017 12:19:20 +0000 (13:19 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 27 Oct 2017 15:26:53 +0000 (16:26 +0100)
commitf76dca3fd101f804dbe0e7594ab21cab47ade0f6
treee43de23d0bb5b050ffbd88a67959104b69e340d2
parenta5f0d5b5a062afff927f7907498cbd2e830e5c30
arm64: traps: Don't print stack or raw PC/LR values in backtraces

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>
arch/arm64/kernel/process.c
arch/arm64/kernel/traps.c