[PW_SID:1129415] uprobes: Restore original return address in uretprobe context#2305
[PW_SID:1129415] uprobes: Restore original return address in uretprobe context#2305linux-riscv-bot wants to merge 2 commits into
Conversation
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>
|
Patch 1: "uprobes: Restore original return address in uretprobe context" |
|
Patch 1: "uprobes: Restore original return address in uretprobe context" |
|
Patch 1: "uprobes: Restore original return address in uretprobe context" |
|
Patch 1: "uprobes: Restore original return address in uretprobe context" |
|
Patch 1: "uprobes: Restore original return address in uretprobe context" |
|
Patch 1: "uprobes: Restore original return address in uretprobe context" |
|
Patch 1: "uprobes: Restore original return address in uretprobe context" |
|
Patch 1: "uprobes: Restore original return address in uretprobe context" |
|
Patch 1: "uprobes: Restore original return address in uretprobe context" |
|
Patch 1: "uprobes: Restore original return address in uretprobe context" |
|
Patch 1: "uprobes: Restore original return address in uretprobe context" |
|
Patch 1: "uprobes: Restore original return address in uretprobe context" |
8ca72ef to
60e0882
Compare
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