public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3 stable 4.9] proc/sysctl: prune stale dentries during unregistering
@ 2018-08-13  9:08 Mike Rapoport
  2018-08-13  9:08 ` [PATCH 1/3] " Mike Rapoport
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Mike Rapoport @ 2018-08-13  9:08 UTC (permalink / raw)
  To: stable; +Cc: Mike Rapoport, James Bottomley

Hi,

These patches fix a memory leak in per-cpu areas in v4.9.y

The following command sequence

while :; do
        c=$(docker create busybox)
        docker start $c
        docker stop $c
        docker rm $c
done

causes the number of pcpu_get_vm_area entries in /proc/vmallocinfo to grow.

The commit d6cffbbe9a7e ("proc/sysctl: prune stale dentries during
unregistering") fixes the issue and the commits ace0c791e6c3 ("proc/sysctl:
Don't grab i_lock under sysctl_lock.") and 2fd1d2c4ceb2 ("proc: Fix
proc_sys_prune_dcache to hold a sb reference") are the follow-up fixups.

I've also checked v4.4 and the issue does not appear there.

Eric W. Biederman (2):
  proc/sysctl: Don't grab i_lock under sysctl_lock.
  proc: Fix proc_sys_prune_dcache to hold a sb reference

Konstantin Khlebnikov (1):
  proc/sysctl: prune stale dentries during unregistering

 fs/proc/inode.c        |  3 +-
 fs/proc/internal.h     |  7 +++--
 fs/proc/proc_sysctl.c  | 83 +++++++++++++++++++++++++++++++++++++++-----------
 include/linux/sysctl.h |  1 +
 4 files changed, 74 insertions(+), 20 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-08-13 20:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-13  9:08 [PATCH 0/3 stable 4.9] proc/sysctl: prune stale dentries during unregistering Mike Rapoport
2018-08-13  9:08 ` [PATCH 1/3] " Mike Rapoport
2018-08-13  9:08 ` [PATCH 2/3] proc/sysctl: Don't grab i_lock under sysctl_lock Mike Rapoport
2018-08-13  9:08 ` [PATCH 3/3] proc: Fix proc_sys_prune_dcache to hold a sb reference Mike Rapoport
2018-08-13  9:23 ` [PATCH 0/3 stable 4.9] proc/sysctl: prune stale dentries during unregistering Greg KH
2018-08-13  9:24   ` Greg KH
2018-08-13 10:04   ` Mike Rapoport
2018-08-13 17:13     ` Greg KH
2018-08-13 17:38       ` Mike Rapoport

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox