Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3043266imu; Mon, 17 Dec 2018 12:13:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/XZccaIWGB7dAOBfEQYsCtfMwfBM65/kRT8BX7TDeNRMQ1BL4PlCFaosg6SdiFiG4yrOqPf X-Received: by 2002:a17:902:7c85:: with SMTP id y5mr13766032pll.63.1545077609599; Mon, 17 Dec 2018 12:13:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545077609; cv=none; d=google.com; s=arc-20160816; b=v+9foPUHFl7KaTnA31UKJG2vGTME9X5Hod0NtZJA5rcm9bveXHrtQeKlSKq3jb+wxq vJ1gFh3RnrkmmEY3SfATyly2CNhsWp6JNS4onq5zbnrT0JcRqayKN16t1xWRQ33+Hrle QS3T9Rwqvs6vWBKTsqtBOjDAPifTOcM3HsUszPfZp7kSBfM1Vhc7eCukjkfqX7mddXul vUZ+PGjB4ls81DN+b88EC89C0efhotr1O5ETRq8WLje8X4qjG+96pwByc/eO5EREcF8c dd4UHCT7H9IYpMTVwJ5I/X65tNkBnB2rv1EnlFpJKXEYS2K7R+uFV3cLJCC9k5mJZDvw sbfQ== 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=Fj3B2uHBk31o6/xZ30PE5BETjBnOVdGRthYr0npwkIY=; b=E6HIxOLIs9Rdi7Jrl1JX1iponAu45Bt0YJk37nIsLe+pLUMAn1sTFVWHPf8CjFhk6S q1VPdut0oQ0ZV0xU3g5U5nJV7NzlGbExi0HwOS4WEpDOEwCnlC2/jrZ5Zt8Ta+b9RpFm +BbjuWs2uaHb+nDEHJALsZ0nC0AuWnvsMA0IlDyE1FdZZYM6lZFO57aPYG5LhGHe2ymi MILZRzxi1l+HbVmN947aAtW5NIKrYaQDqJF99hCL8KpBljXi6agXWKHhD3NqbCXswk4N tch97Wut/5bFgfrGGIzto0LZcz8ggN9zhfuq9Or4anR32tzumY3YI7KYUj71KVvlcE0p DyYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NSVyw5Xp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si11173542plt.394.2018.12.17.12.13.13; Mon, 17 Dec 2018 12:13:29 -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=pass header.i=@kernel.org header.s=default header.b=NSVyw5Xp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388798AbeLQScK (ORCPT + 99 others); Mon, 17 Dec 2018 13:32:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:35330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388003AbeLQScJ (ORCPT ); Mon, 17 Dec 2018 13:32:09 -0500 Received: from gmail.com (unknown [104.132.1.77]) (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 149A42086C; Mon, 17 Dec 2018 18:32:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545071528; bh=Bxiyt5TOcJIJkJoYK7dLeb0fzlyUfhwcb+24gPm5SNE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NSVyw5XpbTy8ovSwZCEx5mTh14apiTsZjgfIyqsYIMFJ/Z7UNOmBuFjRkcD9Vu9LS R40NnWZe36t9AIUV/pDVxySaOa2TbETpIB+Gkr3aixCj4Q9TL1VJaDK55jp8DiNPzE eh2j1PkNdgTMO44v4f+Tt4skGG3SME6vc1v7zPjE= Date: Mon, 17 Dec 2018 10:32:06 -0800 From: Eric Biggers To: Christoph Hellwig Cc: 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: <20181217183205.GA141684@gmail.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181217164949.GA18626@infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) 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 08:49:49AM -0800, Christoph Hellwig wrote: > > > > Given that you alread use an ioctl as the interface what is the problem > > > of passing this data through the ioctl? > > > > Do you mean pass the verity metadata in a buffer? That cannot work in general, > > because it may be too large to fit into memory. > > Have a pointer in the ioctl and do get_user_pages on it. 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? - Eric