Skip to content

RFC dm-inlinecrypt: add target for inline block device encryption

Eric Biggers dm-devel linux-block lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest2 patches 7 repliesIn review
  2. v1 RFC1 patch 7 repliesSuperseded

Changes in v2 from the cover letter

- Split block exports into a separate patch.
- Return the key from STATUSTYPE_TABLE. This is a misfeature, but it's needed to comply with the device-mapper UAPI.
- Don't pass uninitialized key to blk_crypto_evict_key().
- Use {} instead of {0}.
- Simplify inlinecrypt_prepare_ioctl().

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block: export blk-crypto symbols required by dm-inlinecryptblock/blk-crypto.c+3 -00 replies
2/2dm-inlinecrypt: add target for inline block device encryptiondrivers/md/Kconfig drivers/md/Makefile drivers/md/dm-inlinecrypt.c+428 -07 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [RFC PATCH v2 0/2] dm-inlinecrypt: add target for inline block device encryption

This is yet another proposal for dm-inlinecrypt, this one resulting from the conversation at
https://lore.kernel.org/linux-block/[email protected]/T/#u.
This brings in the work that was already done in Android's dm-default-key but drops the passthrough support, as it doesn't seem like that will go anywhere upstream anytime soon. This makes the proposal suitable as a replacement for dm-crypt only.

Compared to the other patch linked above, this patch addresses a large number of issues, the main ones being mentioned at
https://lore.kernel.org/linux-block/[email protected]/

Changed in v2:
- Split block exports into a separate patch.
- Return the key from STATUSTYPE_TABLE. This is a misfeature, but it's needed to comply with the device-mapper UAPI.
- Don't pass uninitialized key to blk_crypto_evict_key().
- Use {} instead of {0}.
- Simplify inlinecrypt_prepare_ioctl().

Eric Biggers (2):
block: export blk-crypto symbols required by dm-inlinecrypt
dm-inlinecrypt: add target for inline block device encryption

 block/blk-crypto.c          |   3 +
 drivers/md/Kconfig          |  10 +
 drivers/md/Makefile         |   1 +
 drivers/md/dm-inlinecrypt.c | 417 ++++++++++++++++++++++++++++++++++++
 4 files changed, 431 insertions(+)
 create mode 100644 drivers/md/dm-inlinecrypt.c

base-commit: c964ced7726294d40913f2127c3f185a92cb4a41

Signature · 1 line
2.47.0