Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1213516ybl; Fri, 6 Dec 2019 13:15:51 -0800 (PST) X-Google-Smtp-Source: APXvYqx2u17sLwJxt/ekzGT8CxQjo/w57Y6dddwnpPfucIGyiT5Rzu23H9ZC6wuT8JJP1LHf3gzU X-Received: by 2002:aca:190b:: with SMTP id l11mr14758196oii.65.1575666951382; Fri, 06 Dec 2019 13:15:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575666951; cv=none; d=google.com; s=arc-20160816; b=sikWsW1/ytah+xMYwU8Er1NhRcFbWHuXyO/rCZ6iHqXsll1anJIrgJ3W4f/gvImSjU Y5REG+4fbsN1dXw1bNeWBgnpfq2FSOcVEjxUXsonf4cfCHdHhhvbV3nXdltHw8/GjYUm GP59m9LwYGHsSB5HEq2WVM3cOVzAoap6nKXiJAGjwcSch/ZDR9cqcoI6dwfUYRWi8/EN xNJM0zEmxZ2cIcYcQrofWuNqDseCC846nig4AKYfqrROvIj59E2LamjbR6ZerLDL1pDl 2Uw6dyM5OAaYoIjYeapoBwaPlrgssZowd59fpzrHRK6nNiqASrSQreY8i/orbwDAvaWj wvBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=w6hr54o62mx8qJoIohSPng5s18cCcCAXmgKihu2vahY=; b=ujgtFLOG1bOulrSMJ8BJMtiwC5kn0vylAiCzTbaeRtY61UGZ9cr2hMbJB9zBu+ppLa l110VqunQLcdaVhMWaXFeJfIM4g0c6DtbA0UE2wjV5odpPtscKzVunTK0DsGMIX30Fdo z61dLZsqkGOcxk/77V1mXgEQApdTvVGk54aduCsuKi5DHaALLqsSF+cbPyVQONMojbYI WAkO8sV3fuWvS3gFeSua96cqTo8VuXzcv7DcLsEg7w3YqD9rkRjfYLRBkRvW9aEQB5h4 QtD5NCJNqIRpPfOD7pOlemXTjWfVdUcYb/n9LxjFioZe/prGjm1NvWyuLjE/mbjIHZAq R09g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j204si7842116oif.253.2019.12.06.13.15.40; Fri, 06 Dec 2019 13:15:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726374AbfLFVPj (ORCPT + 99 others); Fri, 6 Dec 2019 16:15:39 -0500 Received: from fieldses.org ([173.255.197.46]:54238 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726330AbfLFVPi (ORCPT ); Fri, 6 Dec 2019 16:15:38 -0500 Received: by fieldses.org (Postfix, from userid 2815) id 9B52120A8; Fri, 6 Dec 2019 16:15:38 -0500 (EST) Date: Fri, 6 Dec 2019 16:15:38 -0500 From: "J. Bruce Fields" To: "J. Bruce Fields" Cc: Olga Kornievskaia , Dan Carpenter , linux-nfs Subject: Re: [bug report] NFSD: allow inter server COPY to have a STALE source server fh Message-ID: <20191206211538.GC17524@fieldses.org> References: <20191204080039.ixjqetefkzzlldyt@kili.mountain> <20191204220435.GG40361@pick.fieldses.org> <20191205023826.GA43279@pick.fieldses.org> <20191206211442.GB17524@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191206211442.GB17524@fieldses.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, Dec 06, 2019 at 04:14:42PM -0500, bfields wrote: > On Wed, Dec 04, 2019 at 09:38:26PM -0500, J. Bruce Fields wrote: > > So, stuff we could do: > > > > - add an extra check of fh_export or something here. > > So, I'm applying the following for now. > + if (current->fh->fh_export && ^^^ Um, maybe with a typo or two fixed. > + need_wrongsec_check(rqstp)) > op->status = check_nfsd_access(current_fh->fh_export, rqstp); > } > encode_op: