From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751961AbdFHVhM (ORCPT ); Thu, 8 Jun 2017 17:37:12 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:55018 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751720AbdFHVhK (ORCPT ); Thu, 8 Jun 2017 17:37:10 -0400 Date: Thu, 8 Jun 2017 22:37:07 +0100 From: Al Viro To: Andrei Vagin Cc: Kirill Tkhai , LKML , linux-fsdevel , "Eric W. Biederman" Subject: Re: Mount structures are leaked Message-ID: <20170608213707.GY6365@ZenIV.linux.org.uk> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 08, 2017 at 01:49:38PM -0700, Andrei Vagin wrote: > Hello, > > We found that mount structures are leaked on the upstream linux kernel: > > [root@zdtm criu]# cat /proc/slabinfo | grep mnt > mnt_cache 36456 36456 384 42 4 : tunables 0 0 > 0 : slabdata 868 868 0 > [root@zdtm criu]# python test/zdtm.py run -t zdtm/static/env00 > --iter 10 -f ns > === Run 1/1 ================ zdtm/static/env00 > > ========================= Run zdtm/static/env00 in ns ========================== > Start test > ./env00 --pidfile=env00.pid --outfile=env00.out --envname=ENV_00_TEST > Run criu dump > Run criu restore > Run criu dump > .... > Run criu restore > Send the 15 signal to 339 > Wait for zdtm/static/env00(339) to die for 0.100000 > Removing dump/zdtm/static/env00/31 > ========================= Test zdtm/static/env00 PASS ========================== > [root@zdtm criu]# cat /proc/slabinfo | grep mnt > mnt_cache 36834 36834 384 42 4 : tunables 0 0 > 0 : slabdata 877 877 0 > > [root@zdtm linux]# git describe HEAD > v4.12-rc4-122-gb29794e > > [root@zdtm ~]# uname -a > Linux zdtm.openvz.org 4.12.0-rc4+ #2 SMP Thu Jun 8 20:49:01 CEST 2017 > x86_64 x86_64 x86_64 GNU/Linux For fsck sake... Andrei, you *do* know better. 1) I have no idea what setup do you have - e.g. whether you have mount event propagation set up in a way that ends up with mounts accumulating somewhere. 2) I have no idea what those scripts are and names don't look descriptive enough to google for them in hope to find out (nor the version of those scripts, if there had been more than one) 3) I have no idea which config do you have. 4) I have no idea which kernel is that about, other than "rc4 with something on top of it" 5) I have no idea how that had behaved on other kernels (or how that was supposed to behave in the first place) So it boils down to "we've done something, it has given a result we didn't expect, the kernel must've been broken". About the only thing I can suggest at that point is telnet bofh.jeffballard.us 666 and see if it provides an inspiration...