Skip to content

ext4 encryption patches

Theodore Ts'o linux-ext4 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest20 patches 6 repliesIn review
  2. v122 patches 21 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20ext4 crypto: add ext4_mpage_readpages()fs/ext4/Makefile fs/ext4/ext4.h fs/ext4/inode.c +1 more+271 -30 replies
2/20ext4 crypto: reserve codepoints used by the ext4 encryption featurefs/ext4/ext4.h+19 -60 replies
3/20ext4 crypto: add ext4 encryption Kconfigfs/ext4/Kconfig+17 -00 replies
4/20ext4 crypto: export ext4_empty_dir()fs/ext4/ext4.h fs/ext4/namei.c+7 -50 replies
5/20ext4 crypto: add encryption xattr supportfs/ext4/xattr.h+3 -00 replies
6/20ext4 crypto: add encryption policy and password salt supportfs/ext4/Makefile fs/ext4/crypto_policy.c fs/ext4/ext4.h +2 more+306 -00 replies
7/20ext4 crypto: add ext4 encryption facilitiesfs/ext4/Makefile fs/ext4/crypto.c fs/ext4/crypto_policy.c +3 more+623 -10 replies
8/20ext4 crypto: add encryption key management facilitiesfs/ext4/Makefile fs/ext4/crypto_key.c fs/ext4/ext4.h +1 more+179 -16 replies
9/20ext4 crypto: validate context consistency on lookupfs/ext4/namei.c+7 -00 replies
10/20ext4 crypto: inherit encryption policies on inode and directory createfs/ext4/namei.c+16 -00 replies
11/20ext4 crypto: implement the ext4 encryption write pathfs/ext4/extents.c fs/ext4/ialloc.c fs/ext4/inode.c +1 more+164 -60 replies
12/20ext4 crypto: implement the ext4 decryption read pathfs/ext4/file.c fs/ext4/inode.c fs/ext4/readpage.c+90 -30 replies
13/20ext4 crypto: filename encryption facilitiesfs/ext4/Makefile fs/ext4/crypto_fname.c fs/ext4/crypto_policy.c +2 more+779 -10 replies
14/20ext4 crypto: teach ext4_htree_store_dirent() to store decrypted filenamesfs/ext4/dir.c fs/ext4/ext4.h fs/ext4/inline.c +1 more+35 -130 replies
15/20ext4 crypto: insert encrypted filenames into a leaf directory blockfs/ext4/ext4.h fs/ext4/inline.c fs/ext4/namei.c+79 -130 replies
16/20ext4 crypto: partial update to namei.c for fname cryptofs/ext4/namei.c+101 -80 replies
17/20ext4 crypto: filename encryption modificationsfs/ext4/namei.c+204 -440 replies
18/20ext4 crypto: enable filename encryptionfs/ext4/dir.c fs/ext4/ialloc.c+67 -160 replies
19/20ext4 crypto: Add symlink encryptionfs/ext4/ext4.h fs/ext4/ext4_crypto.h fs/ext4/inode.c +2 more+191 -190 replies
20/20ext4 crypto: enable encryption feature flagfs/ext4/crypto_key.c fs/ext4/crypto_policy.c fs/ext4/ext4.h +3 more+79 -240 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH-v2 00/20] ext4 encryption patches

Changes since the last version of the patches

* Filename encryption now uses ciphertext stealing mode, which is more space efficient
* Fixed a bug when deleting encrypted htree directories w/o the key available
* Cleaned up comments, copyrights, and whitespace
* The encryption feature is not advertised via /sys/fs/ext4/features
* Remove unneeded Kconfig dependencies (CTR, SHA1, SHA512, and HMAC)
* Cleaned up and refactored the file name and data path crypto code
* Support encrypted fast symlinks
* Lots of other cleanups suggested by reviewers (thanks, all!)

Note: this version of the patches requires e2fsprogs commit v1.42.12-522-ga672190 or newer.

Michael Halcrow (13):
ext4 crypto: export ext4_empty_dir()
ext4 crypto: add encryption xattr support
ext4 crypto: add encryption policy and password salt support ext4 crypto: add ext4 encryption facilities
ext4 crypto: add encryption key management facilities
ext4 crypto: inherit encryption policies on inode and directory create ext4 crypto: implement the ext4 encryption write path
ext4 crypto: implement the ext4 decryption read path
ext4 crypto: filename encryption facilities
ext4 crypto: insert encrypted filenames into a leaf directory block ext4 crypto: partial update to namei.c for fname crypto ext4 crypto: filename encryption modifications
ext4 crypto: enable filename encryption

Theodore Ts'o (7):
ext4 crypto: add ext4_mpage_readpages()
ext4 crypto: reserve codepoints used by the ext4 encryption feature ext4 crypto: add ext4 encryption Kconfig
ext4 crypto: validate context consistency on lookup
ext4 crypto: teach ext4_htree_store_dirent() to store decrypted
filenames
ext4 crypto: Add symlink encryption
ext4 crypto: enable encryption feature flag

 fs/ext4/Kconfig         |  17 ++
 fs/ext4/Makefile        |   4 +-
 fs/ext4/crypto.c        | 500 ++++++++++++++++++++++++++++++++++
 fs/ext4/crypto_fname.c  | 709 ++++++++++++++++++++++++++++++++++++++++++++++++
 fs/ext4/crypto_key.c    | 165 +++++++++++
 fs/ext4/crypto_policy.c | 183 +++++++++++++
 fs/ext4/dir.c           |  79 ++++--
 fs/ext4/ext4.h          | 177 +++++++++++-
 fs/ext4/ext4_crypto.h   | 147 ++++++++++
 fs/ext4/extents.c       |   6 +
 fs/ext4/file.c          |  19 +-
 fs/ext4/ialloc.c        |  27 +-
 fs/ext4/inline.c        |  14 +-
 fs/ext4/inode.c         | 130 ++++++++-
 fs/ext4/ioctl.c         |  85 ++++++
 fs/ext4/namei.c         | 563 ++++++++++++++++++++++++++++++++------
 fs/ext4/page-io.c       |  46 +++-
 fs/ext4/readpage.c      | 328 ++++++++++++++++++++++
 fs/ext4/super.c         |  37 ++-
 fs/ext4/symlink.c       | 109 +++++++-
 fs/ext4/xattr.h         |   3 +
 21 files changed, 3211 insertions(+), 137 deletions(-)
 create mode 100644 fs/ext4/crypto.c
 create mode 100644 fs/ext4/crypto_fname.c
 create mode 100644 fs/ext4/crypto_key.c
 create mode 100644 fs/ext4/crypto_policy.c
 create mode 100644 fs/ext4/ext4_crypto.h
 create mode 100644 fs/ext4/readpage.c
Signature · 1 line
2.3.0