Linux-Fsdevel Archive on
 help / color / Atom feed
From: Eric Biggers <>
To: Satya Tangirala <>
Cc:,,,, Jaegeuk Kim <>
Subject: Re: [PATCH v3 2/4] fscrypt: add inline encryption support
Date: Tue, 30 Jun 2020 09:47:30 -0700
Message-ID: <20200630164730.GB837@sol.localdomain> (raw)
In-Reply-To: <>

On Tue, Jun 30, 2020 at 12:14:36PM +0000, Satya Tangirala via Linux-f2fs-devel wrote:
> Add support for inline encryption to fs/crypto/.  With "inline
> encryption", the block layer handles the decryption/encryption as part
> of the bio, instead of the filesystem doing the crypto itself via
> Linux's crypto API. This model is needed in order to take advantage of
> the inline encryption hardware present on most modern mobile SoCs.
> To use inline encryption, the filesystem needs to be mounted with
> '-o inlinecrypt'. Blk-crypto will then be used instead of the traditional
> filesystem-layer crypto whenever possible to encrypt the contents
> of any encrypted files in that filesystem. Fscrypt still provides the key
> and IV to use, and the actual ciphertext on-disk is still the same;
> therefore it's testable using the existing fscrypt ciphertext verification
> tests.
> Note that since blk-crypto has a fallback to Linux's crypto API, and
> also supports all the encryption modes currently supported by fscrypt,
> this feature is usable and testable even without actual inline
> encryption hardware.
> Per-filesystem changes will be needed to set encryption contexts when
> submitting bios and to implement the 'inlinecrypt' mount option.  This
> patch just adds the common code.
> Co-developed-by: Eric Biggers <>
> Signed-off-by: Eric Biggers <>
> Signed-off-by: Satya Tangirala <>
> Reviewed-by: Jaegeuk Kim <>

Reviewed-by: Eric Biggers <>

  reply index

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-30 12:14 [PATCH v3 0/4] Inline Encryption Support for fscrypt Satya Tangirala
2020-06-30 12:14 ` [PATCH v3 1/4] fs: introduce SB_INLINECRYPT Satya Tangirala
2020-06-30 12:14 ` [PATCH v3 2/4] fscrypt: add inline encryption support Satya Tangirala
2020-06-30 16:47   ` Eric Biggers [this message]
2020-06-30 12:14 ` [PATCH v3 3/4] f2fs: " Satya Tangirala
2020-07-01  3:23   ` Chao Yu
2020-06-30 12:14 ` [PATCH v3 4/4] ext4: " Satya Tangirala

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200630164730.GB837@sol.localdomain \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-Fsdevel Archive on

Archives are clonable:
	git clone --mirror linux-fsdevel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-fsdevel linux-fsdevel/ \
	public-inbox-index linux-fsdevel

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone