Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4774993imu; Tue, 18 Dec 2018 23:24:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vb2OJgSD8dZipCk0vEdcoL+Z6Shp+LPdqEnaVEnIYQgV5MdDKDwFBo4tQpMhZ6yDBgH3S2 X-Received: by 2002:a63:e516:: with SMTP id r22mr18882357pgh.256.1545204257009; Tue, 18 Dec 2018 23:24:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545204256; cv=none; d=google.com; s=arc-20160816; b=qewyNXCnVwNrQ79EoGBGRr1Vls7Vlj5kfV5ncrhRRxGijgW7peWdsYEMmrGBH0P0+h S+obxYWAFrvNKItXvhXL1bHkwXgrJG0MVdWBUliEZm3S1iXjoaCZyY72XtCtKL+yb22O s4UoZuCipSOsoFm72kO+eTJPYa6ivtPRsbjq0n2Fc1dNiwu1HUA16rJFwlmmWYKA//LG lSVIHbtl/95vzvfbNmRtRLyUsf3/93PX7dROG3uorYqm5+GU+WVqLlh/pa4vE0XA46dZ ifWG0Z9919g6R7pGHZ2NjudLfBEWKd7GV+osYHNxsMNyT+/Osyd8o9SPPQdwLAUAYtLe aa+g== 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:dkim-signature; bh=/KC9DHMjwbOpXhQULiC+bGxJFMoZGP8G7cGQ95/QabA=; b=mkjEnemSaPxYfvmUGoJYldXnaKHpTwh42Hh+v6AWv+Ri0DmiZZHX/XvD5gouQto+5W gMy/yiLMQr6h8pUQfSGCf9mkpgr+5g8NgfNe8MgkBe1EJ1ed9blUXrM3mrQFsbS5oc+O H7eJXWaTk8ITVOAwAa/hUA6I9oUMRrmg+JD9PT22dTaM6zpI01IyXjP6LUJkXAd4aTLS 7DibT8Zta2DcIqe+act6c2TNDjal9z2xodCCVKYXyHfw9oQaOmCG2YhdB74Lxp5HnzDC 0UQ39iYJR+srs56Wsc4KkUMoODvdop6yP2d9y3s9QOFfkYACcsFs5NqbeUJLSNuz0xh+ HmaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=fzX09TCd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 p32si11753108pgm.413.2018.12.18.23.24.01; Tue, 18 Dec 2018 23:24:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=fzX09TCd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728212AbeLSHJW (ORCPT + 99 others); Wed, 19 Dec 2018 02:09:22 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:35206 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728051AbeLSHJR (ORCPT ); Wed, 19 Dec 2018 02:09:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/KC9DHMjwbOpXhQULiC+bGxJFMoZGP8G7cGQ95/QabA=; b=fzX09TCdB0RNQPNuytVszcw2o xWE3VbUouxsxmIxZxo3vpW8mbznVEpBRKBFZcOewcZYd/VkwzaboqfyRXUTW8vfgQIaXJdrBk6bN6 9BJxOVZA2ybK3tuF0x9xh4KDqSRZnbCpz84l/HoexuiDoL6H9AS+u3IPiq39ZtEG3fUXQn/ExLgNM YlG/9Xvq9k7YZtK39Q7lwKh2lJ792HzjtbR16QQqu7za3h4i93w9VXm/IxQ8npru46Pab7jbB7xJJ AW0ivDlPKgEo/FwDVNtvG1Q6cji6gfBgoQILMd9cwVygsBOHnEwEfVfgQ7T1XKwasLfTrjWo6mzqP lUizwtyCQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZVym-0001Ic-2e; Wed, 19 Dec 2018 07:09:16 +0000 Date: Tue, 18 Dec 2018 23:09:15 -0800 From: Christoph Hellwig To: Eric Biggers Cc: Christoph Hellwig , linux-fscrypt@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, "Theodore Y . Ts'o" , Jaegeuk Kim , Victor Hsieh , Chandan Rajendra , Linus Torvalds Subject: Re: [PATCH v2 01/12] fs-verity: add a documentation file Message-ID: <20181219070915.GA2628@infradead.org> References: <20181101225230.88058-1-ebiggers@kernel.org> <20181101225230.88058-2-ebiggers@kernel.org> <20181212091406.GA31723@infradead.org> <20181212202609.GA193967@gmail.com> <20181213202249.GA3797@infradead.org> <20181214044802.GA681@sol.localdomain> <20181217164949.GA18626@infradead.org> <20181217183205.GA141684@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181217183205.GA141684@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 17, 2018 at 10:32:06AM -0800, Eric Biggers wrote: > I don't see how that helps. The Merkle tree can still be too large to fit in > memory. In the worst case, it might not even fit in the address space. And I > don't see how get_user_pages() helps either over just copy_from_user(); what are > you proposing to do with the pages after getting them, exactly? Write them out to a file system specific area on the media. Note that get_user_pages is indeed not going to work if you run out of address space, but that seems like an odd use case. Out of of memory is not an issue as we generally iterate over a small number of pages for each individual get_user_pages call.