Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1346926imu; Fri, 21 Dec 2018 18:17:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN5QQ+X9atZSZ2+SR+OwXulf1TXXW5YUaXE3dT+x82YQZK8G/7cw9idoOiW8q/h4Ay52DB7i X-Received: by 2002:a17:902:d83:: with SMTP id 3mr4790695plv.43.1545445061764; Fri, 21 Dec 2018 18:17:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545445061; cv=none; d=google.com; s=arc-20160816; b=dGj3KrYnNo3g+WH2MuCM5yJi/7gXWw8/WDR4gz/x5+CA18QCHHtZPnT0VUTfUosLvn r2WGWsHLbpxL/PcYC0LMX77DofEcHXmFWD/S870PwuuEZbgjU4ltFhifyiIVd0vJgGbt AUcV1Dzq2zOGUrnAUHmJTh18qi3F/ZmIjug/EeGElqmWezf0984g7iwD0L9g3MCtpv4G 1EOO9qYWd6FoNDVLKi1ToVVBtnpYSnVFMjzVGcfGfC75Q7crK057eVcrd59hoVXQ4m20 alCTdeo7VY3P1G+26bVelOma8ENaVkCKiitgeIc1pj2hQPZzr+LpC4xZXmtNvRv0+/ny DOfA== 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:mail-followup-to :message-id:subject:cc:to:from:date; bh=BnOz+mQwDoSpjYJJGhsA3bSckPceIm9Gjmo3EHUcQ6Q=; b=QEr4nr1TvSG0U/Jw1ZW1MYP+TZMth1Ymnh7Ge9Qe2szFlT/KqXimPU1loVuiXF2hiY vjS5f7QX5Sf2yS2a8N/mGXbRTFOa68JbB8HgnPVNy5T417W6keXiwCPNVDeSBGTanWDa VfZlsLx/B5it75TCMeSB7Lk/tYCoMQr/ABV1pbd2h4XiUWTisGK9K5Xqrcskag9rJ0Pm u9ATIg8pmNRgsA2ljVWeisoXt1HioeIiu8VpQLixbQd8dORcJzzd0kGRhEIcMyckgnMc 6xBigNhVxULN6+UUox9Az8A9gXpN9j6DTPvxQUoJjFCffq5jKMNL37oMZoDQ6077+G3b GOgA== ARC-Authentication-Results: i=1; mx.google.com; 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 a19si5063216pgn.102.2018.12.21.18.17.25; Fri, 21 Dec 2018 18:17:41 -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; 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 S1731902AbeLUPwX (ORCPT + 99 others); Fri, 21 Dec 2018 10:52:23 -0500 Received: from dmz-mailsec-scanner-7.mit.edu ([18.7.68.36]:42984 "EHLO dmz-mailsec-scanner-7.mit.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725845AbeLUPwX (ORCPT ); Fri, 21 Dec 2018 10:52:23 -0500 X-Greylist: delayed 300 seconds by postgrey-1.27 at vger.kernel.org; Fri, 21 Dec 2018 10:52:21 EST X-AuditID: 12074424-9cbff70000003214-b3-5c1d0b06a3a0 Received: from mailhub-auth-3.mit.edu ( [18.9.21.43]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP id 03.FC.12820.70B0D1C5; Fri, 21 Dec 2018 10:47:19 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH-1.MIT.EDU [18.9.28.11]) by mailhub-auth-3.mit.edu (8.14.7/8.9.2) with ESMTP id wBLFlH4k014317; Fri, 21 Dec 2018 10:47:18 -0500 Received: from callcc.thunk.org (THE-HIMMER.bear1.Boston1.Level3.net [4.30.124.170]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id wBLFlGF1031627 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Dec 2018 10:47:16 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id D3F2E7A41B9; Fri, 21 Dec 2018 10:47:14 -0500 (EST) Date: Fri, 21 Dec 2018 10:47:14 -0500 From: "Theodore Y. Ts'o" To: Christoph Hellwig Cc: Dave Chinner , "Darrick J. Wong" , Eric Biggers , 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, Jaegeuk Kim , Victor Hsieh , Chandan Rajendra , Linus Torvalds Subject: Re: [PATCH v2 01/12] fs-verity: add a documentation file Message-ID: <20181221154714.GA26547@mit.edu> Mail-Followup-To: "Theodore Y. Ts'o" , Christoph Hellwig , Dave Chinner , "Darrick J. Wong" , Eric Biggers , 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, Jaegeuk Kim , Victor Hsieh , Chandan Rajendra , Linus Torvalds References: <20181219071420.GC2628@infradead.org> <20181219021953.GD31274@dastard> <20181219193005.GB6889@mit.edu> <20181219213552.GO6311@dastard> <20181220220158.GC2360@mit.edu> <20181221070447.GA21687@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181221070447.GA21687@infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBKsWR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: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 20, 2018 at 11:04:47PM -0800, Christoph Hellwig wrote: > Ted, I think you know yourself this isn't true. Whenever we added > useful interface to one of the major file systems we had other pick > it up, and that is a good thing because the last thing we need is > fragmentation of interfaces. And even if that wasn't the case I don't > think we should take short cuts, because even if an interface was just > for a file system or two it still needs to be properly desgined. This is why I think the interface argument is totally bogus. If you're OK with Darrick's suggested interface, where you pass in a file descriptor, offset and length --- that's just a superset of the current interface, except where the file descriptor is in the file which is going to be protected using fs-verity. So there's if you're OK with that interface, we can add that interface later, and it's really no big deal; it certainly doesn't add any extra complexity for XFS --- assuming that XFS even gets around to adding support for fs-verity. Adding that extra complexity is not necessary for the current users of the interface, and as I've said multiple times before, there's no *value* in allowing the Merkle tree to be passed in via some arbitrary file descriptor, which might even be on a separate fhile system, as opposed in the file which is about to be protected using fs-verity. Linus --- we're going round and round, and I don't think this is really a technical dispute at this point, but rather an aesthetics one. Will you be willing to accept my pull request for a feature which is being shippped on millions of Android phones, has been out for review for months, and for which, if we *really* need to add uselessly complicated interface later, we can do that? It's always been the case for internal Kernel interfaces not to add code "just in case" it's useful, but rather when a user turns up. I argue we should be doing the same thing for user-space visible interfaces. Regards, - Ted