[PATCH v4 0/2] riscv: kprobes: reject probes inside LR/SC sequences
Nam Cao
namcao at linutronix.de
Tue Sep 22 08:40:11 PDT 2026
Xiaofeng Yuan <yuanxiaofeng at eswincomputing.com> writes:
> A breakpoint trap taken in the middle of an LR/SC sequence clears the
> load reservation, so an SC following the probed instruction always fails
> and the enclosing retry loop re-enters the breakpoint, livelocking the
> CPU.
>
> This series makes the RISC-V kprobes implementation reject probes placed
> inside an LR/SC sequence:
CC: kprobes maintainers, I would appreciate your opinion on this. Should
kprobes reject it, or leave it to users to take care not to do that?
Nam
More information about the linux-riscv
mailing list