Thread (1 message) 1 message, 1 author, 17d ago

Re: [PATCH v4 0/2] riscv: kprobes: reject probes inside LR/SC sequences

flat view

From: Nam Cao <hidden>
Date: 2026-09-22 15:40:28
Also in: linux-riscv

Xiaofeng Yuan [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help