linux-yocto/tools
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
..
accounting
arch x86/rdrand: Disable RDSEED on AMD Cyan Skillfish 2025-07-08 21:33:26 +02:00
bootconfig
bpf bpftool: Fix JSON writer resource leak in version command 2025-08-20 18:41:18 +02:00
build
certs
cgroup memcg_slabinfo: Fix use of PG_slab 2025-08-15 16:38:50 +02:00
counter
crypto
debugging
firewire
firmware
gpio
hv tools/hv: fcopy: Fix irregularities with size of ring buffer 2025-07-15 06:25:33 +00:00
iio
include tools/nolibc: fix spelling of FD_SETBITMASK in FD_* macros 2025-08-20 18:41:42 +02:00
kvm/kvm_stat
laptop
leds
lib libbpf: Fix warning in calloc() usage 2025-08-20 18:41:07 +02:00
memory-model
mm
net tools: ynl: fix mixing ops and notifications on one socket 2025-06-19 08:37:39 -07:00
objtool objtool/LoongArch: Get table size correctly if LTO is enabled 2025-08-28 16:34:48 +02:00
pcmcia
perf perf symbol-minimal: Fix ehdr reading in filename__read_build_id 2025-09-04 16:55:30 +02:00
power tools/power turbostat: Handle cap_get_proc() ENOSYS 2025-08-20 18:41:31 +02:00
rcu
sched_ext
scripts tools/build: Fix s390(x) cross-compilation with clang 2025-08-20 18:40:59 +02:00
sound
spi
testing selftests: mptcp: sockopt: fix C23 extension warning 2025-08-28 16:34:32 +02:00
thermal
time
tracing rtla: Check pkg-config install 2025-09-04 16:55:28 +02:00
usb
verification verification/dot2k: Make a separate dot2k_templates/Kconfig_container 2025-08-20 18:41:05 +02:00
virtio
wmi
workqueue
writeback
Makefile