Skip to content

RFC block: Add ioctl for setting default inline crypto key

Israel Rukshin dm-devel linux-block linux-fscrypt 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest1 patch 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1block: Add support for setting inline encryption key per block deviceblock/blk-core.c block/blk-crypto-internal.h block/blk-crypto-profile.c +7 more+217 -97 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/1 RFC] block: Add ioctl for setting default inline crypto key

Hi Jens/Christoph/Eric

I am working to add support for inline encryption/decryption at storage protocols like nvmf over RDMA. Right now, the only way to use the inline crypto feature is via fs-crypt. This patch allows to use this feature also directly on a block device. This patch comes after my former dm-crypt patch for inline encryption was rejected ("[PATCH 1/1] dm crypt: Add inline encryption support") by the maintainers. This alternative solution of a new block ioctl was suggested by Christoph Hellwig and Eric Biggers.

I tested this patch with modified nvme-rdma as the block device. I would like to collect some comments on this approach and I'll send the entire patch set including NVMe/RDMA changes for inline encryption/decryption.

Israel Rukshin (1):
block: Add support for setting inline encryption key per block device

 block/blk-core.c                |   4 +
 block/blk-crypto-internal.h     |  19 +++-
 block/blk-crypto-profile.c      |   1 +
 block/blk-crypto.c              | 156 ++++++++++++++++++++++++++++++++
 block/blk-sysfs.c               |   7 ++
 block/ioctl.c                   |   3 +
 include/linux/blk-crypto.h      |  11 +--
 include/linux/blkdev.h          |   2 +
 include/uapi/linux/blk-crypto.h |  14 +++
 include/uapi/linux/fs.h         |   9 ++
 10 files changed, 217 insertions(+), 9 deletions(-)
 create mode 100644 include/uapi/linux/blk-crypto.h
Signature · 1 line
2.18.2