+15
−61
Loading
stable inclusion from stable-v6.6.55 commit b60d2bc676e4e89c37f6c3ce3504b5cef21c8357 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IB0MX4 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b60d2bc676e4e89c37f6c3ce3504b5cef21c8357 -------------------------------- [ Upstream commit 3c44d31cb34ce4eb8311a2e73634d57702948230 ] Algorithm registration is usually carried out during module init, where as little work as possible should be carried out. The SIMD code violated this rule by allocating a tfm, this then triggers a full test of the algorithm which may dead-lock in certain cases. SIMD is only allocating the tfm to get at the alg object, which is in fact already available as it is what we are registering. Use that directly and remove the crypto_alloc_tfm call. Also remove some obsolete and unused SIMD API. Signed-off-by:Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by:
Sasha Levin <sashal@kernel.org> Conflicts: arch/x86/crypto/sm4-zhaoxin-gmi.c Signed-off-by:
Wen Zhiwei <wenzhiwei@kylinos.cn>