]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Nov 2020 03:31:15 +0000 (14:31 +1100)
commitb3cdbdd4783c5cdb7d85355d9e74b0ee80262c5c
tree93ca6495dfc2bf51fca338cb1e53a346f640bb4d
parent7d37e22f39409d251f24c3ba9ddfa1ebf873f498
crypto: arm/aes-neonbs - fix usage of cbc(aes) fallback

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: 9b06f4641180 ("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>
arch/arm/crypto/aes-neonbs-glue.c