]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: traps: Dump registers prior to panic() in bad_mode()
authorWill Deacon <will@kernel.org>
Mon, 15 Jun 2020 11:23:16 +0000 (12:23 +0100)
committerWill Deacon <will@kernel.org>
Mon, 15 Jun 2020 15:58:13 +0000 (16:58 +0100)
commit0e38d1c757ba0ebe879cb0ecfc119d643fa47ef5
treef410d6edbfdf484e803fbbdadee6eed734244c88
parentf74b6f451de0d63dc634f1e09742daa5d1ea8e0c
arm64: traps: Dump registers prior to panic() in bad_mode()

When panicing due to an unknown/unhandled exception at EL1, dump the
registers of the faulting context so that it's easier to figure out
what went wrong. In particular, this makes it a lot easier to debug
in-kernel BTI failures since it pretty-prints PSTATE.BTYPE in the crash
log.

Cc: Mark Brown <broonie@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20200615113458.2884-1-will@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/traps.c