android_kernel_samsung_msm8976/arch/arm64
Will Deacon 3ccefd6854 arm64: debug: avoid resetting stepping state machine when TIF_SINGLESTEP
commit 3a402a709500c5a3faca2111668c33d96555e35a upstream.

When TIF_SINGLESTEP is set for a task, the single-step state machine is
enabled and we must take care not to reset it to the active-not-pending
state if it is already in the active-pending state.

Unfortunately, that's exactly what user_enable_single_step does, by
unconditionally setting the SS bit in the SPSR for the current task.
This causes failures in the GDB testsuite, where GDB ends up missing
expected step traps if the instruction being stepped generates another
trap, e.g. PTRACE_EVENT_FORK from an SVC instruction.

This patch fixes the problem by preserving the current state of the
stepping state machine when TIF_SINGLESTEP is set on the current thread.

Cc: <stable@vger.kernel.org>
Reported-by: Yao Qi <yao.qi@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2019-07-27 21:42:13 +02:00
..
boot Import latest Samsung release 2017-04-18 03:43:52 +02:00
configs arch/arm64: configs: Enable CONFIG_IP6_NF_MATCH_RPFILTER 2018-06-15 18:02:35 +02:00
crypto crypto: arm64/crc32 - bring in line with generic CRC32 2017-04-18 12:17:34 +02:00
include arm64: spinlocks: implement smp_mb__before_spinlock() as smp_mb() 2019-07-27 21:42:12 +02:00
kernel arm64: debug: avoid resetting stepping state machine when TIF_SINGLESTEP 2019-07-27 21:42:13 +02:00
kvm
lib arm64: strcmp: align to 64B cache line 2017-04-18 12:17:54 +02:00
mm Revert "arm64: mm: ensure that the zero page is visible to the page table walker" 2017-04-18 17:24:53 +02:00
xen
Kconfig Merge remote-tracking branch 'f2fs/linux-3.10.y' into HEAD 2017-04-18 17:02:28 +02:00
Kconfig.debug arm64: Disable Samsung security restrictions by default 2017-04-18 04:44:48 +02:00
Makefile Import latest Samsung release 2017-04-18 03:43:52 +02:00