[PATCH v4 0/2] livepatch, arm64/module: Enable late module relocations.
Toshiyuki Sato (Fujitsu)
fj6611ie at fujitsu.com
Thu May 22 22:55:05 PDT 2025
Hi Dylan,
> Late relocations (after the module is initially loaded) are needed when
> livepatches change module code. This is supported by x86, ppc, and s390.
> This series borrows the x86 methodology to reach the same level of support on
> arm64, and moves the text-poke locking into the core livepatch code to reduce
> redundancy.
>
> Dylan Hatch (2):
> livepatch, x86/module: Generalize late module relocation locking.
> arm64/module: Use text-poke API for late relocations.
>
> arch/arm64/kernel/module.c | 113
> ++++++++++++++++++++++---------------
> arch/x86/kernel/module.c | 8 +--
> kernel/livepatch/core.c | 18 ++++--
> 3 files changed, 84 insertions(+), 55 deletions(-)
>
> --
> 2.49.0.1151.ga128411c76-goog
Thanks for posting the new patch.
I ran kpatch's integration tests and no issues were detected.
The livepatch patches [1][2] (Manually adjusting arch/arm64/Kconfig) have been applied to the kernel (6.15-rc7).
The kpatch uses the same one as the previous test [3][4].
[1] https://lore.kernel.org/all/20250521111000.2237470-1-mark.rutland@arm.com/
[2] https://lore.kernel.org/all/20250320171559.3423224-3-song@kernel.org/
[3] https://lore.kernel.org/all/TY4PR01MB1377739F1CC08549A619C8635D7BA2@TY4PR01MB13777.jpnprd01.prod.outlook.com/
[4] https://github.com/dynup/kpatch/pull/1439
Tested-by: Toshiyuki Sato <fj6611ie at aa.jp.fujitsu.com>
Regards,
Toshiyuki Sato
More information about the linux-arm-kernel
mailing list