]> git.itanic.dy.fi Git - linux-stable/commit
crypto: engine - check if BH is disabled during completion
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 21 Feb 2022 12:08:33 +0000 (12:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:50:20 +0000 (11:50 +0200)
commita8cc4d5adfe5b6a9e7004e624dfe9a925727f871
treebafe3fd1792fd7b0338009d9e25feb532b056cad
parent7b36a06bacf7f3aa6859ce87caaabdda39a56f0d
crypto: engine - check if BH is disabled during completion

[ Upstream commit 4058cf08945c18a6de193f4118fd05d83d3d4285 ]

When doing iperf over ipsec with crypto hardware sun8i-ce, I hit some
spinlock recursion bug.

This is due to completion function called with enabled BH.

Add check a to detect this.

Fixes: 735d37b5424b ("crypto: engine - Introduce the block request crypto engine framework")
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: 4140aafcff16 ("crypto: engine - fix crypto_queue backlog handling")
Signed-off-by: Sasha Levin <sashal@kernel.org>
crypto/crypto_engine.c