mbox series

[v2,0/2] arm64/module: Enable late module relocations.

Message ID 20250412010940.1686376-1-dylanbhatch@google.com (mailing list archive)
Headers show
Series arm64/module: Enable late module relocations. | expand

Message

Dylan Hatch April 12, 2025, 1:09 a.m. UTC
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
suuport on arm64.

Dylan Hatch (2):
  arm64: patching: Rename aarch64_insn_copy to text_poke.
  arm64/module: Use text-poke API for late relocations.

 arch/arm64/include/asm/text-patching.h |   2 +-
 arch/arm64/kernel/module.c             | 129 ++++++++++++++++---------
 arch/arm64/kernel/patching.c           |  12 +--
 arch/arm64/net/bpf_jit_comp.c          |   2 +-
 4 files changed, 91 insertions(+), 54 deletions(-)