diff options
| author | 2026-09-16 11:43:22 -0700 | |
|---|---|---|
| committer | 2026-09-21 11:11:36 +0200 | |
| commit | 65b0aac4125c18280efbda38174ec14bcef887b2 (patch) | |
| tree | 82386b1038fbc8521ade8388d8d097dbe1518491 /scripts/Makefile.thinlto | |
| parent | objtool/klp: Add test for klp reloc section naming in module objects (diff) | |
objtool/klp: Add test for vmlinux relocs in a patched module
The kernel refuses a module-targeted klp relocation which names a vmlinux
symbol. An EXPORT_SYMBOL_FOR_MODULES() symbol needs a klp relocation, so
patching a module function that references one only loads if klp diff files
that relocation under vmlinux rather than under the patched module.
This fails at load, not at build: klp-build produces a module and static
checks of it find nothing wrong. Hence the assertion on which object the
relocation is filed against.
Reported by Dylan Hatch, whose mod-ns-lp branch carries the kernel-side
half of this case.
Co-developed-by: Dylan Hatch <dylanbhatch@google.com>
Signed-off-by: Dylan Hatch <dylanbhatch@google.com>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Assisted-by: Claude:claude-opus-5
Link: https://patch.msgid.link/20260916184351.2720310-30-song@kernel.org
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
