aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorAndrea Arcangeli <[email protected]>2019-08-05 17:34:04 +0000
committerGreg Kroah-Hartman <[email protected]>2019-08-05 18:34:11 +0000
commitcc798c83898ea0a77fcaa1a92afda35c3c3ded74 (patch)
tree8e292bb12576c6411fd06256d9c1df25f0a6fe96 /tools/perf/scripts/python/failed-syscalls-by-pid.py
parentdriver core: Fix use-after-free and double free on glue directory (diff)
downloadkernel-cc798c83898ea0a77fcaa1a92afda35c3c3ded74.tar.gz
kernel-cc798c83898ea0a77fcaa1a92afda35c3c3ded74.zip
kernfs: fix memleak in kernel_ops_readdir()
If getdents64 is killed or hits on segfault, it'll leave cgroups directories in sysfs pinned leaking memory because the kernfs node won't be freed on rmdir and the parent neither. Repro: # for i in `seq 1000`; do mkdir $i; done # rmdir * # for i in `seq 1000`; do mkdir $i; done # rmdir * # for i in `seq 1000`; do while :; do ls $i/ >/dev/null; done & done # while :; do killall ls; done kernfs_node_cache in /proc/slabinfo keeps going up as expected. Signed-off-by: Andrea Arcangeli <[email protected]> Signed-off-by: Tejun Heo <[email protected]> Cc: [email protected] # goes way back to original sysfs days Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions