summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorZhanpeng Zhang <zhangzhanpeng.jasper@bytedance.com>2026-07-28 11:35:53 +0800
committerNamhyung Kim <namhyung@kernel.org>2026-08-02 09:44:58 -0700
commit3a13ed3111ce45c0735406c03973d1d6792a9c6f (patch)
treefe4bb7e5165aa6089e8da57312a123ed15828821 /scripts/patch-kernel
parentd04ef71492fad7230d474efe33d05f4c0563d409 (diff)
downloadlinux-3a13ed3111ce45c0735406c03973d1d6792a9c6f.tar.gz
linux-3a13ed3111ce45c0735406c03973d1d6792a9c6f.zip
perf symbols: Skip dynamic symbols with invalid section indexes
RISC-V post-link processing can remove relocation sections from the final vmlinux while some .dynsym entries retain stale section indexes. perf aborts the whole ELF symbol load when elf_getscn() rejects one of them, discarding otherwise valid .symtab symbols. Skip only dynamic symbols whose normal section index is outside the final section table. Keep the existing error path for .symtab, reserved indexes, and other libelf failures. On an affected system, the vmlinux symtab matches kallsyms test changes from Skip to Ok. [unknown] rows in the same perf.data change from 41 to 0. Signed-off-by: Zhanpeng Zhang <zhangzhanpeng.jasper@bytedance.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions