aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorAlireza Haghdoost <haghdoost@uber.com>2026-09-28 16:32:27 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-09-29 22:45:46 +0200
commit45d15e89a783a0a279b7a54f9018c230127380d7 (patch)
treeca4dcc5188065695a82d353bf221ed0032a01423 /scripts/Makefile.thinlto
parentperf debuginfo: Update debuginfo__new() to take DSO (diff)
perf symbols: Don't let a module's last symbol overlap the next module
symbols__fixup_end() extends a zero-size symbol that is the last one in the kernel or in a module to the end of the next page. On x86 the next module can start in that page, so the stretched symbol overlaps it, and a lookup can return the wrong symbol. For example: ffffffffc0c4aa50 t dca_sysfs_exit [dca] ffffffffc0c4b000 t __nft_trace_packet [nf_tables] ffffffffc0c4b0b0 t nft_do_chain [nf_tables] dca_sysfs_exit gets end 0xffffffffc0c4c000, and samples in nft_do_chain are reported as dca_sysfs_exit. This patch clamps the end to the next symbol's start. The ARM case this code was added for, where the next module is far away, is unchanged. Add a "Kallsyms symbol ends" test case to the Symbols suite that covers the kernel/module boundary, adjacent modules and a distant module. Fixes: 8799ebce84d672aa ("perf symbol: Update symbols__fixup_end()") Fixes: bacefe0c7b77b752 ("perf tools: Fixup module symbol end address properly") Signed-off-by: Alireza Haghdoost <haghdoost@uber.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions