Skip to content

Simplify kallsyms offset table generation

Ard Biesheuvel linux-hardening linux-kbuild linux-mips lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 1 replyIn review

Changes in v2 from the cover letter

- implement minimal PC32 support for MIPS so it can tolerate the symbol references emitted by kallsyms
- use signed decimal to represent the offset, so that symbols appearing before _text can be represented correctly.
- add Kees's ack

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mips: Add support for PC32 relocations in vmlinuxarch/mips/boot/tools/relocs.c arch/mips/include/asm/elf.h+4 -00 replies
2/2kallsyms: Get rid of kallsyms relative basekernel/kallsyms.c kernel/kallsyms_internal.h kernel/vmcore_info.c +3 more+25 -520 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchKees Cook
1/2
2/2R-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 [PATCH v2 0/2] Simplify kallsyms offset table generation

From: Ard Biesheuvel <[email protected]>

v2:
- implement minimal PC32 support for MIPS so it can tolerate the symbol references emitted by kallsyms
- use signed decimal to represent the offset, so that symbols appearing before _text can be represented correctly.
- add Kees's ack

Cc Nathan Chancellor <[email protected]>
Cc Nicolas Schier <[email protected]>
Cc Kees Cook <[email protected]>
Cc Thomas Bogendoerfer <[email protected]>
Cc Kees Cook <[email protected]>

Ard Biesheuvel (2):
mips: Add support for PC32 relocations in vmlinux
kallsyms: Get rid of kallsyms relative base

 arch/mips/boot/tools/relocs.c       |  2 +
 arch/mips/include/asm/elf.h         |  2 +
 kernel/kallsyms.c                   |  6 +-
 kernel/kallsyms_internal.h          |  1 -
 kernel/vmcore_info.c                |  1 -
 scripts/kallsyms.c                  | 64 ++++++--------------
 scripts/link-vmlinux.sh             |  4 ++
 tools/perf/tests/vmlinux-kallsyms.c |  1 -
 8 files changed, 29 insertions(+), 52 deletions(-)
Signature · 1 line
2.52.0.457.g6b5491de43-goog