diff options
author | Ian Rogers <irogers@google.com> | 2025-08-22 17:00:23 -0700 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2025-08-25 15:07:18 -0700 |
commit | ba0b7081f7a521d7c28b527a4f18666a148471e7 (patch) | |
tree | 6070b3859baadd6ec56575b52b549c432edab816 /scripts/lib/kdoc/kdoc_re.py | |
parent | f79a62f4b3c750759e60a402e8fe5180fc5771f0 (diff) |
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 <irogers@google.com>
Link: https://lore.kernel.org/r/20250823000024.724394-2-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions