lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 22 Mar 2019 15:30:40 -0700
From:   tip-bot for Changbin Du <>
Subject: [tip:perf/urgent] perf map: Remove map from 'names' tree in

Commit-ID:  b49265e04410b97b31a5ee66ef6782c1b2d6cd2c
Author:     Changbin Du <>
AuthorDate: Sat, 16 Mar 2019 16:05:50 +0800
Committer:  Arnaldo Carvalho de Melo <>
CommitDate: Tue, 19 Mar 2019 16:52:05 -0300

perf map: Remove map from 'names' tree in __maps__remove()

There are two trees for each map inserted by maps__insert(), so remove
it from the 'names' tree in __maps__remove().

Detected with gcc's ASan.

Signed-off-by: Changbin Du <>
Reviewed-by: Jiri Olsa <>
Cc: Alexei Starovoitov <>
Cc: Daniel Borkmann <>
Cc: Eric Saint-Etienne <>
Cc: Namhyung Kim <>
Cc: Peter Zijlstra <>
Cc: Steven Rostedt (VMware) <>
Fixes: 1e6285699b30 ("perf symbols: Fix slowness due to -ffunction-section")
Signed-off-by: Arnaldo Carvalho de Melo <>
 tools/perf/util/map.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c
index fbeb0c6efaa6..64bea5eb8bf6 100644
--- a/tools/perf/util/map.c
+++ b/tools/perf/util/map.c
@@ -917,6 +917,9 @@ static void __maps__remove(struct maps *maps, struct map *map)
 	rb_erase_init(&map->rb_node, &maps->entries);
+	rb_erase_init(&map->rb_node_name, &maps->names);
+	map__put(map);
 void maps__remove(struct maps *maps, struct map *map)

Powered by blists - more mailing lists