Re: [PATCH] ksmbd: select CRYPTO_AES

From: Namjae Jeon

Date: Thu Oct 22 2026 - 21:44:06 EST


On Fri, Oct 23, 2026 at 9:40 AM Michail Andreas Michalopoulos
<mike.michalo@xxxxxxxxx> wrote:
>
> ksmbd allocates "gcm(aes)" and "ccm(aes)" AEAD transforms for SMB3
> encryption, but SMB_SERVER only selects CRYPTO_GCM and CRYPTO_CCM, not
> an AES cipher. With a configuration in which nothing else enables
> CRYPTO_AES, ksmbd builds but cannot allocate the transforms, and every
> session that uses encryption fails:
>
> ksmbd: Failed to alloc encrypt aead : -2
> ksmbd: crypto alloc failed
>
> Select CRYPTO_AES, as the SMB client already does.
>
> Fixes: a848c4f15ab6 ("cifsd: add Kconfig and Makefile")
> Assisted-by: LLM
> Signed-off-by: Michail Andreas Michalopoulos <mike.michalo@xxxxxxxxx>
Applied it to #ksmbd-for-next.
Thanks!