diff options
| author | Ian Rogers <[email protected]> | 2025-08-23 00:00:23 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2025-08-25 22:07:18 +0000 |
| commit | ba0b7081f7a521d7c28b527a4f18666a148471e7 (patch) | |
| tree | 6070b3859baadd6ec56575b52b549c432edab816 /tools/lib/subcmd/help.c | |
| parent | tools headers: Sync uapi/linux/vhost.h with the kernel source (diff) | |
| download | kernel-ba0b7081f7a521d7c28b527a4f18666a148471e7.tar.gz kernel-ba0b7081f7a521d7c28b527a4f18666a148471e7.zip | |
perf symbol-minimal: Fix ehdr reading in filename__read_build_id
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/lib/subcmd/help.c')
0 files changed, 0 insertions, 0 deletions
