Commit b118e939 authored by Zhengchao Shao's avatar Zhengchao Shao Committed by Jialin Zhang
Browse files

crypto: sahara - don't sleep when in softirq

stable inclusion
from stable-v5.10.150
commit 25f13424737232d5ef5337916dac9fe303b5b0c6
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0XA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=25f13424737232d5ef5337916dac9fe303b5b0c6



--------------------------------

[ Upstream commit 108586eb ]

Function of sahara_aes_crypt maybe could be called by function
of crypto_skcipher_encrypt during the rx softirq, so it is not
allowed to use mutex lock.

Fixes: c0c3c89a ("crypto: sahara - replace tasklets with...")
Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parent 8cc5e30d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment