Patch "crypto: engine - check if BH is disabled during completion" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    crypto: engine - check if BH is disabled during completion

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     crypto-engine-check-if-bh-is-disabled-during-complet.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit f0efed381e89c78671714ea364c2e4545e66c99c
Author: Corentin Labbe <clabbe@xxxxxxxxxxxx>
Date:   Mon Feb 21 12:08:33 2022 +0000

    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@xxxxxxxxxxxx>
    Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
    Stable-dep-of: 4140aafcff16 ("crypto: engine - fix crypto_queue backlog handling")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/crypto/crypto_engine.c b/crypto/crypto_engine.c
index cff21f4e03e32..fecf6baaa4f7d 100644
--- a/crypto/crypto_engine.c
+++ b/crypto/crypto_engine.c
@@ -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);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux