crypto: arm/aes-neonbs - fix usage of cbc(aes) fallback
authorHoria Geantă <horia.geanta@nxp.com>
Wed, 28 Oct 2020 09:03:20 +0000 (11:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:02 +0000 (11:53 +0100)
commit6aa4660cba6115ab1c6ad109b1101aefde45b7a5
treed9a0abf1cd7c1c5d694435412dcac1428ee91e69
parent17df190b6a337ad66d1df34bca201d83f72e1d99
crypto: arm/aes-neonbs - fix usage of cbc(aes) fallback

[ Upstream commit a2715fbdc6fc387e85211df917a4778761ec693d ]

Loading the module deadlocks since:
-local cbc(aes) implementation needs a fallback and
-crypto API tries to find one but the request_module() resolves back to
the same module

Fix this by changing the module alias for cbc(aes) and
using the NEED_FALLBACK flag when requesting for a fallback algorithm.

Fixes: 00b99ad2bac2 ("crypto: arm/aes-neonbs - Use generic cbc encryption path")
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/crypto/aes-neonbs-glue.c