android_kernel_oneplus_msm8998/arch/arm64/kernel
Will Deacon 20df60004a arm64: debug: Ensure debug handlers check triggering exception level
commit 6bd288569b50bc89fa5513031086746968f585cb upstream.

Debug exception handlers may be called for exceptions generated both by
user and kernel code. In many cases, this is checked explicitly, but
in other cases things either happen to work by happy accident or they
go slightly wrong. For example, executing 'brk #4' from userspace will
enter the kprobes code and be ignored, but the instruction will be
retried forever in userspace instead of delivering a SIGTRAP.

Fix this issue in the most stable-friendly fashion by simply adding
explicit checks of the triggering exception level to all of our debug
exception handlers.

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-27 09:33:47 +02:00
..
vdso
.gitignore
acpi.c
alternative.c
arm64ksyms.c
armv8_deprecated.c arm64: armv8_deprecated: ensure extension of addr 2017-06-14 13:16:27 +02:00
asm-offsets.c arm64: kernel: Save and restore UAO and addr_limit on exception entry 2016-08-20 18:09:16 +02:00
cacheinfo.c
cpu_errata.c arm64: Add workaround for Cavium erratum 27456 2016-09-15 08:27:44 +02:00
cpu_ops.c
cpufeature.c arm64: cpufeature: Track 32bit EL0 support 2018-10-10 08:52:09 +02:00
cpuidle.c
cpuinfo.c
debug-monitors.c arm64: debug: avoid resetting stepping state machine when TIF_SINGLESTEP 2016-10-07 15:23:42 +02:00
efi-entry.S
efi.c
entry-fpsimd.S
entry-ftrace.S arm64: ftrace: don't adjust the LR value 2019-02-20 10:13:07 +01:00
entry.S arm64/kernel: fix incorrect EL0 check in inv_entry macro 2019-04-03 06:23:23 +02:00
entry32.S
fpsimd.c arm64: fpsimd: Prevent registers leaking across exec 2017-09-02 07:06:52 +02:00
ftrace.c
head.S arm64: Relax GIC version check during early boot 2019-03-23 08:44:34 +01:00
hw_breakpoint.c arm64: hw_breakpoint: fix watchpoint matching for tagged pointers 2017-06-14 13:16:27 +02:00
hyp-stub.S arm64: hyp-stub: Forbid kprobing of the hyp-stub 2019-02-06 19:43:07 +01:00
image.h arm64: hide __efistub_ aliases from kallsyms 2019-04-03 06:23:21 +02:00
insn.c
io.c
irq.c
jump_label.c
kgdb.c arm64: debug: Ensure debug handlers check triggering exception level 2019-04-27 09:33:47 +02:00
kuser32.S
Makefile
module.c
pci.c
perf_callchain.c
perf_event.c arm64: perf: set suppress_bind_attrs flag to true 2019-01-26 09:42:53 +01:00
perf_regs.c
process.c arm64: fpsimd: Prevent registers leaking from dead tasks 2017-12-16 10:33:50 +01:00
psci-call.S
psci.c
ptrace.c arm64/ptrace: Reject attempts to set incomplete hardware breakpoint fields 2017-01-26 08:23:49 +01:00
return_address.c
setup.c
signal.c
signal32.c
sleep.S
smp.c arm64: make secondary_start_kernel() notrace 2018-08-24 13:26:55 +02:00
smp_spin_table.c
stacktrace.c
suspend.c arm64: suspend: Reconfigure PSTATE after resume from idle 2016-12-08 07:15:25 +01:00
sys.c
sys32.c
sys_compat.c
time.c
topology.c
trace-events-emulation.h
traps.c arm64: traps: disable irq in die() 2019-04-03 06:23:19 +02:00
vdso.c
vmlinux.lds.S