diff options
| author | Ian Rogers <[email protected]> | 2025-09-14 18:18:08 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2025-09-15 17:03:23 +0000 |
| commit | 20c9ccffccd61b37325a0519fb6d485caeecf7fa (patch) | |
| tree | 2516272349b01ba05f6e17af62108cf989fa36d3 /fs/btrfs/delayed-inode.c | |
| parent | perf lock: Provide a host_env for session new (diff) | |
| download | kernel-20c9ccffccd61b37325a0519fb6d485caeecf7fa.tar.gz kernel-20c9ccffccd61b37325a0519fb6d485caeecf7fa.zip | |
perf maps: Ensure kmap is set up for all inserts
__maps__fixup_overlap_and_insert may split or directly insert a map,
when doing this the map may need to have a kmap set up for the sake of
the kmaps. The missing kmap set up fails the check_invariants test in
maps, later "Internal error" reports from map__kmap and ultimately
causes segfaults.
Similar fixes were added in commit e0e4e0b8b7fa ("perf maps: Add
missing map__set_kmap_maps() when replacing a kernel map") and commit
25d9c0301d36 ("perf maps: Set the kmaps for newly created/added kernel
maps") but they missed cases. To try to reduce the risk of this,
update the kmap directly following any manual insert. This identified
another problem in maps__copy_from.
Fixes: e0e4e0b8b7fa ("perf maps: Add missing map__set_kmap_maps() when replacing a kernel map")
Fixes: 25d9c0301d36 ("perf maps: Set the kmaps for newly created/added kernel maps")
Signed-off-by: Ian Rogers <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'fs/btrfs/delayed-inode.c')
0 files changed, 0 insertions, 0 deletions
