]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf maps: Fix copy_from that can break sorted by name order
authorIan Rogers <irogers@google.com>
Wed, 8 Apr 2026 02:08:38 +0000 (19:08 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 8 Apr 2026 17:28:49 +0000 (10:28 -0700)
commitf552b132e4d5248715828e7e5c2bf7889bf05b2e
tree822bc82b006eec52f91755701198eb99e53d7562
parentc4f3ff3289380437d26177e8f2fe4b7507816ee3
perf maps: Fix copy_from that can break sorted by name order

When an parent is copied into a child the name array is populated in
address not name order. Make sure the name array isn't flagged as sorted.

Fixes: 659ad3492b91 ("perf maps: Switch from rbtree to lazily sorted array for addresses")
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/maps.c