Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2567407lkm; Mon, 20 Sep 2021 18:55:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYIRzML2+qsNNTEiA4boJ4/JoR8T4CKdMatfA/earDBI4snUxBFf+Ug/ynfGExeHv7sbXV X-Received: by 2002:a92:da0c:: with SMTP id z12mr19068860ilm.120.1632188870190; Mon, 20 Sep 2021 18:47:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188870; cv=none; d=google.com; s=arc-20160816; b=eaBtXU1XtEI10jWEgH5byw/Az0oDTje8vYy+j5M9w1xWQktY33oT9xW0ztTpmM5+eF QQ3d5jwOiofxC5RNmfn4rSZopHG2APZg6K2BGpzQga2UczgMT/8vgGPn6t7JNbPS++Yw +r7SacbiEGdNbl0Z+aEHIPNt4CY6DoHrRsYrzkEp1bhTrnlZsdavHslJJQ6Jq6e0g4n1 0dNoPVNje0id53aUGzPSF/gnKuiLQC+VxI+k0ydsUMbEIvuMqhUg1LQ0gpJgBVZB0jOG 7c5LbGZfvaAy50KQBv/xUjxCW83UGKbGunBNGw3EhBXuFaQGwbcEDdALrjP5Epm2//oI h1YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5kZd0jCZVaQ3H4UnngUFSdgqLBzm1Xf5zVHW2kwRPhM=; b=fK4mJAdGqB9h4V9Jm+7c1sEpoWvMBQUA6V7zuIG9xH71rtF/mgsPASylbpdrRLtQ8J j/Zj6eee0LyTeEQ8OazOYbjfx+ISFoDPmUsXvekBqTw0l/95FgE0i0co6Oxe0NM/S2lA ByuUI9e+Sh71rqzwcYt/PWoA8kWqdAlRVKBesGmMVO9y2VgERDJn73elfeviNlxYimD9 8pxqllyuhY39BeBX18JbBxURHF/lVUIvzwMdygcveOmLlCBGJkIXuqk3/3rMqscgU7kL pqNqcqUGc9XWbueOTKt7JgILjXI9tqod53CGxaIHq2dw5eypgxTfoHJ8uVCB3XCx6Y/S YyiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XK0FwZiI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j15si13853953jac.8.2021.09.20.18.47.38; Mon, 20 Sep 2021 18:47:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XK0FwZiI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348150AbhITRgf (ORCPT + 99 others); Mon, 20 Sep 2021 13:36:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:35794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351521AbhITReS (ORCPT ); Mon, 20 Sep 2021 13:34:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 68F6761373; Mon, 20 Sep 2021 17:05:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632157541; bh=FwzfyyuZ6VLcfr1F4gDZkIzt9er8qc+k9jKBDlAJIYM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XK0FwZiIZzWCUlj/pAsa0dpOkubBHU2J04+9MAM2tzeWK6WEDDABXoc1OwLZ9YwGg v9GVlx3bQFmzfofPDV+mWOFi4KkiKFSdqLTA7m7bpR3UnFdVTvT/3t6eqgTH5JvTs7 fZ7t5tdOsFwc3P/Jui1rLRJ9mIwp/88vJi3YXn10= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Hellwig , Jens Axboe , Sasha Levin Subject: [PATCH 4.19 009/293] cryptoloop: add a deprecation warning Date: Mon, 20 Sep 2021 18:39:31 +0200 Message-Id: <20210920163933.575922347@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163933.258815435@linuxfoundation.org> References: <20210920163933.258815435@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christoph Hellwig [ Upstream commit 222013f9ac30b9cec44301daa8dbd0aae38abffb ] 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 Link: https://lore.kernel.org/r/20210827163250.255325-1-hch@lst.de Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- drivers/block/Kconfig | 4 ++-- drivers/block/cryptoloop.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index e101f286ac35..60662771bd46 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig @@ -242,7 +242,7 @@ config BLK_DEV_LOOP_MIN_COUNT dynamically allocated with the /dev/loop-control interface. config BLK_DEV_CRYPTOLOOP - tristate "Cryptoloop Support" + tristate "Cryptoloop Support (DEPRECATED)" select CRYPTO select CRYPTO_CBC depends on BLK_DEV_LOOP @@ -254,7 +254,7 @@ config BLK_DEV_CRYPTOLOOP WARNING: This device is not safe for journaled file systems like ext3 or Reiserfs. Please use the Device Mapper crypto module instead, which can be configured to be on-disk compatible with the - cryptoloop device. + cryptoloop device. cryptoloop support will be removed in Linux 5.16. source "drivers/block/drbd/Kconfig" diff --git a/drivers/block/cryptoloop.c b/drivers/block/cryptoloop.c index 7033a4beda66..1b84105dfe62 100644 --- a/drivers/block/cryptoloop.c +++ b/drivers/block/cryptoloop.c @@ -201,6 +201,8 @@ init_cryptoloop(void) if (rc) printk(KERN_ERR "cryptoloop: loop_register_transfer failed\n"); + else + pr_warn("the cryptoloop driver has been deprecated and will be removed in in Linux 5.16\n"); return rc; } -- 2.30.2