riscv: kprobes: Use patch_text_nosync() for insn slots
authorSamuel Holland <samuel.holland@sifive.com>
Wed, 27 Mar 2024 16:04:42 +0000 (09:04 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 26 Jun 2024 14:36:29 +0000 (07:36 -0700)
commitb1756750a397f36ddc857989d31887c3f5081fb0
tree23641cc70c017d0f50822e3f770e156f0872c6d4
parent2aa30d19cfbb3c2172f3c4f50abae447c4937772
riscv: kprobes: Use patch_text_nosync() for insn slots

These instructions are not yet visible to the rest of the system,
so there is no need to do the whole stop_machine() dance.

Reviewed-by: Björn Töpel <bjorn@rivosinc.com>
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20240327160520.791322-4-samuel.holland@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/probes/kprobes.c