aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorQian Cai <[email protected]>2019-04-06 22:59:01 +0000
committerLinus Torvalds <[email protected]>2019-04-08 05:23:12 +0000
commitfcf88917dd435c6a4cb2830cb086ee58605a1d85 (patch)
treeec4e3e2411c268134933c6a0fc759f057d42161e /tools/perf/scripts/python/stackcollapse.py
parentLinux 5.1-rc4 (diff)
downloadkernel-fcf88917dd435c6a4cb2830cb086ee58605a1d85.tar.gz
kernel-fcf88917dd435c6a4cb2830cb086ee58605a1d85.zip
slab: fix a crash by reading /proc/slab_allocators
The commit 510ded33e075 ("slab: implement slab_root_caches list") changes the name of the list node within "struct kmem_cache" from "list" to "root_caches_node", but leaks_show() still use the "list" which causes a crash when reading /proc/slab_allocators. You need to have CONFIG_SLAB=y and CONFIG_MEMCG=y to see the problem, because without MEMCG all slab caches are root caches, and the "list" node happens to be the right one. Fixes: 510ded33e075 ("slab: implement slab_root_caches list") Signed-off-by: Qian Cai <[email protected]> Reviewed-by: Tobin C. Harding <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions