diff options
| author | Ian Rogers <irogers@google.com> | 2025-08-22 17:00:23 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-09-04 16:55:30 +0200 |
| commit | 8d947540ee118ae3bdb14888c7d989580ffc8b35 (patch) | |
| tree | 2d3cc0bba232a7b5ff79fa745391fa8fceff86a8 /include/linux/virtio_config.h | |
| parent | fbd4cf7ee4db65ef36796769fe978e9eba6f0de4 (diff) | |
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: fef8f648bb47 ("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>
Diffstat (limited to 'include/linux/virtio_config.h')
0 files changed, 0 insertions, 0 deletions
