Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1764086ybz; Thu, 16 Apr 2020 15:16:02 -0700 (PDT) X-Google-Smtp-Source: APiQypKYDo/zpjHgR+e6PAhdoju92WTaYbUreGQ7McpmRXGVoxvRXECIHFgUFdCuh7RrhzEsRXh/ X-Received: by 2002:a17:906:841a:: with SMTP id n26mr190095ejx.43.1587075362154; Thu, 16 Apr 2020 15:16:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587075362; cv=none; d=google.com; s=arc-20160816; b=EAQ297yRYOqpIklplVA7LZexS1XQtDKeV2vzgV23Uw3WAPAFlPvxCUQlQK8iJUYSS5 ZgGp/mwW+puqlq71HsXM/Xv4MWomAOm6ORJ1ZR0pt/8knOPO+uLGwerMlzTVj2DJUs6Y ruidTNBw9iaY5E95BL9VF21aiAz6wurSpOZMR+GwTJTuWL0TS9iIt3KcLHI+ERmwjH6Y MeC6ENKvn4fUpLXXgSLBFQvL//cssbNySVXRPlIEAknJMtyUMqVoMyNtMHnC+MqfmHF9 vGLCnvWIUJ/UGkUpf/nbG2JU3vYwaHfkYnxhzMBAFkxHVBbpbxoXH3CSo8srXOEtT0DQ 4G9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/MFSiPZA/EutToAWbqsdA6zHCvlNbqZOeCg+fGL6flk=; b=Y3SNlsaqNGoTwgX/F34euO/oPmH8pX5kiPZ2vt27t/jmXvxYchMcnsCJ44GP/4mXU+ 0yFXtyF3hf9WUyTICj7vqhFJTaas1rcACn0rk1+BoWpC24h/lyaR9qF79DSbP2BdzLOG bhHy/1tSI9WYmXPVtjJFDCWGMDg2YFONRGRWAV+nUfbik3R+mdxEkdRUFkubS8Zx3AAs 47nebIZupQxH05HU05q5Bn1sxHnbPQ5N+mTE3QYqEbuO4kKhyh6YyBKfPuPPZWLSHuDO UpmC8RVVkGx9DFMsAiyBcXozU90468+Cul7mgGR25RCsqnUCT+SKdf7x/prKpOqKK/kc oaaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bvtMqPtv; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w19si8753051edx.386.2020.04.16.15.15.03; Thu, 16 Apr 2020 15:16:02 -0700 (PDT) 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=@kernel.org header.s=default header.b=bvtMqPtv; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729182AbgDPWPA (ORCPT + 99 others); Thu, 16 Apr 2020 18:15:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:54116 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729164AbgDPWPA (ORCPT ); Thu, 16 Apr 2020 18:15:00 -0400 Received: from localhost.localdomain (c-68-36-133-222.hsd1.mi.comcast.net [68.36.133.222]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 23133218AC; Thu, 16 Apr 2020 22:15:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587075300; bh=ZAoqiSLYIHCPiPPHL49mECpuSjsGwo97DueDNKp4HSI=; h=From:To:Cc:Subject:Date:From; b=bvtMqPtvPFZh1sr5R+aZ70gmoVKJ8qgkeWllH287rnr2m1qmPsLsk9tsrzWt9FAXH tGjyY7kGPOkShwEerYN7qFIIX32jG9+Ob22IPIrLzu2bBIiNMrUAI6jAeDfxFhuzZK o6Y1VrSA5d/J8IQA5f7EIEL0ywisq0bYkHdKBcts= From: trondmy@kernel.org To: Steve Dickson Cc: linux-nfs@vger.kernel.org Subject: [PATCH 0/7] nfs-utils fixes Date: Thu, 16 Apr 2020 18:12:45 -0400 Message-Id: <20200416221252.82102-1-trondmy@kernel.org> X-Mailer: git-send-email 2.25.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Trond Myklebust This patchset fixes a couple of missed API changes in mountd to ensure that the [exports]rootdir root jail works correctly. It fixes up the 'same_path' function, as well as 'uuid_by_path'. It also improves the error handling, and tries to distinguish between bona fide path resolution problems, and other transient issues in order to avoid having knfsd return spurious ESTALE errors. Trond Myklebust (7): mountd: Add a helper nfsd_path_statfs64() for uuid_by_path() nfsd: Support running nfsd_name_to_handle_at() in the root jail mountd: Fix up path checking helper same_path() Fix autoconf probe for 'struct nfs_filehandle' mountd: Ensure dump_to_cache() sets errno appropriately mountd: Ignore transient and non-fatal filesystem errors in nfsd_fh() mountd: Check the stat() return values in match_fsid() configure.ac | 7 +- support/include/nfsd_path.h | 9 ++ support/misc/nfsd_path.c | 109 ++++++++++++++++++++++ utils/mountd/cache.c | 174 ++++++++++++++++++++++++------------ 4 files changed, 242 insertions(+), 57 deletions(-) -- 2.25.2