mirror-linux/fs/crypto
Christoph Hellwig bb8e2019ad blk-crypto: handle the fallback above the block layer
Add a blk_crypto_submit_bio helper that either submits the bio when
it is not encrypted or inline encryption is provided, but otherwise
handles the encryption before going down into the low-level driver.
This reduces the risk from bio reordering and keeps memory allocation
as high up in the stack as possible.

Note that if the submitter knows that inline enctryption is known to
be supported by the underyling driver, it can still use plain
submit_bio.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2026-01-11 12:55:41 -07:00
..
Kconfig fscrypt: use HMAC-SHA512 library for HKDF 2025-09-05 21:01:51 -07:00
Makefile fscrypt: add inline encryption support 2020-07-08 10:29:30 -07:00
bio.c blk-crypto: handle the fallback above the block layer 2026-01-11 12:55:41 -07:00
crypto.c fscrypt: replace raw loads of info pointer with helper function 2025-08-21 13:58:06 +02:00
fname.c fscrypt: replace local base64url helpers with lib/base64 2025-11-20 14:03:44 -08:00
fscrypt_private.h fscrypt updates for 6.18 2025-09-29 15:33:50 -07:00
hkdf.c fscrypt: use HMAC-SHA512 library for HKDF 2025-09-05 21:01:51 -07:00
hooks.c fscrypt updates for 6.18 2025-09-29 15:33:50 -07:00
inline_crypt.c fscrypt: fix left shift underflow when inode->i_blkbits > PAGE_SHIFT 2025-11-04 16:37:38 -08:00
keyring.c Coccinelle-based conversion to use ->i_state accessors 2025-10-20 20:22:26 +02:00
keysetup.c Coccinelle-based conversion to use ->i_state accessors 2025-10-20 20:22:26 +02:00
keysetup_v1.c fscrypt: Switch to sync_skcipher and on-stack requests 2025-07-10 12:33:08 -07:00
policy.c fscrypt updates for 6.18 2025-09-29 15:33:50 -07:00