linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1 RFC] block: Add ioctl for setting default inline crypto key
@ 2022-07-20 11:26 Israel Rukshin
  2022-07-20 11:26 ` [PATCH 1/1] block: Add support for setting inline encryption key per block device Israel Rukshin
  2022-07-21 12:44 ` [PATCH 0/1 RFC] block: Add ioctl for setting default inline crypto key Christoph Hellwig
  0 siblings, 2 replies; 10+ messages in thread
From: Israel Rukshin @ 2022-07-20 11:26 UTC (permalink / raw)
  To: Linux-block, Jens Axboe, Christoph Hellwig, Eric Biggers
  Cc: Israel Rukshin, Nitzan Carmi, Max Gurtovoy

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

-- 
2.18.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-07-28 16:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-20 11:26 [PATCH 0/1 RFC] block: Add ioctl for setting default inline crypto key Israel Rukshin
2022-07-20 11:26 ` [PATCH 1/1] block: Add support for setting inline encryption key per block device Israel Rukshin
2022-07-21  6:49   ` Eric Biggers
2022-07-21 12:54     ` Christoph Hellwig
2022-07-22  8:20       ` [dm-devel] " Milan Broz
2022-07-26  2:40     ` Daniil Lunev
2022-07-21 12:51   ` Christoph Hellwig
2022-07-26  0:42   ` Eric Biggers
2022-07-28 16:26     ` Israel Rukshin
2022-07-21 12:44 ` [PATCH 0/1 RFC] block: Add ioctl for setting default inline crypto key Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).