From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3BE612FE560 for ; Sat, 28 Feb 2026 16:34:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772296497; cv=none; b=D7AWkk4CGoDS8akKNNntXeEGGkVz3H5kYntjXUBw0BvhXCsKgsda/K9+uaZGKDMYCbtn38GXAdpUQvWDXZK9lW+CEHOPPAVOJAVGNNlGgjfKsKEoOBuymbQX3+RUo/ZFp1g6mAvAnWDMsXnJ6Mi9DSoi7VcfncrFiNt4l4cRQwY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772296497; c=relaxed/simple; bh=fgS3XKoRBtO4Kw/IUZxmMPfxFYkQ106AvgnXu3BYWIo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=F4RshQPEec8r7Oq2zSQCMnTHkHIhArrCl5k9OOh6hBUEeOl6XpLsQjONMPYesVDUlucKpd0CWGbKF1FrsBZ0VGUofkYgtYigGVBor0bb6mhmrDlFIfNw9ov5iNZsGS8qzemPrmBOhnA+v3/zbHdx0EhXbLuSmhUQgHNkAkkGJQY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Vn1XV7Kj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Vn1XV7Kj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 799F2C116D0; Sat, 28 Feb 2026 16:34:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772296496; bh=fgS3XKoRBtO4Kw/IUZxmMPfxFYkQ106AvgnXu3BYWIo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Vn1XV7KjbsJOh4dlYN38GqivdfCJCFS1dJEMD6Nn+MZBLrCQ3jUkDgI9znyMmBiz7 9tl8PO3iPWHOQlnu7MkgzN94nk03CeYrW7B23FwAvKjPqzLxDv7pmbqxoFli+yo8Mb ZIDU3CPAHsU3Cwn6SHZ8vMxsZ49650zVEYK7LoQxPRUJYVj0R+y/iQRdOKXuD2O+S/ Kf0UfaagpDIkDKYmFAKrZEzKL4PPAZ6QwW/8g+QvPr0OYtB1A5w06Ds7IB799aOrkJ Dr5adYcWJnabhmoSHO0c9u+qFIg+0qM5gpKUUlrP1X3w9c22UQtzcDAHADcSSxHoP/ DKajWRBFjzKMw== Message-ID: Date: Sat, 28 Feb 2026 09:34:55 -0700 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH iproute2] ip/netns: avoid redundant mounts Content-Language: en-US To: Chen Linxuan Cc: Stephen Hemminger , netdev@vger.kernel.org, "Eric W. Biederman" , Lennart Poettering , Luca Boccassi References: <20260210-netns-redundant-mount-v1-1-0b1ebfc1c79f@black-desk.cn> <6fa8c88e-d1fb-42ba-a0a1-f8aa6802b454@kernel.org> From: David Ahern In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 2/27/26 6:36 PM, Chen Linxuan wrote: > On Sat, Feb 28, 2026 at 4:30 AM David Ahern wrote: >> >> On 2/24/26 6:21 PM, Chen Linxuan wrote: >>>> with this patch I am still seeing 2 entries: >>>> >>>> $ sudo ./ip netns add blah >>>> $ cat /proc/self/mountinfo | grep blah >>>> 337 92 0:4 net:[4026532418] /run/netns/blah rw shared:344 - nsfs nsfs rw >>>> 338 28 0:4 net:[4026532418] /run/netns/blah rw shared:344 - nsfs nsfs rw >>> >>> It seems like your old `ip` might have create the /run/netns mount point. >>> After remove all netns then umount /run/netns, and ip netns add blah again. >>> You should see only one entries. >> >> Fair point. I no longer have the patch, so send it again and I will try >> a test in a new VM. > > Why has this patch been applied? > https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=82c8b9fe511e6c503ef60c16eebc7a715c3189eb > > What is going on here? > ugh. my mistake after testing and noting the above; I did not drop the commit. I'll re-test when I get some time.