]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
smb: client: Remove unnecessary selection of CRYPTO_ECB
authorEric Biggers <ebiggers@kernel.org>
Sat, 4 Apr 2026 19:42:10 +0000 (12:42 -0700)
committerSteve French <stfrench@microsoft.com>
Mon, 6 Apr 2026 00:58:40 +0000 (19:58 -0500)
Since the SMB client never uses any ecb(...) algorithm from the
crypto_skcipher API, selecting CRYPTO_ECB is unnecessary.

Specifically, it has been unnecessary since commit 06deeec77a5a ("cifs:
Fix smbencrypt() to stop pointing a scatterlist at the stack") in 2016.

Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/Kconfig
fs/smb/client/cifsfs.c

index 2e72d3c8423fa89a215a96b5f90057700aa5ebc3..d112da38c8818b903d47bb3bde97a322c4bc3200 100644 (file)
@@ -9,7 +9,6 @@ config CIFS
        select CRYPTO_AEAD2
        select CRYPTO_CCM
        select CRYPTO_GCM
-       select CRYPTO_ECB
        select CRYPTO_AES
        select CRYPTO_LIB_ARC4
        select CRYPTO_LIB_MD5
index 3e1dbc28af7d9834bce15297e821d2e5d6cec866..4631cd6dfeab31a9a2bf17c384a97109a9970a1a 100644 (file)
@@ -2154,7 +2154,6 @@ MODULE_DESCRIPTION
        ("VFS to access SMB3 servers e.g. Samba, Macs, Azure and Windows (and "
        "also older servers complying with the SNIA CIFS Specification)");
 MODULE_VERSION(CIFS_VERSION);
-MODULE_SOFTDEP("ecb");
 MODULE_SOFTDEP("nls");
 MODULE_SOFTDEP("aes");
 MODULE_SOFTDEP("cmac");