diff options
| author | Christoph Hellwig <hch@lst.de> | 2026-01-09 07:07:46 +0100 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-01-11 12:55:41 -0700 |
| commit | 2f655dcb2d925b55deb8c1ec8f42b522c6bc5698 (patch) | |
| tree | e692fdd2071f8e68e54f1846e3b987c86c291628 /fs/buffer.c | |
| parent | b37fbce460ad60b0c4449c1c7566cf24f3016713 (diff) | |
blk-crypto: use on-stack skcipher requests for fallback en/decryption
Allocating a skcipher request dynamically can deadlock or cause
unexpected I/O failures when called from writeback context. Avoid the
allocation entirely by using on-stack skciphers, similar to what the
non-blk-crypto fscrypt path already does.
This drops the incomplete support for asynchronous algorithms, which
previously could be used, but only synchronously.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/buffer.c')
0 files changed, 0 insertions, 0 deletions
