aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/purgatory/kexec-purgatory.S
diff options
context:
space:
mode:
authorGravatar Nam Cao <namcaov@gmail.com> 2023-08-29 20:25:00 +0200
committerGravatar Palmer Dabbelt <palmer@rivosinc.com> 2023-11-05 14:12:47 -0800
commit8cb22bec142624d21bc85ff96b7bad10b6220e6a (patch)
tree63df3a41abae887a5a13f894c81419c455cb4bb2 /arch/riscv/purgatory/kexec-purgatory.S
parentriscv: provide riscv-specific is_trap_insn() (diff)
downloadlinux-8cb22bec142624d21bc85ff96b7bad10b6220e6a.tar.gz
linux-8cb22bec142624d21bc85ff96b7bad10b6220e6a.tar.bz2
linux-8cb22bec142624d21bc85ff96b7bad10b6220e6a.zip
riscv: kprobes: allow writing to x0
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: c22b0bcb1dd0 ("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>
Diffstat (limited to 'arch/riscv/purgatory/kexec-purgatory.S')
0 files changed, 0 insertions, 0 deletions