Skip to content

objtool: altinstructions fix and cleanup

Joe Lawrence lkml 2 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 Latest2 patches 2 repliesApplied
  2. v22 patches 1 replySuperseded

Changes in v3 from the cover letter

- fix bug introduced in arch_decode_instruction() [andy]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2objtool: make .altinstructions section entry size consistenttools/objtool/arch/x86/decode.c+1 -10 replies
2/2objtool: remove redundant len value from struct sectiontools/objtool/check.c tools/objtool/elf.c tools/objtool/include/objtool/elf.h +2 more+17 -200 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMiroslav Benes
SeriesR-b
1/2
2/2

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/2] objtool: altinstructions fix and cleanup

This version won't eat your memory and swap when building the entire kernel. Apologies to Andy who discovered this over the weekend.

Tested full build and boot w/o problem. The vmlinux sections, relocs, size, etc. all appear to be the same before and after this set. External tooling (kpatch-build) is happy, too.

v3:
- fix bug introduced in arch_decode_instruction() [andy]

v2:
- drop the sec->len update from the first patch [josh]
- rip out sec->len as suggested [josh]

Joe Lawrence (2):
objtool: make .altinstructions section entry size consistent
objtool: remove redundant len value from struct section

 tools/objtool/arch/x86/decode.c     |  2 +-
 tools/objtool/check.c               | 16 ++++++++--------
 tools/objtool/elf.c                 | 14 ++++++--------
 tools/objtool/include/objtool/elf.h |  1 -
 tools/objtool/orc_gen.c             |  2 +-
 tools/objtool/special.c             |  4 ++--
 6 files changed, 18 insertions(+), 21 deletions(-)
Signature · 1 line
2.26.3