]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ARM: kexec: fix kdump register saving on panic()
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 11 Apr 2018 17:24:01 +0000 (18:24 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 12:57:21 +0000 (14:57 +0200)
commita020fbc276d0bbe39a67ddbb2557d4401d8346b6
tree6ed11611d580819ce916574b26377a40544e7b04
parent59a70ecb6b7e517161e6730a108c91e13f991f0c
ARM: kexec: fix kdump register saving on panic()

BugLink: http://bugs.launchpad.net/bugs/1794889
[ Upstream commit 2d7b3c64431245c95b05a441669c074da10db943 ]

When a panic() occurs, the kexec code uses smp_send_stop() to stop
the other CPUs, but this results in the CPU register state not being
saved, and gdb is unable to inspect the state of other CPUs.

Commit 0ee59413c967 ("x86/panic: replace smp_send_stop() with kdump
friendly version in panic path") addressed the issue on x86, but
ignored other architectures.  Address the issue on ARM by splitting
out the crash stop implementation to crash_smp_send_stop() and
adding the necessary protection.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/arm/kernel/machine_kexec.c