Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp726512pxb; Fri, 21 Jan 2022 01:38:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGpGNqHEn/4MI21XMIq7rRL9frODYkU9QhIkHY6kNAUowfUdS6jCsdJ/ErRWg1m7HsXseO X-Received: by 2002:a63:3808:: with SMTP id f8mr2355555pga.186.1642757927647; Fri, 21 Jan 2022 01:38:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642757927; cv=none; d=google.com; s=arc-20160816; b=D5OBN04KP+qfDVJJoxIjNHzRLPNVABu+DeJF4NvCA4v1Kg2XUXia5fwiQotz+S6vg8 Dv47Ee0+mPAVcpdtZ9wOu7ribWSKm9ORzzfwTRub8IL36mfroWBMzxh4hWTYLdpXuil5 JRld1u0uPf7vKEdU6ltaqu6TRoYBnJTkV97bswYIzI2UR8aGY5AKH4s2l1LiFUgLhGoy 2tHtJxrs7JAkOBRxpa/xHWFv+FtypcnUpOHSR4SOSJ5YbJaMuitYbj36SCUYfQQ0ylDM BHw/xsibk63jSCLnYtsq7+2pegwyE98NLYnuMfLPinuvfLEJovQM4BtUdmyXvBw+PvXz ym3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=fIjGoioz1ktw+V2nDlWEmosZi3TFcipP21grgpN+1V0=; b=MxwzMCR8OPWMzJcst6Ym+pgKJa8uCewEf1VjnSIxFzUt/5ndIVplCCdER86QF/24TG ATJiUwIDedmWUAm5OI1OB3a2FWohNLw0rthMm/0wFGIdFMphDRrM0zMD1Ncc8pxd5IuI y3JbUo1Wwgxkph57+1iWRksWn8H3iwXz4A5/2/eugZ+nMHVtrxfha3ngIOlbOZLXYDYO xJHNmYyYNr1DTJ5ll/RblWKiNWig+IJe3Yt7UaPIppFPuddJ8s3OLKXUt45pb6adDuYh pp+dCmHihK9AmN0M/pohQ1IVqapcrGR4QeWxrI0ZDFtXndKRNQhxC2i4FVvb9otfikNI mBLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=gaY5uJ1o; dkim=neutral (no key) header.i=@suse.de header.b=p9rAbPEH; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d11si6276036pgg.106.2022.01.21.01.38.33; Fri, 21 Jan 2022 01:38:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=gaY5uJ1o; dkim=neutral (no key) header.i=@suse.de header.b=p9rAbPEH; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233791AbiARWMI (ORCPT + 99 others); Tue, 18 Jan 2022 17:12:08 -0500 Received: from smtp-out1.suse.de ([195.135.220.28]:54080 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349740AbiARWMF (ORCPT ); Tue, 18 Jan 2022 17:12:05 -0500 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 23425212B8; Tue, 18 Jan 2022 22:12:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1642543923; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fIjGoioz1ktw+V2nDlWEmosZi3TFcipP21grgpN+1V0=; b=gaY5uJ1oI+p1+NKVysvm/SE7c0eXXqunxjC+rxHTQHojHvA7zr2W7gHvJOoZS9/2xHSCnR rMaR2UlYk8nfdUOWbFbmwKFgK4Rm6H4bRj3KE4SqhEAx77obgtmv5rmtTQStTD9xRRMjgR wNsNY2TaJN8wgqvvDz2LjErHKNiYXZg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1642543923; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fIjGoioz1ktw+V2nDlWEmosZi3TFcipP21grgpN+1V0=; b=p9rAbPEHAH/GkzjdVt4UYmnDTTwJxkP7+H4//IGoW754UKGW8MHbFx8xPdRTBSnNxqzIn5 w5+6i52UNNI6iLBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 64CC713AD9; Tue, 18 Jan 2022 22:12:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id xZtaCDA752EeGQAAMHmgww (envelope-from ); Tue, 18 Jan 2022 22:12:00 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Petr Vorel" Cc: linux-nfs@vger.kernel.org, "J. Bruce Fields" , "Chuck Lever" , "Trond Myklebust" , "Anna Schumaker" , "Steve Dickson" , "Nikita Yushchenko" , ltp@lists.linux.it Subject: Re: LTP nfslock01 test failing on NFS v3 (lockd: cannot monitor 10.0.0.2) In-reply-to: References: Date: Wed, 19 Jan 2022 09:11:57 +1100 Message-id: <164254391708.24166.6930987548904227011@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, 19 Jan 2022, Petr Vorel wrote: > Hi all, >=20 > this is a test failure posted by Nikita Yushchenko [1]. LTP NFS test nfsloc= k01 > looks to be failing on NFS v3: >=20 > "not unsharing /var makes AF_UNIX socket for host's rpcbind to become avail= able > inside ltpns. Then, at nfs3 mount time, kernel creates an instance of lockd= for > ltpns, and ports for that instance leak to host's rpcbind and overwrite por= ts > for lockd already active for root namespace. This breaks nfs3 file locking." "not unsharing /var" .... can this be fixed by simply unsharing /var? Or is that not simple? On could easily argue that RPCBIND_SOCK_PATHNAME in the kernel should be changed to "/run/rpcbind.sock". Does this test suite unshare /run ?? BTW, your email contains [1], [2], etc which suggests there are links somewhere - but there aren't. NeilBrown