android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jean-Philippe Brucker 490a02cd82 arm64: kprobes: Use BRK instead of single-step when executing instructions out-of-line
commit 7ee31a3aa8f490c6507bc4294df6b70bed1c593e upstream.

Commit 36dadef23fcc ("kprobes: Init kprobes in early_initcall") enabled
using kprobes from early_initcall. Unfortunately at this point the
hardware debug infrastructure is not operational. The OS lock may still
be locked, and the hardware watchpoints may have unknown values when
kprobe enables debug monitors to single-step instructions.

Rather than using hardware single-step, append a BRK instruction after
the instruction to be executed out-of-line.

Fixes: 36dadef23fcc ("kprobes: Init kprobes in early_initcall")
Suggested-by: Will Deacon <will@kernel.org>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/20201103134900.337243-1-jean-philippe@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-22 14:11:24 +02:00
..
alpha alpha: define get_cycles macro for arch-override 2022-06-22 14:11:14 +02:00
arc ARC: entry: fix syscall_trace_exit argument 2022-04-27 13:50:49 +02:00
arm arm: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
arm64 arm64: kprobes: Use BRK instead of single-step when executing instructions out-of-line 2022-06-22 14:11:24 +02:00
c6x
csky
h8300
hexagon
ia64 ia64: define get_cycles macro for arch-override 2022-06-22 14:11:14 +02:00
m68k m68k: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
microblaze uaccess: fix nios2 and microblaze get_user_8() 2022-04-15 14:18:08 +02:00
mips mips: use fallback for random_get_entropy() instead of just c0 random 2022-06-22 14:11:15 +02:00
nds32 nds32: fix access_ok() checks in get/put_user 2022-03-28 08:46:48 +02:00
nios2 nios2: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
openrisc openrisc: start CPU timer early in boot 2022-06-14 18:11:28 +02:00
parisc parisc: define get_cycles macro for arch-override 2022-06-22 14:11:14 +02:00
powerpc powerpc/kasan: Silence KASAN warnings in __get_wchan() 2022-06-22 14:11:19 +02:00
riscv riscv module: remove (NOLOAD) 2022-04-15 14:18:31 +02:00
s390 s390: define get_cycles macro for arch-override 2022-06-22 14:11:14 +02:00
sh
sparc sparc: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
um um: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
unicore32
x86 x86/tsc: Use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
xtensa xtensa: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
.gitignore
Kconfig