linux/arch/riscv/kernel/probes
Guo Ren 026cae99d0 riscv: kprobe: Fixup misaligned load text
commit eb7423273c upstream.

The current kprobe would cause a misaligned load for the probe point.
This patch fixup it with two half-word loads instead.

Fixes: c22b0bcb1d ("riscv: Add kprobes supported")
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Link: https://lore.kernel.org/linux-riscv/878rhig9zj.fsf@all.your.base.are.belong.to.us/
Reported-by: Bjorn Topel <bjorn.topel@gmail.com>
Reviewed-by: Björn Töpel <bjorn@kernel.org>
Link: https://lore.kernel.org/r/20230204063531.740220-1-guoren@kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-14 19:11:53 +01:00
..
decode-insn.c riscv: kprobes: implement the branch instructions 2021-07-21 23:22:34 -07:00
decode-insn.h
ftrace.c ftrace: disable preemption when recursion locked 2021-10-27 11:21:49 -04:00
kprobes_trampoline.S kprobes: treewide: Make it harder to refer kretprobe_trampoline directly 2021-09-30 21:24:06 -04:00
kprobes.c riscv: kprobe: Fixup misaligned load text 2023-02-14 19:11:53 +01:00
Makefile riscv: Add uprobes supported 2021-01-14 15:09:08 -08:00
simulate-insn.c riscv/kprobe: Fix instruction simulation of JALR 2023-02-01 08:34:47 +01:00
simulate-insn.h riscv, kprobes: Stricter c.jr/c.jalr decoding 2023-01-12 12:02:51 +01:00
uprobes.c riscv:uprobe fix SR_SPIE set/clear handling 2022-08-11 14:14:52 -07:00