Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp448806pxb; Wed, 13 Jan 2021 07:34:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrUMKzBb+q4ns0lIoD1zvY2jHj1SWuJwWCFkPTIiyv5Y1NRDERoJKnagR0RYKDgGphS6li X-Received: by 2002:a17:906:705:: with SMTP id y5mr1916872ejb.428.1610552040196; Wed, 13 Jan 2021 07:34:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610552040; cv=none; d=google.com; s=arc-20160816; b=ilpO5ie8aWm+HCszE3Yuryc0u2T2UHQVD7Mm+OOuG/oV5LB4Owqnc6eVvCbPOqwNNo 6dCZ/gogJAapSWEHMtpfGlCbe3YIeGqeSiJRtxnQ9ulZSAl6OV1sXot0E7xLdevAmSHK RFt1dkR04qGnKp9UBDOB7wCuzD2jleQzSLG65XcLwf8XxpncTRbwQs+1QH9krNTlMF7e ph28U3qJ3iFdl6u5kAncM396VKEffuDC62xVeXBvRGTtAPiivOlpIPcB4brYMb/mBnjB FBEIFZPgJT8BnG9UsB1tQeiJ1e+csvgiu/bdFjf54r6ExfWlRKnyCnVNRNwrvFUAVMYa d/zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8VsZe1+UAeqhj1RZDRTI2Z7NEhPRtKjeIWhhfOA2pjw=; b=GZqvo2Ly9rsv4XpQLuklN6P04DbCJrFbX7ct9Y07IwfUpFTBZbyGlQxd9SwKHOzG5u lopVzNTvvWGnlrO1H23MvFZxzKXE4WkMX5EKH7IhjehmYA10nfzv7dx+KDDrAo9AcoSO GdDmvu6kEiURssgyo92+TqmD6C3F7k/rucFZ7HKj5PkggDkpEfLF10A1IsnggQYgj5zp 36IjAacO+FmlvWhVCfKVuU/TNLydBKMuWf68D6Cesco8KT8SZKzLa52/Xn6o8Ql0zg2M mCIyj7AZ/KXGw0RpzZLIgOKZV/klixBtVoa0s4M3vyWqgR7F+cyZn38T0p99xbI5/FdN VXgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="SH/wKdt2"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q25si1138427edw.87.2021.01.13.07.33.36; Wed, 13 Jan 2021 07:34:00 -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=@infradead.org header.s=casper.20170209 header.b="SH/wKdt2"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726996AbhAMPdf (ORCPT + 99 others); Wed, 13 Jan 2021 10:33:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726959AbhAMPdf (ORCPT ); Wed, 13 Jan 2021 10:33:35 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E6CAC061575 for ; Wed, 13 Jan 2021 07:32:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=8VsZe1+UAeqhj1RZDRTI2Z7NEhPRtKjeIWhhfOA2pjw=; b=SH/wKdt2NkeQjfkgtiLEuOlHQZ 0Db5ThmUUrRXXvY2Lq48FDFNtrZf3bgFGhqAPvXZRji99Xl1Ud+52jhSYpQFxP2RIqBZLOQVcPcqw WYGOkZ8fOhzE3odrWQTvZX5cji7bGzi4Z5YqEYOlhNS0QHrUzGudorkN2bvCW+7hiuUhsv5MO9Li1 1bcS9YIMiXaElmA52WlhRZ0OFtjkBg3t+F93vUGFh6fZLfSK309GrzRydYKwI/JJF/rJQ5UZOcmSY 1q+LgZz0KdG2L2/870BVPeV0UDv8Rw5ew8DKM6/LQhjtk3OA0lQ9/W80ksyOrpzPBhtphFeC0WAlE Uy/ScwQQ==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1kzi69-006Pl6-Pi; Wed, 13 Jan 2021 15:30:26 +0000 Date: Wed, 13 Jan 2021 15:30:13 +0000 From: "hch@infradead.org" To: Trond Myklebust Cc: "hch@infradead.org" , "pgoetz@math.utexas.edu" , "wangzhibei1999@gmail.com" , "chuck.lever@oracle.com" , "greg@kroah.com" , "w@1wt.eu" , "security@kernel.org" , "bfields@fieldses.org" , "linux-nfs@vger.kernel.org" Subject: Re: nfsd vurlerability submit Message-ID: <20210113153013.GA1527598@infradead.org> References: <20210112153208.GF9248@fieldses.org> <8296b696a7fa5591ad3fbb05bfcf6bdf6175cc38.camel@hammerspace.com> <42fcbc42-f1b3-5d99-c507-e1b579f5a37a@math.utexas.edu> <20210112180326.GI9248@fieldses.org> <20210113081238.GA1428651@infradead.org> <0da3d3f1fee1a70eab3f78212f9282b03e21fc4d.camel@hammerspace.com> <20210113144026.GA1517953@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Jan 13, 2021 at 03:16:52PM +0000, Trond Myklebust wrote: > How would that work then? Would you just look at the project ID of the > directory identified by the filehandle as the export point, and then > match to the project ID on the target inode? That sounds like it > doesn't even need to encode anything special in the filehandle. True, we would not even have to encode them. > How do you set a project ID in XFS? With the XFS_IOC_SETXFLAGS ioctl. On the command line side people usually do it using the xfs_quota tool as part of setting up the tree quotas, but it can also be done separately using the chproj subcommand of xfs_io.