arm64: don't kill the kernel on a bad esr from el0
authorMark Rutland <mark.rutland@arm.com>
Tue, 28 May 2013 14:54:15 +0000 (15:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Jun 2013 19:52:49 +0000 (12:52 -0700)
commit1fd8fe9227c6a0b11da522709264a0ebcc0c002a
treedbfd1d712900bb0851d7762e9a4ef9f7e1988e82
parente08d9828d5d6925562f8c13bc6a70aab7eeddd9a
arm64: don't kill the kernel on a bad esr from el0

commit 9955ac47f4ba1c95ecb6092aeaefb40a22e99268 upstream.

Rather than completely killing the kernel if we receive an esr value we
can't deal with in the el0 handlers, send the process a SIGILL and log
the esr value in the hope that we can debug it. If we receive a bad esr
from el1, we'll die() as before.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/traps.c