linux-stable/arch/arm64
Will Deacon bd62f1fe73 arm64: debug: Don't propagate UNKNOWN FAR into si_code for debug signals
commit b9a4b9d084 upstream.

FAR_EL1 is UNKNOWN for all debug exceptions other than those caused by
taking a hardware watchpoint. Unfortunately, if a debug handler returns
a non-zero value, then we will propagate the UNKNOWN FAR value to
userspace via the si_addr field of the SIGTRAP siginfo_t.

Instead, let's set si_addr to take on the PC of the faulting instruction,
which we have available in the current pt_regs.

Cc: <stable@vger.kernel.org>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-04-05 22:32:55 +02:00
..
boot arm64: dts: rockchip: fix graph_port warning on rk3399 bob kevin and excavator 2019-03-23 20:09:42 +01:00
configs arm64: defconfig: Enable TI's AM6 SoC platform 2018-08-29 11:51:26 -07:00
crypto crypto: arm64/aes-ccm - fix bugs in non-NEON fallback routine 2019-03-23 20:09:56 +01:00
include arm64: Fix HCR.TGE status for NMI contexts 2019-03-23 20:10:08 +01:00
kernel arm64: debug: Ensure debug handlers check triggering exception level 2019-03-23 20:10:08 +01:00
kvm arm64: KVM: Fix architecturally invalid reset value for FPEXC32_EL2 2019-03-23 20:10:08 +01:00
lib arm64: lse: remove -fcall-used-x0 flag 2018-11-13 11:08:54 -08:00
mm arm64: debug: Don't propagate UNKNOWN FAR into si_code for debug signals 2019-04-05 22:32:55 +02:00
net bpf, arm64: save 4 bytes in prologue when ebpf insns came from cbpf 2018-05-14 19:11:45 -07:00
xen arm64: mm: Add additional parameter to uaccess_ttbr0_disable 2018-01-17 13:57:49 +01:00
Kconfig arm64: mm: always enable CONFIG_HOLES_IN_ZONE 2018-08-31 11:06:45 +01:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Kconfig.platforms ARM: SoC: late updates 2018-08-25 14:12:36 -07:00
Makefile arm64: relocatable: fix inconsistencies in linker script and options 2019-01-13 09:51:08 +01:00