mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
crypto: engine - check if BH is disabled during completion
[ Upstream commit4058cf0894
] 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:735d37b542
("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:4140aafcff
("crypto: engine - fix crypto_queue backlog handling") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
1d39db4197
commit
e3b20588d0
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ static void crypto_finalize_request(struct crypto_engine *engine,
|
|||
dev_err(engine->dev, "failed to unprepare request\n");
|
||||
}
|
||||
}
|
||||
lockdep_assert_in_softirq();
|
||||
req->complete(req, err);
|
||||
|
||||
kthread_queue_work(engine->kworker, &engine->pump_requests);
|
||||
|
|
Loading…
Add table
Reference in a new issue