Skip to content

Commit 222013f

Browse files
Christoph Hellwigaxboe
Christoph Hellwig
authored andcommitted
cryptoloop: add a deprecation warning
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 3375dca commit 222013f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

drivers/block/Kconfig

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

215215
config BLK_DEV_CRYPTOLOOP
216-
tristate "Cryptoloop Support"
216+
tristate "Cryptoloop Support (DEPRECATED)"
217217
select CRYPTO
218218
select CRYPTO_CBC
219219
depends on BLK_DEV_LOOP
@@ -225,7 +225,7 @@ config BLK_DEV_CRYPTOLOOP
225225
WARNING: This device is not safe for journaled file systems like
226226
ext3 or Reiserfs. Please use the Device Mapper crypto module
227227
instead, which can be configured to be on-disk compatible with the
228-
cryptoloop device.
228+
cryptoloop device. cryptoloop support will be removed in Linux 5.16.
229229

230230
source "drivers/block/drbd/Kconfig"
231231

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)