diff options
author | Ian Rogers <[email protected]> | 2024-05-21 09:51:07 -0700 |
---|---|---|
committer | Namhyung Kim <[email protected]> | 2024-06-06 23:30:58 -0700 |
commit | 0b90dfda222e38b7ca8dad6e098e36f5186f0b94 (patch) | |
tree | f9c185e376b377633e96a000368af05a188e1dc7 /tools/perf/scripts/python | |
parent | a9700511fd50b9203a9a9d61b4874eb28571d5da (diff) |
perf maps: Fix use after free in __maps__fixup_overlap_and_insert
In the case 'before' and 'after' are broken out from pos,
maps_by_address may be changed by __maps__insert, as such it needs
re-reading.
Don't ignore the return value from __maps_insert.
Fixes: 659ad3492b91 ("perf maps: Switch from rbtree to lazily sorted array for addresses")
Signed-off-by: Ian Rogers <[email protected]>
Reviewed-by: James Clark <[email protected]>
Cc: Steinar H . Gunderson <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions