Skip to content

Inline Encryption Support for fscrypt

Satya Tangirala linux-ext4 linux-f2fs-devel linux-fscrypt linux-fsdevel 1 version NAK

Status from this message: NACK.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 19 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/4fs: introduce SB_INLINECRYPTfs/proc_namespace.c include/linux/fs.h+2 -06 replies
2/4fscrypt: add inline encryption supportfs/crypto/Kconfig fs/crypto/Makefile fs/crypto/bio.c +8 more+655 -472 replies
3/4f2fs: add inline encryption supportDocumentation/filesystems/f2fs.rst fs/f2fs/compress.c fs/f2fs/data.c +1 more+104 -1810 replies
4/4ext4: add inline encryption supportDocumentation/admin-guide/ext4.rst fs/buffer.c fs/ext4/inode.c +3 more+33 -100 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchJaegeuk Kim
1/4R-b
2/4R-b
3/4A-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Inline Encryption Support for fscrypt

This patch series adds support for Inline Encryption to fscrypt, f2fs and ext4. It builds on the inline encryption support now present in the block layer, and has been rebased on v5.8-rc1.

Patch 1 introduces the SB_INLINECRYPT sb options, which filesystems should set if they want to use blk-crypto for file content en/decryption.

Patch 2 adds inline encryption support to fscrypt. To use inline encryption with fscrypt, the filesystem must set the above mentioned SB_INLINECRYPT sb option. When this option is set, the contents of encrypted files will be en/decrypted using blk-crypto.

Patches 3 and 4 wire up f2fs and ext4 respectively to fscrypt support for inline encryption, and e.g ensure that bios are submitted with blocks that not only are contiguous, but also have contiguous DUNs.

Eric Biggers (1):
ext4: add inline encryption support

Satya Tangirala (3):
fs: introduce SB_INLINECRYPT
fscrypt: add inline encryption support
f2fs: add inline encryption support

 Documentation/admin-guide/ext4.rst |   6 +
 Documentation/filesystems/f2fs.rst |   7 +-
 fs/buffer.c                        |   7 +-
 fs/crypto/Kconfig                  |   6 +
 fs/crypto/Makefile                 |   1 +
 fs/crypto/bio.c                    |  50 +++++
 fs/crypto/crypto.c                 |   2 +-
 fs/crypto/fname.c                  |   4 +-
 fs/crypto/fscrypt_private.h        | 118 +++++++++-
 fs/crypto/inline_crypt.c           | 349 +++++++++++++++++++++++++++++
 fs/crypto/keyring.c                |   6 +-
 fs/crypto/keysetup.c               |  68 ++++--
 fs/crypto/keysetup_v1.c            |  16 +-
 fs/ext4/inode.c                    |   4 +-
 fs/ext4/page-io.c                  |   6 +-
 fs/ext4/readpage.c                 |  11 +-
 fs/ext4/super.c                    |   9 +
 fs/f2fs/compress.c                 |   2 +-
 fs/f2fs/data.c                     |  81 +++++--
 fs/f2fs/super.c                    |  32 +++
 fs/proc_namespace.c                |   1 +
 include/linux/fs.h                 |   1 +
 include/linux/fscrypt.h            |  82 +++++++
 23 files changed, 794 insertions(+), 75 deletions(-)
 create mode 100644 fs/crypto/inline_crypt.c
Signature · 1 line
2.27.0.290.gba653c62da-goog