From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82A963A0E8A; Sun, 5 Jul 2026 18:45:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783277114; cv=none; b=Ysd0/l2EPNrebW3daQB4BWtlMZMl1980jI07cb7IaTAcIRuBNW9pzZweKDy/l4muZqJK+29+Fuwa3GVI285eAW0F7ECab/rSn9QPzyf6YI3p8uXmwjiXT/VsVsTqmO34ItpZiQy9kfgkzom5B7RyU6OQ6P1LBiCRpZq04HYwddw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783277114; c=relaxed/simple; bh=ckK9Io4PQP7xx+wwIpTDQUvg2fC/RfSrE74uP/cZ448=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TBErou9CTKWxuFTaUpKmckgOYP/SzGDCPQRPyJWMTjAsFOR8QXDlxhdPF4n1978xjRcQAXypYl3sjocyeihaCuhpkWDbqWCX88mGT6M5BPhcHBEopx/8/uxB1vJNxdnK8yNE3jbkIV6LlRm7eLLs+S8qzRK5iLr39yuEz2h2hf8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QGhKtPfQ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QGhKtPfQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B34F31F000E9; Sun, 5 Jul 2026 18:45:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783277112; bh=1sqCgdU8FpXHHIhLwWAj/joTSTKHhMSYmEG40tv2+HY=; h=From:To:Cc:Subject:Date; b=QGhKtPfQf+fpXOULwG9IywhQHWWA/+oRLjXB9uGJ2cNWIvFveUPIg3KUGB54TMKwt JL+0MKkUcPWbHALFLhY+EwaqtY/0px0p/dfMKpQ23F+/W7h9evqv40XJ8e9IiZ7hTU 5LmIEb05a9sXxEuBQIZPmIQ2wYuEWRaFTs7o/3Maf1IRgVA2a8ICrN4vj9Rmix8d4z DC/AevS6+6LlRtNmMVATawVpNFgzQdd9427Nw/NqXkE6HAMU/cdDQ+QNEsLOvRsJUy 4aEBmp8cLVJ1pNrKKYz87NLbpU66djvJI6EmNy74Yt2cdd2Zt+3+TmjUAF0yuGiRFz 7W5yoN2JnI8Kw== From: Eric Biggers To: Herbert Xu , linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Milan Broz , Eric Biggers Subject: [PATCH] crypto: af_alg - Allow additional ciphers for cryptsetup Date: Sun, 5 Jul 2026 11:44:19 -0700 Message-ID: <20260705184419.40762-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add "xts(camellia)", "xts(serpent)", and "xts(twofish)" to the allowlist for af_alg_restrict=1. These niche AES alternatives have continued to see rare but persistent use via cryptsetup, which has historically relied on the AF_ALG support for these ciphers in XTS mode for performing the keyslot encryption. (cryptsetup v2.8.7 and later fall back to a temporary dm-crypt mapping, but that requires root.) Signed-off-by: Eric Biggers --- crypto/algif_skcipher.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index 2b8069667974..49ae779b3b6b 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c @@ -45,6 +45,9 @@ static const struct af_alg_allowlist_entry skcipher_allowlist[] = { { "ecb(des)", true }, /* iwd */ { "hctr2(aes)", false }, /* cryptsetup */ { "xts(aes)", false }, /* cryptsetup benchmark */ + { "xts(camellia)", false }, /* cryptsetup */ + { "xts(serpent)", false }, /* cryptsetup */ + { "xts(twofish)", false }, /* cryptsetup */ {}, }; base-commit: e264401ce4776a288524e5b87593d4d864147115 -- 2.54.0