Ian Rogers
20c9ccffcc
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 e0e4e0b8b7 ("perf maps: Add
missing map__set_kmap_maps() when replacing a kernel map") and commit
25d9c0301d ("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: e0e4e0b8b7 ("perf maps: Add missing map__set_kmap_maps() when replacing a kernel map")
Fixes: 25d9c0301d ("perf maps: Set the kmaps for newly created/added kernel maps")
Signed-off-by: Ian Rogers <irogers@google.com >
Signed-off-by: Namhyung Kim <namhyung@kernel.org >
2025-09-15 10:03:23 -07:00
..
2025-07-14 22:51:58 -07:00
2025-06-16 14:05:11 -03:00
2025-07-25 10:37:13 -07:00
2025-06-20 13:14:07 -07:00
2025-06-20 13:14:07 -07:00
2025-07-25 10:37:56 -07:00
2025-06-26 15:15:48 -07:00
2025-06-26 15:15:48 -07:00
2025-07-25 10:37:56 -07:00
2025-07-25 10:37:58 -07:00
2025-07-25 10:37:58 -07:00
2025-07-14 22:51:58 -07:00
2025-06-26 10:31:05 -07:00
2025-09-02 14:55:05 -07:00
2025-06-20 14:48:49 -07:00
2025-08-07 09:03:44 -07:00
2025-06-09 11:18:17 -07:00
2025-09-02 14:55:32 -07:00
2025-07-25 10:37:56 -07:00
2025-07-26 16:31:43 -07:00
2025-08-25 15:07:18 -07:00
2025-07-25 10:37:13 -07:00
2025-06-09 11:18:17 -07:00
2025-06-09 11:18:17 -07:00
2025-07-11 12:36:40 -07:00
2025-07-11 12:36:40 -07:00
2025-06-11 13:40:31 -07:00
2025-07-25 10:37:56 -07:00
2025-07-25 10:37:56 -07:00
2025-06-09 21:38:08 -07:00
2025-07-25 10:37:57 -07:00
2025-06-25 10:59:19 -07:00
2025-08-25 15:07:18 -07:00
2025-07-25 10:37:13 -07:00
2025-07-25 10:37:58 -07:00
2025-06-30 09:10:50 -07:00
2025-06-25 11:12:35 -07:00
2025-07-25 10:37:56 -07:00
2025-07-25 10:37:56 -07:00
2025-08-25 15:07:18 -07:00
2025-07-25 10:37:58 -07:00
2025-07-25 10:37:58 -07:00
2025-07-25 10:37:13 -07:00
2025-07-25 10:37:58 -07:00
2025-07-24 13:41:34 -07:00
2025-07-25 10:37:56 -07:00
2025-07-26 16:31:43 -07:00
2025-07-25 10:37:56 -07:00
2025-07-24 13:41:35 -07:00
2025-07-22 17:47:22 -07:00
2025-07-02 19:01:54 -07:00
2025-07-25 10:37:57 -07:00
2025-06-25 12:37:29 -07:00
2025-07-25 10:37:58 -07:00
2025-07-25 10:37:58 -07:00
2025-07-11 12:36:39 -07:00
2025-07-02 19:05:26 -07:00
2025-07-25 10:37:58 -07:00
2025-07-25 10:37:56 -07:00
2025-07-25 10:37:57 -07:00
2025-07-25 10:37:57 -07:00
2025-07-25 10:37:56 -07:00
2025-07-25 10:37:56 -07:00
2025-09-15 10:03:23 -07:00
2025-07-24 13:41:36 -07:00
2025-07-11 12:36:40 -07:00
2025-07-26 16:31:43 -07:00
2025-07-26 16:31:43 -07:00
2025-07-26 16:31:43 -07:00
2025-07-26 16:31:43 -07:00
2025-07-26 16:31:43 -07:00
2025-07-26 16:31:43 -07:00
2025-06-26 10:51:31 -07:00
2025-07-26 16:31:43 -07:00
2025-07-24 13:41:35 -07:00
2025-07-26 16:31:43 -07:00
2025-07-26 16:31:43 -07:00
2025-07-25 10:37:57 -07:00
2025-07-25 10:37:13 -07:00
2025-07-25 10:37:55 -07:00
2025-07-30 10:15:17 -07:00
2025-07-25 10:37:56 -07:00
2025-07-25 10:37:56 -07:00
2025-07-25 10:37:56 -07:00
2025-07-25 10:37:58 -07:00
2025-07-25 10:37:58 -07:00
2025-07-25 10:37:57 -07:00
2025-06-26 10:51:40 -07:00
2025-06-26 10:51:40 -07:00
2025-07-25 10:37:58 -07:00
2025-07-25 10:37:58 -07:00
2025-07-11 12:36:40 -07:00
2025-07-11 12:36:40 -07:00
2025-06-24 10:27:49 -07:00
2025-07-11 12:36:40 -07:00
2025-07-23 10:48:29 -07:00
2025-07-24 13:41:35 -07:00
2025-07-11 12:36:40 -07:00
2025-07-25 10:37:56 -07:00
2025-09-04 16:37:35 -07:00
2025-08-25 15:07:18 -07:00
2025-08-25 15:07:18 -07:00
2025-08-25 15:07:18 -07:00
2025-08-25 15:07:18 -07:00
2025-06-20 14:48:49 -07:00
2025-06-09 11:18:18 -07:00
2025-06-09 11:18:18 -07:00
2025-06-09 11:18:18 -07:00
2025-06-09 11:18:18 -07:00
2025-06-11 13:40:31 -07:00
2025-06-11 13:40:31 -07:00
2025-07-24 13:41:35 -07:00
2025-07-24 13:41:35 -07:00
2025-07-25 10:37:56 -07:00
2025-06-20 14:48:56 -07:00
2025-06-09 11:18:18 -07:00
2025-06-09 11:18:18 -07:00
2025-07-26 16:31:43 -07:00
2025-07-26 16:31:43 -07:00
2025-06-26 10:31:05 -07:00
2025-06-24 10:27:50 -07:00