Skip to content

RFC livepatch: Clear relocation targets on a module removal

Miroslav Benes live-patching lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest3 patches 8 repliesIn review
  2. v1 RFC2 patches 41 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3livepatch: Clear relocation targets on a module removalarch/powerpc/kernel/module_64.c arch/s390/kernel/module.c arch/x86/kernel/module.c +2 more+148 -04 replies
2/3livepatch: Unify functions for writing and clearing object relocationskernel/livepatch/core.c+34 -501 reply
3/3livepatch: Clean up klp_update_object_relocations() return pathskernel/livepatch/core.c+4 -52 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchPetr Mladek
1/3
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [RFC PATCH v2 0/3] livepatch: Clear relocation targets on a module removal

Updated version with Petr's feedback. It looks a bit different and better now (I would say). Not that it should be considered before we decide what to do with late module patching, but I finished it before the discussion started and someone could be interested.

v1: http://lore.kernel.org/r/[email protected]

Tested on x86_64, ppc64le and s390x. Cross-compiled on arm64 to verify that nothing is broken.

[1] 20180602161151.apuhs2dygsexmcg2@treble
[2] [email protected]
[3] [email protected]

Miroslav Benes (3):
livepatch: Clear relocation targets on a module removal
livepatch: Unify functions for writing and clearing object relocations
livepatch: Clean up klp_update_object_relocations() return paths

 arch/powerpc/kernel/module_64.c | 45 +++++++++++++++++++++++++
 arch/s390/kernel/module.c       |  8 +++++
 arch/x86/kernel/module.c        | 43 ++++++++++++++++++++++++
 include/linux/moduleloader.h    |  7 ++++
 kernel/livepatch/core.c         | 58 ++++++++++++++++++++++++---------
 5 files changed, 146 insertions(+), 15 deletions(-)
Signature · 1 line
2.23.0