Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1260449pxb; Thu, 14 Apr 2022 01:59:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxgHBh7srRiIUVMR7tWLGRTxUjRUnxoNIw6Qy+fGs/gcG6FIZI0ba2g5//U09MaNcQi2nH X-Received: by 2002:a17:90a:6c64:b0:1cb:a150:52d with SMTP id x91-20020a17090a6c6400b001cba150052dmr2586939pjj.111.1649926744167; Thu, 14 Apr 2022 01:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649926744; cv=none; d=google.com; s=arc-20160816; b=ydqjIhcRAfSZ14dlsRcPOx3KqihRKjbG5wbggl6+wPNUR4Q9pn3PcaXCCMKi9WqkIU pM7MsueXYUd3nWqr/56nWKt9WTgt9dTpjWDMwmCADWupZb+K6y3jsUdnMy9Pe6PfFMS0 8dKZmExARC9dYQ6+L7leY51aLoetDu+cNf8cVDGEu1PpRvoVbZdkFztgNmmYA2hWZQeo X3gECAAbnMV0UrpCX1dCW+0lKQeCUZyDZfvdpwxqgmZFhRegIY1rKCBFYM6n9OdJ65Br 6MdnooYwXTSS9Y1VeoSy9W/2z+lyhKvvF6s/qwYUg+YBWR7KUBhlGh3DV6j2DXgIbMrQ b/yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=sVLvr96aR8+YAy6dkWx+tD045vb06i0pW6eimpGumxo=; b=maR2NPRTORTl/Fj8lx47rQuLNg27mZu1C+mQq6ZKfwkJaW4BlcCMTKuLUPYevUXpHC zXoA348bgusx0FVEcAfGRkMcg5vNfnCHGh/wE6RrbQ3+R7S9572X8JCLzJBm5CUhYwWD kgOTAcYrIHpBojmKSRqbE240RqGsVpeiMQ/rfxrPqu7GER4NhqYbYosvl/PZp7ajKkcQ tEaVUo24cOY0rrrKKTlpSWKJ/kAxKEVYRZBUlJsyeELDB0KUxwNYGB9M41XBNeSKwp+l u14hEHQxSwoLxVPeRrOhL6bxYnJ2CnOI2hVFBd+ZFJfz+4ChjwEk/ha3t4V2qFO8UjjL MvFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RKbZpmHt; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020a056a00081000b00505da625218si9059987pfk.30.2022.04.14.01.58.50; Thu, 14 Apr 2022 01:59:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RKbZpmHt; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S240255AbiDNHSU (ORCPT + 99 others); Thu, 14 Apr 2022 03:18:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240310AbiDNHST (ORCPT ); Thu, 14 Apr 2022 03:18:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5AF449F9B for ; Thu, 14 Apr 2022 00:15:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 70A9661F2F for ; Thu, 14 Apr 2022 07:15:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2516C385A1 for ; Thu, 14 Apr 2022 07:15:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649920553; bh=EeV/5Nhdg/5bu9cfDt0xS09M8xVJV+b2pAVgIXM9lio=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=RKbZpmHt/FaZvRse12kTPsVac6uMr4L1qYv2+c8TmFqTRu7LIaHkvYvytvE1IBp9c WA09atZlJCHEpTYDmvDlcFblSKquIyCHtr2kKEc1+M95/v79ZiQQSFuyrXuQHHgnyO 2invVhfTo8VtdL9bjWAgfaGfntFJBzID/vGpSb0Thco9w1VJRhvzF0rMatKEg22lNY 1KAYqhcvdKkzsZ3+WhOtDGfeFNfQTYx8gzxuxaCreYxDVIa1qeDXYj8B8Q2cX58ZZ2 xZ1kIPER1Pyjs0Vctk8xWe43iPZxQSFDnp+q2tiftsQxBqk5d1V8UaUFGRENzfD/0C CBjnrg7VhtWKg== Received: by mail-oo1-f47.google.com with SMTP id c2-20020a4aacc2000000b003333c8697bbso78715oon.12 for ; Thu, 14 Apr 2022 00:15:53 -0700 (PDT) X-Gm-Message-State: AOAM532zB61NgeV5IEsIp0bbnTJQIbVYcj2x0PO1Vd0Z/eorxWZG/Tfi 7zeTgmLW1kzGsN+QlkRS+bYY5TsCb7dCbKjMKms= X-Received: by 2002:a4a:e6c2:0:b0:329:1863:6c3a with SMTP id v2-20020a4ae6c2000000b0032918636c3amr392945oot.98.1649920552947; Thu, 14 Apr 2022 00:15:52 -0700 (PDT) MIME-Version: 1.0 References: <20220412172816.917723-1-nhuck@google.com> <20220412172816.917723-9-nhuck@google.com> In-Reply-To: From: Ard Biesheuvel Date: Thu, 14 Apr 2022 09:15:42 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 8/8] fscrypt: Add HCTR2 support for filename encryption To: Eric Biggers Cc: Nathan Huckleberry , Linux Crypto Mailing List , Herbert Xu , "David S. Miller" , Linux ARM , Paul Crowley , Sami Tolvanen Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, 14 Apr 2022 at 09:12, Eric Biggers wrote: > > On Wed, Apr 13, 2022 at 08:16:25AM +0200, Ard Biesheuvel wrote: > > > > diff --git a/tools/include/uapi/linux/fscrypt.h b/tools/include/uapi/linux/fscrypt.h > > > > index 9f4428be3e36..a756b29afcc2 100644 > > > > --- a/tools/include/uapi/linux/fscrypt.h > > > > +++ b/tools/include/uapi/linux/fscrypt.h > > > > @@ -27,7 +27,8 @@ > > > > #define FSCRYPT_MODE_AES_128_CBC 5 > > > > #define FSCRYPT_MODE_AES_128_CTS 6 > > > > #define FSCRYPT_MODE_ADIANTUM 9 > > > > -/* If adding a mode number > 9, update FSCRYPT_MODE_MAX in fscrypt_private.h */ > > > > +#define FSCRYPT_MODE_AES_256_HCTR2 10 > > > > +/* If adding a mode number > 10, update FSCRYPT_MODE_MAX in fscrypt_private.h */ > > > > > > > > > > As far as I know, you don't actually need to update the copy of UAPI headers in > > > tools/. The people who maintain those files handle that. It doesn't make sense > > > to have copies of files in the source tree anyway. > > > > > > > Doesn't the x86 build emit a warning if these go out of sync? > > The warning is emitted when building tools/perf/, not the kernel itself. > > According to https://lore.kernel.org/r/20191001185741.GD13904@kernel.org, the > perf maintainers actually prefer that their files are *not* updated for them. > And I'd like to push back against having duplicate source files in the tree > anyway, for obvious reasons. So I think we shouldn't update this file. > Fair enough.