[PATCH v7] arm64/module: Use text-poke API for late relocations.
Will Deacon
will at kernel.org
Thu Jun 12 08:18:59 PDT 2025
On Tue, Jun 03, 2025 at 10:34:17PM +0000, Dylan Hatch wrote:
> 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 88fc078a7a8f6 ("x86/module: Use
> text_poke() for late relocations").
>
> Signed-off-by: Dylan Hatch <dylanbhatch at google.com>
> Acked-by: Song Liu <song at kernel.org>
> ---
> arch/arm64/kernel/module.c | 101 +++++++++++++++++++++----------------
> 1 file changed, 57 insertions(+), 44 deletions(-)
Thanks for sticking with this, Dylan:
Acked-by: Will Deacon <will at kernel.org>
Catalin, I assume you'll pick this up for 6.17.
Cheers,
Will
More information about the linux-arm-kernel
mailing list