linux-yocto/tools/perf
Ian Rogers 2e6e208825 perf symbol-minimal: Fix ehdr reading in filename__read_build_id
[ Upstream commit ba0b7081f7a521d7c28b527a4f18666a148471e7 ]

The e_ident is part of the ehdr and so reading it a second time would
mean the read ehdr was displaced by 16-bytes. Switch from stdio to
open/read/lseek syscalls for similarity with the symbol-elf version of
the function and so that later changes can alter then open flags.

Fixes: fef8f648bb ("perf symbol: Fix use-after-free in filename__read_build_id")
Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250823000024.724394-2-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-09-04 15:31:43 +02:00
..
arch perf tools: Fix up some comments and code to properly use the event_source bus 2025-04-07 10:08:36 +02:00
bench perf bench: Fix perf bench syscall loop count 2025-04-10 14:39:23 +02:00
check-header_ignore_hunks/lib
dlfilters
Documentation perf tools: Fix up some comments and code to properly use the event_source bus 2025-04-07 10:08:36 +02:00
include/perf
jvmti
pmu-events perf vendor events arm64 AmpereOneX: Fix frontend_bound calculation 2025-04-10 14:39:26 +02:00
python
scripts perf scripts python: exported-sql-viewer.py: Fix pattern matching with Python 3 2025-06-19 15:32:06 +02:00
tests perf tests bp_account: Fix leaked file descriptor 2025-08-15 12:13:54 +02:00
trace
ui perf ui browser hists: Set actions->thread before calling do_zoom_thread() 2025-06-19 15:32:04 +02:00
util perf symbol-minimal: Fix ehdr reading in filename__read_build_id 2025-09-04 15:31:43 +02:00
.gitignore perf tools: Remove libtraceevent in .gitignore 2025-08-15 12:13:57 +02:00
Build
builtin-annotate.c
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-c2c.c
builtin-check.c
builtin-config.c
builtin-daemon.c
builtin-data.c
builtin-diff.c
builtin-evlist.c
builtin-ftrace.c
builtin-help.c
builtin-inject.c perf inject: Fix use without initialization of local variables 2025-02-08 09:57:33 +01:00
builtin-kallsyms.c
builtin-kmem.c
builtin-kvm.c
builtin-kwork.c
builtin-list.c
builtin-lock.c perf lock: Fix parse_lock_type which only retrieve one lock flag 2025-02-08 09:57:35 +01:00
builtin-mem.c
builtin-probe.c
builtin-record.c perf record: Fix incorrect --user-regs comments 2025-06-19 15:32:08 +02:00
builtin-report.c perf report: Switch data file correctly in TUI 2025-04-10 14:39:22 +02:00
builtin-sched.c perf sched: Fix memory leaks in 'perf sched latency' 2025-08-15 12:13:52 +02:00
builtin-script.c
builtin-stat.c perf tools: Fix up some comments and code to properly use the event_source bus 2025-04-07 10:08:36 +02:00
builtin-timechart.c
builtin-top.c perf top: Don't complain about lack of vmlinux when not resolving some kernel samples 2025-02-08 09:57:31 +01:00
builtin-trace.c perf trace: Set errpid to false for rseq and set_robust_list 2025-06-19 15:32:08 +02:00
builtin-version.c
builtin.h
check-headers.sh
command-list.txt
CREDITS
design.txt
Makefile
Makefile.config perf build: Warn when libdebuginfod devel files are not available 2025-06-19 15:32:04 +02:00
Makefile.perf perf tests: Fix 'perf report' tests installation 2025-06-19 15:32:06 +02:00
MANIFEST perf MANIFEST: Add arch/*/include/uapi/asm/bpf_perf_event.h to the perf tarball 2025-02-08 09:57:32 +01:00
perf-archive.sh
perf-completion.sh
perf-iostat.sh
perf-read-vdso.c
perf-sys.h
perf.c
perf.h