summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorSong Liu <song@kernel.org>2026-09-16 11:43:22 -0700
committerIngo Molnar <mingo@kernel.org>2026-09-21 11:11:36 +0200
commit65b0aac4125c18280efbda38174ec14bcef887b2 (patch)
tree82386b1038fbc8521ade8388d8d097dbe1518491 /tools/perf/scripts/python/bin/stackcollapse-report
parent2d17a35f6c9489884e6a5ff7cb0d6b150d413371 (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 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions