diff options
| author | Vasily Averin <[email protected]> | 2017-11-15 05:47:02 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-11-15 08:47:27 +0000 |
| commit | 0e18dd12064e07519f7cbff4149ca7fff620cbed (patch) | |
| tree | 443be827dfc1bebf5eb95dcd2f8608a6fa4a2463 /tools/perf/scripts/python/sctop.py | |
| parent | perf/x86/intel: Hide TSX events when RTM is not supported (diff) | |
| download | kernel-0e18dd12064e07519f7cbff4149ca7fff620cbed.tar.gz kernel-0e18dd12064e07519f7cbff4149ca7fff620cbed.zip | |
perf/core: Fix memory leak triggered by perf --namespace
perf with --namespace key leaks various memory objects including namespaces
4.14.0+
pid_namespace 1 12 2568 12 8
user_namespace 1 39 824 39 8
net_namespace 1 5 6272 5 8
This happen because perf_fill_ns_link_info() struct patch ns_path:
during initialization ns_path incremented counters on related mnt and dentry,
but without lost path_put nobody decremented them back.
Leaked dentry is name of related namespace,
and its leak does not allow to free unused namespace.
Signed-off-by: Vasily Averin <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Hari Bathini <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Fixes: commit e422267322cd ("perf: Add PERF_RECORD_NAMESPACES to include namespaces related info")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions
