Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp906293pxb; Tue, 9 Feb 2021 16:14:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQi9MP8AFvriDfxR1RcQNHrg95WHhNLcgsNd8z2eQ6RXtnkpd8e2sthzHIqpKWX1vISnC4 X-Received: by 2002:a05:6402:19bd:: with SMTP id o29mr684394edz.161.1612916084183; Tue, 09 Feb 2021 16:14:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612916084; cv=none; d=google.com; s=arc-20160816; b=nHgi3zMtBvH1u/XMpL1PyEhajXdSACPmT9DS8L7UkbU4xWy4KNF8MPbnVtcWaHF5jn vlaErczu/NOR1cGiXfDX8MkC9RpUEuCdm2YZicSnYjrhjbtHomD4qgUARZo8xz/djdva 725gUz32o3PhCxlgDY0PkBtBmb9Id/G7On/7NRZwa1iY5jvhtu/ILRQj0cbQ94sD5zDU DK0zNjwSCO9Zfh8T2gAU4QNV3gylOZA4adAewh3mawCtZHyUTIv770NSDv+tR8+15Dep wBhnjrP0Y3XQxRjX2xsRv0KUSWJMYdO7wF3QWypTvloioBXGlQg/HBg7hbRTnQNL1yB3 OkjQ== 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; bh=olrJbksEGUttlZAhW8v9vFvWsMD+W7DgVhdaG/apP7I=; b=xUlhQO17270e4W+1+er5bcSjoroFwhO7mKEmnhjzztODW8ymdFDKUqYPSapCln2zbb 9bg+qYAV1WZpGBFyuVTmhFiMfUnj/i95KLl8dbQdzcIWn4XvoKpUXwWq+hu95iEBUluz K8YbTQRLI353USoHQdALnbhyKrDvhKqqQS2TGdW56RrLlXX8YLk9moqkT+itGYDyl6oe Mv2cRhizglxo4Qgy2T5nWQPIcea0SgIOVpzfH9TEckwJ7gHTdjcW/HUVBY/g1SsTAwZK XUwrS2zLdfA9J53L2duIe0sUCiGUGsJrMB8xt+YAV0KAud5ijwqANauF/o/MfVyulsLY qHqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 q26si148233ejn.226.2021.02.09.16.14.14; Tue, 09 Feb 2021 16:14:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234233AbhBJAL1 (ORCPT + 99 others); Tue, 9 Feb 2021 19:11:27 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:56941 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234907AbhBIXXu (ORCPT ); Tue, 9 Feb 2021 18:23:50 -0500 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 119NMoVa000363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 9 Feb 2021 18:22:51 -0500 Received: by cwcc.thunk.org (Postfix, from userid 15806) id C995F15C39E3; Tue, 9 Feb 2021 18:22:50 -0500 (EST) Date: Tue, 9 Feb 2021 18:22:50 -0500 From: "Theodore Ts'o" To: Andreas Dilger Cc: Daniel Rosenberg , Eric Biggers , Andreas Dilger , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Gabriel Krisman Bertazi , kernel-team@android.com, Paul Lawrence Subject: Re: [PATCH 1/2] ext4: Handle casefolding with encryption Message-ID: References: <20210203090745.4103054-2-drosen@google.com> <56BC7E2D-A303-45AE-93B6-D8921189F604@dilger.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Feb 03, 2021 at 11:31:28AM -0500, Theodore Ts'o wrote: > On Wed, Feb 03, 2021 at 03:55:06AM -0700, Andreas Dilger wrote: > > > > It looks like this change will break the dirdata feature, which is similarly > > storing a data field beyond the end of the dirent. However, that feature also > > provides for flags stored in the high bits of the type field to indicate > > which of the fields are in use there. > > The first byte of each field stores > > the length, so it can be skipped even if the content is not understood. > > Daniel, for context, the dirdata field is an out-of-tree feature which > is used by Lustre, and so has fairly large deployed base. So if there > is a way that we can accomodate not breaking dirdata, that would be > good. > > Did the ext4 casefold+encryption implementation escape out to any > Android handsets? So from an OOB chat with Daniel, it appears that the ext4 casefold+encryption implementation did in fact escape out to Android handsets. So I think what we will need to do, ultiumately, is support one way of supporting the casefold IV in the case where "encryption && casefold", and another way when "encryption && casefold && dirdata". That's going to be a bit sucky, but I don't think it should be that complex. Daniel, Andreas, does that make sense to you? - Ted