public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/3] dm-inlinecrypt: add target for inline block device encryption
@ 2026-03-04 12:17 Linlin Zhang
  2026-03-04 12:17 ` [PATCH v1 1/3] block: export blk-crypto symbols required by dm-inlinecrypt Linlin Zhang
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Linlin Zhang @ 2026-03-04 12:17 UTC (permalink / raw)
  To: linux-block, ebiggers
  Cc: linux-kernel, adrianvovk, dm-devel, quic_mdalam, gmazyland,
	israelr, mpatocka

This patch series is based on Eric’s work posted at:
https://lore.kernel.org/all/ecbb7ea8-11f6-30c1-ad77-bd984c52ca33@quicinc.com/

Eric’s patches introduce a new dm target, dm-inlinecrypt, to support inline
block‑device encryption. The implementation builds on the work previously done
in Android’s dm-default-key, but intentionally drops passthrough support,
as that functionality does not appear likely to be accepted upstream in the
near future. With this limitation, dm-inlinecrypt is positioned as a
practical replacement for dm-crypt, rather than a general passthrough
mechanism.

On top of Eric’s series, this patch addresses a limitation in dm‑core: the
inlinecrypt DM device does not currently have a block crypto profile
initialized, because only DM devices with passthrough support can be associated
with a block crypto profile today. However, dm-inlinecrypt consumes inline
crypto capabilities itself and does not pass them through to upper layers.
To support this model, this series introduces a new consuming‑crypto flag.
This flag indicates that the underlying block device exposes inline crypto
capabilities which are consumed directly by the DM device, rather than being
propagated upward. This allows dm‑core to correctly initialize and manage a
block crypto profile for dm‑inlinecrypt devices.


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

Linlin Zhang (1):
  dm-inlinecrypt: Expose inline crypto caps to the device

 block/blk-crypto.c            |   3 +
 drivers/md/Kconfig            |  10 +
 drivers/md/Makefile           |   1 +
 drivers/md/dm-inlinecrypt.c   | 416 ++++++++++++++++++++++++++++++++++
 drivers/md/dm-table.c         |   3 +-
 include/linux/device-mapper.h |   7 +
 6 files changed, 439 insertions(+), 1 deletion(-)
 create mode 100644 drivers/md/dm-inlinecrypt.c

-- 
2.34.1


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

end of thread, other threads:[~2026-03-25 15:07 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04 12:17 [PATCH v1 0/3] dm-inlinecrypt: add target for inline block device encryption Linlin Zhang
2026-03-04 12:17 ` [PATCH v1 1/3] block: export blk-crypto symbols required by dm-inlinecrypt Linlin Zhang
2026-03-09 14:01   ` Mikulas Patocka
2026-03-09 15:05   ` Jens Axboe
2026-03-09 16:12     ` Mikulas Patocka
2026-03-04 12:17 ` [PATCH v1 2/3] dm-inlinecrypt: add target for inline block device encryption Linlin Zhang
2026-03-04 13:11   ` Milan Broz
2026-03-25 11:27     ` Linlin Zhang
2026-03-12  7:01   ` Eric Biggers
2026-03-13 13:25     ` Mikulas Patocka
2026-03-13 15:27       ` Milan Broz
2026-03-25 11:57         ` Linlin Zhang
2026-03-25 15:07           ` Milan Broz
2026-03-25  6:55     ` Linlin Zhang
2026-03-04 12:17 ` [PATCH v1 3/3] dm-inlinecrypt: Expose inline crypto caps to the device Linlin Zhang
2026-03-12  6:35   ` Eric Biggers
2026-03-13 13:19     ` Mikulas Patocka
2026-03-25  6:38     ` Linlin Zhang
2026-03-04 13:06 ` [PATCH v1 0/3] dm-inlinecrypt: add target for inline block device encryption Christoph Hellwig
2026-03-04 18:09   ` Adrian Vovk
     [not found]   ` <CAAdYy_mSB4U39Onwa=V2e2XB0sJXV6tCGkzwV2-z7ZtMcm+8zg@mail.gmail.com>
2026-03-05 14:38     ` Christoph Hellwig
2026-03-25  7:04       ` Linlin Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox