linux-stable/arch
Nam Cao 5fb6a480a0 riscv: kprobes: allow writing to x0
commit 8cb22bec14 upstream.

Instructions can write to x0, so we should simulate these instructions
normally.

Currently, the kernel hangs if an instruction who writes to x0 is
simulated.

Fixes: c22b0bcb1d ("riscv: Add kprobes supported")
Cc: stable@vger.kernel.org
Signed-off-by: Nam Cao <namcaov@gmail.com>
Reviewed-by: Charlie Jenkins <charlie@rivosinc.com>
Acked-by: Guo Ren <guoren@kernel.org>
Link: https://lore.kernel.org/r/20230829182500.61875-1-namcaov@gmail.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-11-28 17:15:15 +00:00
..
alpha Kbuild fixes for v6.5 (2nd) 2023-08-13 08:56:24 -07:00
arc ARC: atomics: Add compiler barrier to atomic operations... 2023-09-19 12:30:22 +02:00
arm ARM: 9320/1: fix stack depot IRQ stack filter 2023-11-28 17:14:47 +00:00
arm64 arm64: dts: qcom: ipq6018: Fix tcsr_mutex register size 2023-11-28 17:15:06 +00:00
csky arch/csky patches for 6.5 2023-07-01 21:12:32 -07:00
hexagon Merge branch 'expand-stack' 2023-06-28 20:35:21 -07:00
ia64 locking: remove spin_lock_prefetch 2023-08-12 09:18:47 -07:00
loongarch LoongArch: Mark __percpu functions as always inline 2023-11-28 17:15:14 +00:00
m68k m68k: Fix invalid .section syntax 2023-07-24 14:50:02 +02:00
microblaze slab updates for 6.5 2023-06-29 16:34:12 -07:00
mips MIPS: Alchemy: only build mmc support helpers if au1xmmc is enabled 2023-10-06 13:16:01 +02:00
nios2 slab updates for 6.5 2023-06-29 16:34:12 -07:00
openrisc OpenRISC fix for 6.5 2023-07-12 16:28:53 -07:00
parisc parisc/pgtable: Do not drop upper 5 address bits of physical address 2023-11-28 17:15:10 +00:00
powerpc powerpc/perf: Fix disabling BHRB and instruction sampling 2023-11-28 17:14:58 +00:00
riscv riscv: kprobes: allow writing to x0 2023-11-28 17:15:15 +00:00
s390 s390/cmma: fix detection of DAT pages 2023-11-28 17:15:08 +00:00
sh sh: bios: Revive earlyprintk support 2023-11-20 11:57:10 +01:00
sparc sparc32: fix a braino in fault handling in csum_and_copy_..._user() 2023-11-02 09:36:59 +01:00
um um: virt-pci: fix missing declaration warning 2023-09-13 09:53:48 +02:00
x86 KVM: x86: Fix lapic timer interrupt lost after loading a snapshot. 2023-11-28 17:15:00 +00:00
xtensa xtensa: boot/lib: fix function prototypes 2023-10-06 13:16:04 +02:00
.gitignore
Kconfig cpu/SMT: Create topology_smt_thread_allowed() 2023-11-20 11:56:44 +01:00