Commit 91b89a63 authored by Dylan Hatch's avatar Dylan Hatch Committed by Catalin Marinas
Browse files

arm64/module: Use text-poke API for late relocations.



To enable late module patching, livepatch modules need to be able to
apply some of their relocations well after being loaded. In this
scenario however, the livepatch module text and data is already RX-only,
so special treatment is needed to make the late relocations possible. To
do this, use the text-poking API for these late relocations.

This patch is partially based off commit 88fc078a ("x86/module: Use
text_poke() for late relocations").

Signed-off-by: default avatarDylan Hatch <dylanbhatch@google.com>
Acked-by: default avatarSong Liu <song@kernel.org>
Acked-by: default avatarWill Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20250603223417.3700218-1-dylanbhatch@google.com


Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 19272b37
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment