Skip to content

[PW_SID:1129415] uprobes: Restore original return address in uretprobe context#2305

Open
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1129415
Open

[PW_SID:1129415] uprobes: Restore original return address in uretprobe context#2305
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1129415

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 1129415 applied to workflow__riscv__fixes

Name: uprobes: Restore original return address in uretprobe context
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1129415
Version: 1

Linux RISC-V bot and others added 2 commits July 15, 2026 17:25
uretprobe replaces the original return address of a probed function with
a trampoline address to capture function return events.

After the trampoline is entered and the uretprobe handler completes, the
original return address needs to be restored in the user register context
to keep the register state consistent with the state before probing.

Add an architecture-specific hook for restoring the original return
address during uretprobe handling.

The initial implementation adds support for RISC-V. Other architectures
keep the default empty implementation until their corresponding restore
logic is implemented.

Signed-off-by: daichengrong <daichengrong@iscas.ac.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "uprobes: Restore original return address in uretprobe context"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 141.98 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "uprobes: Restore original return address in uretprobe context"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 2409.54 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "uprobes: Restore original return address in uretprobe context"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 3012.49 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "uprobes: Restore original return address in uretprobe context"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 26.13 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "uprobes: Restore original return address in uretprobe context"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 26.73 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "uprobes: Restore original return address in uretprobe context"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 2.42 seconds
Result: WARNING
Output:

CHECK: Alignment should match open parenthesis
#38: FILE: arch/riscv/kernel/probes/uprobes.c:144:
+arch_uretprobe_hijack_set_addr(unsigned long orig_ret_vaddr,
+				  struct pt_regs *regs)

CHECK: extern prototypes should be avoided in .h files
#54: FILE: include/linux/uprobes.h:233:
+extern void arch_uretprobe_hijack_set_addr(unsigned long orig_ret_vaddr, struct pt_regs *regs);

total: 0 errors, 0 warnings, 2 checks, 37 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

Commit 7f3e22f1aca8 ("uprobes: Restore original return address in uretprobe context") has style problems, please review.

NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.
total: 0 errors, 0 warnings, 2 checks, 37 lines checked
CHECK: Alignment should match open parenthesis
CHECK: extern prototypes should be avoided in .h files


@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "uprobes: Restore original return address in uretprobe context"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 86.62 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "uprobes: Restore original return address in uretprobe context"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "uprobes: Restore original return address in uretprobe context"
kdoc
Desc: Detects for kdoc errors
Duration: 0.88 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "uprobes: Restore original return address in uretprobe context"
module-param
Desc: Detect module_param changes
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "uprobes: Restore original return address in uretprobe context"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "uprobes: Restore original return address in uretprobe context"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.32 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot force-pushed the workflow__riscv__fixes branch from 8ca72ef to 60e0882 Compare July 19, 2026 17:58
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