]> git.baikalelectronics.ru Git - kernel.git/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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 2 Mar 2022 22:47:49 +0000 (10:47 +1200)
commitfc9c2b958dbd051a65c451f739189f37d3044062
treeb7ce46a35d9c995514899d909bd251524997115a
parent84f39d009997c0f9b2c8faebf957ecc2851d220d
crypto: engine - check if BH is disabled during completion

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: 0058b401ca89 ("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>
crypto/crypto_engine.c