linux-yocto/tools/perf
Ian Rogers 8d947540ee 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 16:55:30 +02:00
..
arch perf pmu intel: Adjust cpumaks for sub-NUMA clusters on graniterapids 2025-05-22 23:15:48 -03:00
bench perf bench futex: Fix prctl include in musl libc 2025-06-17 18:29:42 -03:00
check-header_ignore_hunks/lib
dlfilters
Documentation perf mem: Document new output fields (op, cache, mem, dtlb, snoop) 2025-06-16 14:05:10 -03:00
include/perf
jvmti
pmu-events perf metricgroup: Binary search when resolving referred to metrics 2025-05-13 16:36:51 -03:00
python perf python: Add counting.py as example for counting perf events 2025-05-22 22:24:58 -03:00
scripts perf scripts python: exported-sql-viewer.py: Fix pattern matching with Python 3 2025-05-12 14:18:16 -03:00
tests perf tests bp_account: Fix leaked file descriptor 2025-08-15 16:39:07 +02:00
trace perf beauty: Update copy of linux/socket.h with the kernel sources 2025-06-16 14:05:11 -03:00
ui perf mem: Show absolute percent in mem_stat output 2025-05-28 14:42:20 -03:00
util perf symbol-minimal: Fix ehdr reading in filename__read_build_id 2025-09-04 16:55:30 +02:00
.gitignore perf tools: Remove libtraceevent in .gitignore 2025-08-15 16:39:12 +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 perf ftrace: Use process/session specific trace settings 2025-05-20 13:11:09 -03:00
builtin-help.c
builtin-inject.c
builtin-kallsyms.c
builtin-kmem.c
builtin-kvm.c
builtin-kwork.c
builtin-list.c perf list: Display the PMU name associated with a perf metric in JSON 2025-05-13 17:06:14 -03:00
builtin-lock.c perf lock contention: Reject more than 10ms delays for safety 2025-05-31 08:45:24 -03:00
builtin-mem.c
builtin-probe.c
builtin-record.c perf record: Fix incorrect --user-regs comments 2025-05-28 14:10:56 -03:00
builtin-report.c perf mem: Display sort order only if it's available 2025-05-28 14:41:42 -03:00
builtin-sched.c perf sched: Fix memory leaks in 'perf sched latency' 2025-08-15 16:39:04 +02:00
builtin-script.c perf script: Display off-cpu samples correctly 2025-05-05 21:51:31 -03:00
builtin-stat.c perf metricgroup: Binary search when resolving referred to metrics 2025-05-13 16:36:51 -03:00
builtin-timechart.c
builtin-top.c perf evlist: Make uniquifying counter names consistent 2025-05-14 09:36:21 -03:00
builtin-trace.c perf trace: Set errpid to false for rseq and set_robust_list 2025-05-29 22:09:37 -03:00
builtin-version.c
builtin.h
check-headers.sh tools arch amd ibs: Sync ibs.h with the kernel sources 2025-06-17 16:53:22 -03:00
command-list.txt
CREDITS
design.txt
Makefile
Makefile.config Merge remote-tracking branch 'torvalds/master' into perf-tools-next 2025-05-07 12:51:38 -03:00
Makefile.perf perf tests: Fix 'perf report' tests installation 2025-05-09 14:10:08 -03:00
MANIFEST perf tools: Fix arm64 source package build 2025-05-13 17:26:35 -03:00
perf-archive.sh
perf-completion.sh
perf-iostat.sh
perf-read-vdso.c
perf-sys.h
perf.c
perf.h