Skip to content

Commit 2808d59

Browse files
Christoph Hellwiggregkh
authored andcommitted
cryptoloop: add a deprecation warning
[ Upstream commit 222013f ] Support for cryptoloop has been officially marked broken and deprecated in favor of dm-crypt (which supports the same broken algorithms if needed) in Linux 2.6.4 (released in March 2004), and support for it has been entirely removed from losetup in util-linux 2.23 (released in April 2013). Add a warning and a deprecation schedule. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20210827163250.255325-1-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 61a038f commit 2808d59

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎drivers/block/Kconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ config BLK_DEV_LOOP_MIN_COUNT
230230
dynamically allocated with the /dev/loop-control interface.
231231

232232
config BLK_DEV_CRYPTOLOOP
233-
tristate "Cryptoloop Support"
233+
tristate "Cryptoloop Support (DEPRECATED)"
234234
select CRYPTO
235235
select CRYPTO_CBC
236236
depends on BLK_DEV_LOOP
@@ -242,7 +242,7 @@ config BLK_DEV_CRYPTOLOOP
242242
WARNING: This device is not safe for journaled file systems like
243243
ext3 or Reiserfs. Please use the Device Mapper crypto module
244244
instead, which can be configured to be on-disk compatible with the
245-
cryptoloop device.
245+
cryptoloop device. cryptoloop support will be removed in Linux 5.16.
246246

247247
source "drivers/block/drbd/Kconfig"
248248

‎drivers/block/cryptoloop.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ init_cryptoloop(void)
189189

190190
if (rc)
191191
printk(KERN_ERR "cryptoloop: loop_register_transfer failed\n");
192+
else
193+
pr_warn("the cryptoloop driver has been deprecated and will be removed in in Linux 5.16\n");
192194
return rc;
193195
}
194196

0 commit comments

Comments
 (0)