]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: null - Use spin lock instead of mutex
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 12 Feb 2025 06:10:07 +0000 (14:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:50:52 +0000 (07:50 +0200)
commit1b66a5920b7fc7cc6251192a3fcad115b6d75dd5
tree91712cd6ad94c56902c2e7636ae846d3a2e38dc2
parentd999b11302c4b44e9d04233fc4fd8f1749863ee0
crypto: null - Use spin lock instead of mutex

[ Upstream commit dcc47a028c24e793ce6d6efebfef1a1e92f80297 ]

As the null algorithm may be freed in softirq context through
af_alg, use spin locks instead of mutexes to protect the default
null algorithm.

Reported-by: syzbot+b3e02953598f447d4d2a@syzkaller.appspotmail.com
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
crypto/crypto_null.c