[PW_SID:1150173] [v2] riscv: probes: reject kprobes inside LR/SC sequences - #2513
[PW_SID:1150173] [v2] riscv: probes: reject kprobes inside LR/SC sequences#2513linux-riscv-bot wants to merge 1 commit into
Conversation
A breakpoint trap taken in the middle of an LR/SC sequence clears the load reservation, so an SC following the probed instruction would always fail and the enclosing retry loop would re-enter the breakpoint, livelocking the CPU. Reject probing the LR/SC instructions themselves, and reject probing any address that lies inside an LR/SC sequence by scanning back up to the Zalrsc constrained-loop limit of 64 bytes. Signed-off-by: Xiaofeng Yuan <yuanxiaofeng@eswincomputing.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences" |
|
Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences" |
|
Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences" |
|
Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences" |
|
Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences" |
|
Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences" |
|
Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences" |
|
Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences" |
|
Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences" |
|
Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences" |
|
Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences" |
|
Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences" |
PR for series 1150173 applied to workflow__riscv__fixes
Name: [v2] riscv: probes: reject kprobes inside LR/SC sequences
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1150173
Version: 2