diff options
author | Jeremy Linton <jeremy.linton@arm.com> | 2025-08-24 22:34:19 -0500 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2025-09-16 21:34:06 +0100 |
commit | 4a601714bb24926507b2051c4a95f07e0e142004 (patch) | |
tree | 4c1dcfe462001b59cdd81b8d5a21c894b174f68a /scripts/extract-fwblobs | |
parent | efb07ac534e24e22a7eb32815fb50f69931cdeae (diff) |
arm64: uprobes: Add GCS support to uretprobes
Ret probes work by changing the value in the link register at
the probe location to return to the probe rather than the calling
routine. Thus the GCS needs to be updated with this address as well.
Since its possible to insert probes at locations where the
current value of the LR doesn't match the GCS state this needs
to be detected and handled in order to maintain the existing
no-fault behavior.
Co-developed-by: Steve Capper <steve.capper@arm.com>
Signed-off-by: Steve Capper <steve.capper@arm.com>
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
[will: Add '__force' to gcspr casts in arch_uretprobe_hijack_return_addr()]
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions