From: Daniel Rosenberg <drosen@google.com>
To: "Theodore Y . Ts'o" <tytso@mit.edu>,
Eric Biggers <ebiggers@kernel.org>,
Andreas Dilger <adilger.kernel@dilger.ca>,
linux-ext4@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
Gabriel Krisman Bertazi <krisman@collabora.com>,
kernel-team@android.com, Daniel Rosenberg <drosen@google.com>
Subject: [PATCH v2 0/2] Reconcile Encryption and Casefolding in Ext4
Date: Fri, 19 Mar 2021 07:34:12 +0000 [thread overview]
Message-ID: <20210319073414.1381041-1-drosen@google.com> (raw)
These patches add support for ext4 encryption and casefolding at the same time.
Since the hash for encrypted casefolded directory names cannot be computed
without the key, we need to store the hash on disk. We only do so for encrypted
and casefolded directories to avoid on disk format changes.
e2fsprogs has already been updated with support for casefolding and encryption.
v2 changes:
When checking for 'fake' entries (which do not include the extra hash bytes)
-Check for . and .. using names instead of position
-Check for csum entries via file_type instead of position
-Assume last entry in directory will be csum for __ext4_check_entry if csum enabled
This means we don't need to pass along lblk all over the place
-Don't use siphash value for find_group_orlov, just use regular hash
Daniel Rosenberg (2):
ext4: Handle casefolding with encryption
ext4: Optimize match for casefolded encrypted dirs
Documentation/filesystems/ext4/directory.rst | 27 +++
fs/ext4/dir.c | 37 +++-
fs/ext4/ext4.h | 73 +++++--
fs/ext4/hash.c | 25 ++-
fs/ext4/inline.c | 25 ++-
fs/ext4/namei.c | 213 ++++++++++++++-----
fs/ext4/super.c | 6 -
7 files changed, 303 insertions(+), 103 deletions(-)
base-commit: f296bfd5cd04cbb49b8fc9585adc280ab2b58624
--
2.31.0.rc2.261.g7f71774620-goog
next reply other threads:[~2021-03-19 7:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-19 7:34 Daniel Rosenberg [this message]
2021-03-19 7:34 ` [PATCH v2 1/2] ext4: Handle casefolding with encryption Daniel Rosenberg
2021-03-20 9:05 ` Andreas Dilger
2021-04-06 2:38 ` Theodore Ts'o
2021-03-19 7:34 ` [PATCH v2 2/2] ext4: Optimize match for casefolded encrypted dirs Daniel Rosenberg
2021-04-06 2:38 ` Theodore Ts'o
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210319073414.1381041-1-drosen@google.com \
--to=drosen@google.com \
--cc=adilger.kernel@dilger.ca \
--cc=ebiggers@kernel.org \
--cc=kernel-team@android.com \
--cc=krisman@collabora.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®