Skip to content

objtool/klp: sympos/module/alternative/etc fixes

Josh Poimboeuf live-patching lkml 3 versions – Applied

Status from this message: The following commit has been merged into the objtool/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 8 repliesApplied
  2. v27 patches 12 repliesSuperseded
  3. v114 patches 10 repliesApplied

Changes in v3 from the cover letter

- remove "size = 0" and add comments to create_fake_symbols()
- add patches 8 & 9

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/9objtool/klp: Fix vmlinux .klp.symid link error for .no_trim_symbol symbolstools/objtool/klp-symid.c+1 -00 replies
2/9objtool/klp: Fix size of empty special section entriestools/objtool/klp-diff.c+11 -20 replies
3/9objtool/klp: Ignore replacement offset of empty x86 alternativestools/objtool/arch/x86/special.c tools/objtool/include/objtool/special.h tools/objtool/klp-diff.c+39 -10 replies
4/9objtool/klp: Explicitly disallow patching or referencing init code/datatools/objtool/klp-sympos.c+10 -01 reply
5/9objtool/klp: Fix cross-module klp relocation section namingtools/objtool/include/objtool/klp.h tools/objtool/klp-diff.c tools/objtool/klp-post-link.c+52 -280 replies
6/9objtool/klp: Don't match local symbols against exportstools/objtool/klp-diff.c+3 -01 reply
7/9objtool/klp: Allow new references to module exportstools/objtool/klp-diff.c+33 -20 replies
8/9objtool/klp: Fix relocations for EXPORT_SYMBOL_FOR_MODULES() symbolstools/objtool/klp-diff.c+23 -54 replies
9/9objtool/klp: Fix line numbers in Module.symvers parse errorstools/objtool/klp-diff.c+3 -11 reply

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSong LiuJoe Lawrence
SeriesA-b
1/9A-b
2/9A-b
3/9A-b
4/9A-b
5/9A-b
6/9A-b
7/9A-b
8/9A-b
9/9A-b

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

Read the v3 thread

Cover letter [PATCH v3 0/9] objtool/klp: sympos/module/alternative/etc fixes

v3:
- remove "size = 0" and add comments to create_fake_symbols()
- add patches 8 & 9

v2: https://lore.kernel.org/[email protected]
- rebased on tip/master (first 6 patches were merged)
- dropped original patches 7-8 (will post followup)
- added .klp.symid fix

v1: https://lore.kernel.org/[email protected]

This consolidates fixes for the klp-build issues reported by Joe over the last several weeks, plus some more things I found while testing/reviewing.

Joe Lawrence (1):
objtool/klp: Allow new references to module exports

Josh Poimboeuf (8):
objtool/klp: Fix vmlinux .klp.symid link error for .no_trim_symbol
symbols
objtool/klp: Fix size of empty special section entries objtool/klp: Ignore replacement offset of empty x86 alternatives objtool/klp: Explicitly disallow patching or referencing init
code/data
objtool/klp: Fix cross-module klp relocation section naming objtool/klp: Don't match local symbols against exports objtool/klp: Fix relocations for EXPORT_SYMBOL_FOR_MODULES() symbols objtool/klp: Fix line numbers in Module.symvers parse errors

 tools/objtool/arch/x86/special.c        |  27 ++++++
 tools/objtool/include/objtool/klp.h     |  10 ++-
 tools/objtool/include/objtool/special.h |   7 ++
 tools/objtool/klp-diff.c                | 106 ++++++++++++++++++++----
 tools/objtool/klp-post-link.c           |  53 +++++++-----
 tools/objtool/klp-symid.c               |   1 +
 tools/objtool/klp-sympos.c              |  10 +++
 7 files changed, 175 insertions(+), 39 deletions(-)
Signature · 1 line
2.54.0