Skip to content

[PW_SID:1150173] [v2] riscv: probes: reject kprobes inside LR/SC sequences - #2513

Closed
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw1150173
Closed

[PW_SID:1150173] [v2] riscv: probes: reject kprobes inside LR/SC sequences#2513
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw1150173

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

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

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>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 147.20 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1480.57 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1786.72 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 28.76 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 30.13 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.28 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 89.26 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences"
kdoc
Desc: Detects for kdoc errors
Duration: 0.84 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] riscv: probes: reject kprobes inside LR/SC sequences"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot deleted the pw1150173 branch August 25, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants